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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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>ro.fortsoft.pf4j.demo</groupId>
  5. <artifactId>pf4j-demo-parent</artifactId>
  6. <version>0.4-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>pf4j-demo-plugin1</artifactId>
  10. <version>0.4-SNAPSHOT</version>
  11. <packaging>jar</packaging>
  12. <name>Demo Plugin #1</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. <properties>
  21. <plugin.id>welcome-plugin</plugin.id>
  22. <plugin.class>ro.fortsoft.pf4j.demo.welcome.WelcomePlugin</plugin.class>
  23. <plugin.version>0.0.1</plugin.version>
  24. <plugin.provider>Decebal Suiu</plugin.provider>
  25. <plugin.dependencies />
  26. </properties>
  27. <build>
  28. <plugins>
  29. <!-- DOESN'T WORK WITH MAVEN 3 (I defined the plugin metadata in properties section)
  30. <plugin>
  31. <groupId>org.codehaus.mojo</groupId>
  32. <artifactId>properties-maven-plugin</artifactId>
  33. <version>1.0-alpha-2</version>
  34. <executions>
  35. <execution>
  36. <phase>initialize</phase>
  37. <goals>
  38. <goal>read-project-properties</goal>
  39. </goals>
  40. <configuration>
  41. <files>
  42. <file>plugin.properties</file>
  43. </files>
  44. </configuration>
  45. </execution>
  46. </executions>
  47. </plugin>
  48. -->
  49. <plugin>
  50. <groupId>org.apache.maven.plugins</groupId>
  51. <artifactId>maven-antrun-plugin</artifactId>
  52. <version>1.6</version>
  53. <executions>
  54. <execution>
  55. <id>unzip jar file</id>
  56. <phase>package</phase>
  57. <configuration>
  58. <target>
  59. <unzip src="target/${artifactId}-${version}.${packaging}" dest="target/plugin-classes" />
  60. </target>
  61. </configuration>
  62. <goals>
  63. <goal>run</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. </plugin>
  68. <plugin>
  69. <artifactId>maven-assembly-plugin</artifactId>
  70. <version>2.3</version>
  71. <configuration>
  72. <descriptors>
  73. <descriptor>
  74. src/main/assembly/assembly.xml
  75. </descriptor>
  76. </descriptors>
  77. <appendAssemblyId>false</appendAssemblyId>
  78. </configuration>
  79. <executions>
  80. <execution>
  81. <id>make-assembly</id>
  82. <phase>package</phase>
  83. <goals>
  84. <goal>attached</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. <version>2.4</version>
  93. <configuration>
  94. <archive>
  95. <manifestEntries>
  96. <Plugin-Id>${plugin.id}</Plugin-Id>
  97. <Plugin-Class>${plugin.class}</Plugin-Class>
  98. <Plugin-Version>${plugin.version}</Plugin-Version>
  99. <Plugin-Provider>${plugin.provider}</Plugin-Provider>
  100. <Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
  101. </manifestEntries>
  102. </archive>
  103. </configuration>
  104. </plugin>
  105. <plugin>
  106. <artifactId>maven-deploy-plugin</artifactId>
  107. <configuration>
  108. <skip>true</skip>
  109. </configuration>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. <dependencies>
  114. <dependency>
  115. <groupId>ro.fortsoft.pf4j</groupId>
  116. <artifactId>pf4j</artifactId>
  117. <version>${project.version}</version>
  118. <scope>provided</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>ro.fortsoft.pf4j.demo</groupId>
  122. <artifactId>pf4j-demo-api</artifactId>
  123. <version>${project.version}</version>
  124. <scope>provided</scope>
  125. </dependency>
  126. </dependencies>
  127. </project>