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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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-parent</artifactId>
  6. <version>2.6.0-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>pf4j-demo-plugins</artifactId>
  10. <version>2.6.0-SNAPSHOT</version>
  11. <packaging>pom</packaging>
  12. <name>Demo Plugins Parent</name>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  16. <java.version>1.7</java.version>
  17. <!-- Override below properties in each plugin's pom.xml -->
  18. <plugin.id />
  19. <plugin.class />
  20. <plugin.version />
  21. <plugin.provider />
  22. <plugin.dependencies />
  23. </properties>
  24. <build>
  25. <plugins>
  26. <plugin>
  27. <groupId>org.apache.maven.plugins</groupId>
  28. <artifactId>maven-compiler-plugin</artifactId>
  29. <version>3.7.0</version>
  30. <configuration>
  31. <source>${java.version}</source>
  32. <target>${java.version}</target>
  33. </configuration>
  34. </plugin>
  35. <plugin>
  36. <groupId>org.apache.maven.plugins</groupId>
  37. <artifactId>maven-assembly-plugin</artifactId>
  38. <version>3.1.0</version>
  39. <configuration>
  40. <descriptorRefs>
  41. <descriptorRef>jar-with-dependencies</descriptorRef>
  42. </descriptorRefs>
  43. <finalName>${project.artifactId}-${project.version}-plugin</finalName>
  44. <appendAssemblyId>false</appendAssemblyId>
  45. <attach>false</attach>
  46. <archive>
  47. <manifest>
  48. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  49. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  50. </manifest>
  51. <manifestEntries>
  52. <Plugin-Id>${plugin.id}</Plugin-Id>
  53. <Plugin-Version>${plugin.version}</Plugin-Version>
  54. <Plugin-Provider>${plugin.provider}</Plugin-Provider>
  55. <Plugin-Class>${plugin.class}</Plugin-Class>
  56. <Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
  57. </manifestEntries>
  58. </archive>
  59. </configuration>
  60. <executions>
  61. <execution>
  62. <id>make-assembly</id>
  63. <phase>package</phase>
  64. <goals>
  65. <goal>single</goal>
  66. </goals>
  67. </execution>
  68. </executions>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-deploy-plugin</artifactId>
  73. <configuration>
  74. <skip>true</skip>
  75. </configuration>
  76. <version>2.8.2</version>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. <modules>
  81. <module>plugin1</module>
  82. <module>plugin2</module>
  83. </modules>
  84. <dependencies>
  85. <dependency>
  86. <groupId>org.pf4j</groupId>
  87. <artifactId>pf4j</artifactId>
  88. <version>${project.version}</version>
  89. <!-- !!! VERY IMPORTANT -->
  90. <scope>provided</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.pf4j.demo</groupId>
  94. <artifactId>pf4j-demo-api</artifactId>
  95. <version>${project.version}</version>
  96. <!-- !!! VERY IMPORTANT -->
  97. <!--
  98. <scope>provided</scope>
  99. -->
  100. </dependency>
  101. </dependencies>
  102. </project>