You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?xml version="1.0"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <parent>
  4. <groupId>org.pf4j.demo</groupId>
  5. <artifactId>pom</artifactId>
  6. <version>0.1-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>pf4j-demo-plugin2</artifactId>
  10. <version>0.1-SNAPSHOT</version>
  11. <packaging>jar</packaging>
  12. <name>Demo Plugin #2</name>
  13. <licenses>
  14. <license>
  15. <name>The Apache Software License, Version 2.0</name>
  16. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  17. <distribution>repo</distribution>
  18. </license>
  19. </licenses>
  20. <build>
  21. <plugins>
  22. <plugin>
  23. <groupId>org.codehaus.mojo</groupId>
  24. <artifactId>properties-maven-plugin</artifactId>
  25. <version>1.0-alpha-2</version>
  26. <executions>
  27. <execution>
  28. <phase>initialize</phase>
  29. <goals>
  30. <goal>read-project-properties</goal>
  31. </goals>
  32. <configuration>
  33. <files>
  34. <file>plugin.properties</file>
  35. </files>
  36. </configuration>
  37. </execution>
  38. </executions>
  39. </plugin>
  40. <plugin>
  41. <groupId>org.apache.maven.plugins</groupId>
  42. <artifactId>maven-antrun-plugin</artifactId>
  43. <version>1.6</version>
  44. <executions>
  45. <execution>
  46. <id>unzip jar file</id>
  47. <phase>package</phase>
  48. <configuration>
  49. <target>
  50. <unzip src="target/${artifactId}-${version}.${packaging}" dest="target/plugin-classes" />
  51. </target>
  52. </configuration>
  53. <goals>
  54. <goal>run</goal>
  55. </goals>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <plugin>
  60. <artifactId>maven-assembly-plugin</artifactId>
  61. <version>2.3</version>
  62. <configuration>
  63. <appendAssemblyId>false</appendAssemblyId>
  64. <descriptors>
  65. <descriptor>
  66. src/main/assembly/assembly.xml
  67. </descriptor>
  68. </descriptors>
  69. <archive>
  70. <manifestEntries>
  71. <Plugin-Id>${plugin.id}</Plugin-Id>
  72. <Plugin-Class>${plugin.class}</Plugin-Class>
  73. <Plugin-Version>${plugin.version}</Plugin-Version>
  74. <Plugin-Provider>${plugin.provider}</Plugin-Provider>
  75. <Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
  76. </manifestEntries>
  77. </archive>
  78. </configuration>
  79. <executions>
  80. <execution>
  81. <id>make-assembly</id>
  82. <phase>package</phase>
  83. <goals>
  84. <goal>single</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-jar-plugin</artifactId>
  92. <configuration>
  93. <archive>
  94. <manifestEntries>
  95. <Plugin-Id>${plugin.id}</Plugin-Id>
  96. <Plugin-Class>${plugin.class}</Plugin-Class>
  97. <Plugin-Version>${plugin.version}</Plugin-Version>
  98. <Plugin-Provider>${plugin.provider}</Plugin-Provider>
  99. <Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
  100. </manifestEntries>
  101. </archive>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <artifactId>maven-deploy-plugin</artifactId>
  106. <configuration>
  107. <skip>true</skip>
  108. </configuration>
  109. </plugin>
  110. </plugins>
  111. </build>
  112. <dependencies>
  113. <dependency>
  114. <groupId>org.pf4j</groupId>
  115. <artifactId>pf4j</artifactId>
  116. <version>${project.version}</version>
  117. <scope>provided</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.pf4j.demo</groupId>
  121. <artifactId>pf4j-demo-api</artifactId>
  122. <version>${project.version}</version>
  123. <scope>provided</scope>
  124. </dependency>
  125. </dependencies>
  126. </project>