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.

pom.xml 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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>pf4j-demo-plugins</artifactId>
  6. <version>1.4.0-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>pf4j-demo-plugin2</artifactId>
  10. <version>1.4.0-SNAPSHOT</version>
  11. <packaging>jar</packaging>
  12. <name>Demo Plugin #2</name>
  13. <properties>
  14. <plugin.id>hello-plugin</plugin.id>
  15. <plugin.class>org.pf4j.demo.hello.HelloPlugin</plugin.class>
  16. <plugin.version>0.0.1</plugin.version>
  17. <plugin.provider>Decebal Suiu</plugin.provider>
  18. <plugin.dependencies />
  19. </properties>
  20. <build>
  21. <plugins>
  22. <!-- DOESN'T WORK WITH MAVEN 3 (I defined the plugin metadata in properties section)
  23. <plugin>
  24. <groupId>org.codehaus.mojo</groupId>
  25. <artifactId>properties-maven-plugin</artifactId>
  26. <version>1.0-alpha-2</version>
  27. <executions>
  28. <execution>
  29. <phase>initialize</phase>
  30. <goals>
  31. <goal>read-project-properties</goal>
  32. </goals>
  33. <configuration>
  34. <files>
  35. <file>plugin.properties</file>
  36. </files>
  37. </configuration>
  38. </execution>
  39. </executions>
  40. </plugin>
  41. -->
  42. <plugin>
  43. <groupId>org.apache.maven.plugins</groupId>
  44. <artifactId>maven-antrun-plugin</artifactId>
  45. <version>1.6</version>
  46. <executions>
  47. <execution>
  48. <id>unzip jar file</id>
  49. <phase>package</phase>
  50. <configuration>
  51. <target>
  52. <unzip src="target/${artifactId}-${version}.${packaging}" dest="target/plugin-classes" />
  53. </target>
  54. </configuration>
  55. <goals>
  56. <goal>run</goal>
  57. </goals>
  58. </execution>
  59. </executions>
  60. </plugin>
  61. <plugin>
  62. <artifactId>maven-assembly-plugin</artifactId>
  63. <version>2.3</version>
  64. <configuration>
  65. <descriptors>
  66. <descriptor>
  67. src/main/assembly/assembly.xml
  68. </descriptor>
  69. </descriptors>
  70. <appendAssemblyId>false</appendAssemblyId>
  71. </configuration>
  72. <executions>
  73. <execution>
  74. <id>make-assembly</id>
  75. <phase>package</phase>
  76. <goals>
  77. <goal>attached</goal>
  78. </goals>
  79. </execution>
  80. </executions>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-jar-plugin</artifactId>
  85. <version>2.4</version>
  86. <configuration>
  87. <archive>
  88. <manifestEntries>
  89. <Plugin-Id>${plugin.id}</Plugin-Id>
  90. <Plugin-Class>${plugin.class}</Plugin-Class>
  91. <Plugin-Version>${plugin.version}</Plugin-Version>
  92. <Plugin-Provider>${plugin.provider}</Plugin-Provider>
  93. <Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
  94. </manifestEntries>
  95. </archive>
  96. </configuration>
  97. </plugin>
  98. <plugin>
  99. <artifactId>maven-deploy-plugin</artifactId>
  100. <configuration>
  101. <skip>true</skip>
  102. </configuration>
  103. </plugin>
  104. </plugins>
  105. </build>
  106. </project>