|
|
|
@ -21,47 +21,58 @@
|
|
|
|
|
</license> |
|
|
|
|
</licenses> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<properties> |
|
|
|
|
<plugin.id>welcome-plugin</plugin.id> |
|
|
|
|
<plugin.class>ro.fortsoft.pf4j.demo.welcome.WelcomePlugin</plugin.class> |
|
|
|
|
<plugin.version>0.0.1</plugin.version> |
|
|
|
|
<plugin.provider>Decebal Suiu</plugin.provider> |
|
|
|
|
<plugin.dependencies></plugin.dependencies> |
|
|
|
|
</properties> |
|
|
|
|
|
|
|
|
|
<build> |
|
|
|
|
<plugins> |
|
|
|
|
<!-- DOESN'T WORK WITH MAVEN 3 (I defined the plugin metadata in properties section) |
|
|
|
|
<plugin> |
|
|
|
|
<groupId>org.codehaus.mojo</groupId> |
|
|
|
|
<artifactId>properties-maven-plugin</artifactId> |
|
|
|
|
<version>1.0-alpha-2</version> |
|
|
|
|
<executions> |
|
|
|
|
<execution> |
|
|
|
|
<phase>initialize</phase> |
|
|
|
|
<goals> |
|
|
|
|
<goal>read-project-properties</goal> |
|
|
|
|
</goals> |
|
|
|
|
<configuration> |
|
|
|
|
<files> |
|
|
|
|
<file>plugin.properties</file> |
|
|
|
|
</files> |
|
|
|
|
</configuration> |
|
|
|
|
</execution> |
|
|
|
|
</executions> |
|
|
|
|
</plugin> |
|
|
|
|
|
|
|
|
|
<plugin> |
|
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId> |
|
|
|
|
<version>1.6</version> |
|
|
|
|
<executions> |
|
|
|
|
<execution> |
|
|
|
|
<id>unzip jar file</id> |
|
|
|
|
<phase>package</phase> |
|
|
|
|
<configuration> |
|
|
|
|
<target> |
|
|
|
|
<unzip src="target/${artifactId}-${version}.${packaging}" dest="target/plugin-classes" /> |
|
|
|
|
</target> |
|
|
|
|
</configuration> |
|
|
|
|
<goals> |
|
|
|
|
<goal>run</goal> |
|
|
|
|
</goals> |
|
|
|
|
</execution> |
|
|
|
|
</executions> |
|
|
|
|
</plugin> |
|
|
|
|
|
|
|
|
|
<groupId>org.codehaus.mojo</groupId> |
|
|
|
|
<artifactId>properties-maven-plugin</artifactId> |
|
|
|
|
<version>1.0-alpha-2</version> |
|
|
|
|
<executions> |
|
|
|
|
<execution> |
|
|
|
|
<phase>initialize</phase> |
|
|
|
|
<goals> |
|
|
|
|
<goal>read-project-properties</goal> |
|
|
|
|
</goals> |
|
|
|
|
<configuration> |
|
|
|
|
<files> |
|
|
|
|
<file>plugin.properties</file> |
|
|
|
|
</files> |
|
|
|
|
</configuration> |
|
|
|
|
</execution> |
|
|
|
|
</executions> |
|
|
|
|
</plugin> |
|
|
|
|
--> |
|
|
|
|
|
|
|
|
|
<plugin> |
|
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId> |
|
|
|
|
<version>1.6</version> |
|
|
|
|
<executions> |
|
|
|
|
<execution> |
|
|
|
|
<id>unzip jar file</id> |
|
|
|
|
<phase>package</phase> |
|
|
|
|
<configuration> |
|
|
|
|
<target> |
|
|
|
|
<unzip src="target/${artifactId}-${version}.${packaging}" dest="target/plugin-classes" /> |
|
|
|
|
</target> |
|
|
|
|
</configuration> |
|
|
|
|
<goals> |
|
|
|
|
<goal>run</goal> |
|
|
|
|
</goals> |
|
|
|
|
</execution> |
|
|
|
|
</executions> |
|
|
|
|
</plugin> |
|
|
|
|
|
|
|
|
|
<plugin> |
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId> |
|
|
|
|
<version>2.3</version> |
|
|
|
@ -84,21 +95,22 @@
|
|
|
|
|
</executions> |
|
|
|
|
</plugin> |
|
|
|
|
|
|
|
|
|
<plugin> |
|
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
|
<artifactId>maven-jar-plugin</artifactId> |
|
|
|
|
<configuration> |
|
|
|
|
<archive> |
|
|
|
|
<manifestEntries> |
|
|
|
|
<Plugin-Id>${plugin.id}</Plugin-Id> |
|
|
|
|
<Plugin-Class>${plugin.class}</Plugin-Class> |
|
|
|
|
<Plugin-Version>${plugin.version}</Plugin-Version> |
|
|
|
|
<Plugin-Provider>${plugin.provider}</Plugin-Provider> |
|
|
|
|
<Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies> |
|
|
|
|
</manifestEntries> |
|
|
|
|
</archive> |
|
|
|
|
</configuration> |
|
|
|
|
</plugin> |
|
|
|
|
<plugin> |
|
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
|
<artifactId>maven-jar-plugin</artifactId> |
|
|
|
|
<version>2.4</version> |
|
|
|
|
<configuration> |
|
|
|
|
<archive> |
|
|
|
|
<manifestEntries> |
|
|
|
|
<Plugin-Id>${plugin.id}</Plugin-Id> |
|
|
|
|
<Plugin-Class>${plugin.class}</Plugin-Class> |
|
|
|
|
<Plugin-Version>${plugin.version}</Plugin-Version> |
|
|
|
|
<Plugin-Provider>${plugin.provider}</Plugin-Provider> |
|
|
|
|
<Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies> |
|
|
|
|
</manifestEntries> |
|
|
|
|
</archive> |
|
|
|
|
</configuration> |
|
|
|
|
</plugin> |
|
|
|
|
|
|
|
|
|
<plugin> |
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId> |
|
|
|
|