mirror of https://github.com/pf4j/pf4j.git
Decebal Suiu
11 years ago
8 changed files with 354 additions and 354 deletions
@ -1,123 +1,123 @@ |
|||||||
<?xml version="1.0"?> |
<?xml version="1.0"?> |
||||||
<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"> |
<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"> |
||||||
|
|
||||||
<parent> |
<parent> |
||||||
<groupId>ro.fortsoft.pf4j.demo</groupId> |
<groupId>ro.fortsoft.pf4j.demo</groupId> |
||||||
<artifactId>pf4j-demo-plugins</artifactId> |
<artifactId>pf4j-demo-plugins</artifactId> |
||||||
<version>0.6-SNAPSHOT</version> |
<version>0.6</version> |
||||||
</parent> |
</parent> |
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion> |
<modelVersion>4.0.0</modelVersion> |
||||||
<artifactId>pf4j-demo-plugin1</artifactId> |
<artifactId>pf4j-demo-plugin1</artifactId> |
||||||
<version>0.6-SNAPSHOT</version> |
<version>0.6</version> |
||||||
<packaging>jar</packaging> |
<packaging>jar</packaging> |
||||||
<name>Demo Plugin #1</name> |
<name>Demo Plugin #1</name> |
||||||
|
|
||||||
<properties> |
<properties> |
||||||
<plugin.id>welcome-plugin</plugin.id> |
<plugin.id>welcome-plugin</plugin.id> |
||||||
<plugin.class>ro.fortsoft.pf4j.demo.welcome.WelcomePlugin</plugin.class> |
<plugin.class>ro.fortsoft.pf4j.demo.welcome.WelcomePlugin</plugin.class> |
||||||
<plugin.version>0.0.1</plugin.version> |
<plugin.version>0.0.1</plugin.version> |
||||||
<plugin.provider>Decebal Suiu</plugin.provider> |
<plugin.provider>Decebal Suiu</plugin.provider> |
||||||
<plugin.dependencies /> |
<plugin.dependencies /> |
||||||
</properties> |
</properties> |
||||||
|
|
||||||
<build> |
<build> |
||||||
<plugins> |
<plugins> |
||||||
<!-- DOESN'T WORK WITH MAVEN 3 (I defined the plugin metadata in properties section) |
<!-- DOESN'T WORK WITH MAVEN 3 (I defined the plugin metadata in properties section) |
||||||
<plugin> |
<plugin> |
||||||
<groupId>org.codehaus.mojo</groupId> |
<groupId>org.codehaus.mojo</groupId> |
||||||
<artifactId>properties-maven-plugin</artifactId> |
<artifactId>properties-maven-plugin</artifactId> |
||||||
<version>1.0-alpha-2</version> |
<version>1.0-alpha-2</version> |
||||||
<executions> |
<executions> |
||||||
<execution> |
<execution> |
||||||
<phase>initialize</phase> |
<phase>initialize</phase> |
||||||
<goals> |
<goals> |
||||||
<goal>read-project-properties</goal> |
<goal>read-project-properties</goal> |
||||||
</goals> |
</goals> |
||||||
<configuration> |
<configuration> |
||||||
<files> |
<files> |
||||||
<file>plugin.properties</file> |
<file>plugin.properties</file> |
||||||
</files> |
</files> |
||||||
</configuration> |
</configuration> |
||||||
</execution> |
</execution> |
||||||
</executions> |
</executions> |
||||||
</plugin> |
</plugin> |
||||||
--> |
--> |
||||||
|
|
||||||
<plugin> |
<plugin> |
||||||
<groupId>org.apache.maven.plugins</groupId> |
<groupId>org.apache.maven.plugins</groupId> |
||||||
<artifactId>maven-antrun-plugin</artifactId> |
<artifactId>maven-antrun-plugin</artifactId> |
||||||
<version>1.6</version> |
<version>1.6</version> |
||||||
<executions> |
<executions> |
||||||
<execution> |
<execution> |
||||||
<id>unzip jar file</id> |
<id>unzip jar file</id> |
||||||
<phase>package</phase> |
<phase>package</phase> |
||||||
<configuration> |
<configuration> |
||||||
<target> |
<target> |
||||||
<unzip src="target/${artifactId}-${version}.${packaging}" dest="target/plugin-classes" /> |
<unzip src="target/${artifactId}-${version}.${packaging}" dest="target/plugin-classes" /> |
||||||
</target> |
</target> |
||||||
</configuration> |
</configuration> |
||||||
<goals> |
<goals> |
||||||
<goal>run</goal> |
<goal>run</goal> |
||||||
</goals> |
</goals> |
||||||
</execution> |
</execution> |
||||||
</executions> |
</executions> |
||||||
</plugin> |
</plugin> |
||||||
|
|
||||||
<plugin> |
<plugin> |
||||||
<artifactId>maven-assembly-plugin</artifactId> |
<artifactId>maven-assembly-plugin</artifactId> |
||||||
<version>2.3</version> |
<version>2.3</version> |
||||||
<configuration> |
<configuration> |
||||||
<descriptors> |
<descriptors> |
||||||
<descriptor> |
<descriptor> |
||||||
src/main/assembly/assembly.xml |
src/main/assembly/assembly.xml |
||||||
</descriptor> |
</descriptor> |
||||||
</descriptors> |
</descriptors> |
||||||
<appendAssemblyId>false</appendAssemblyId> |
<appendAssemblyId>false</appendAssemblyId> |
||||||
</configuration> |
</configuration> |
||||||
<executions> |
<executions> |
||||||
<execution> |
<execution> |
||||||
<id>make-assembly</id> |
<id>make-assembly</id> |
||||||
<phase>package</phase> |
<phase>package</phase> |
||||||
<goals> |
<goals> |
||||||
<goal>attached</goal> |
<goal>attached</goal> |
||||||
</goals> |
</goals> |
||||||
</execution> |
</execution> |
||||||
</executions> |
</executions> |
||||||
</plugin> |
</plugin> |
||||||
|
|
||||||
<plugin> |
<plugin> |
||||||
<groupId>org.apache.maven.plugins</groupId> |
<groupId>org.apache.maven.plugins</groupId> |
||||||
<artifactId>maven-jar-plugin</artifactId> |
<artifactId>maven-jar-plugin</artifactId> |
||||||
<version>2.4</version> |
<version>2.4</version> |
||||||
<configuration> |
<configuration> |
||||||
<archive> |
<archive> |
||||||
<manifestEntries> |
<manifestEntries> |
||||||
<Plugin-Id>${plugin.id}</Plugin-Id> |
<Plugin-Id>${plugin.id}</Plugin-Id> |
||||||
<Plugin-Class>${plugin.class}</Plugin-Class> |
<Plugin-Class>${plugin.class}</Plugin-Class> |
||||||
<Plugin-Version>${plugin.version}</Plugin-Version> |
<Plugin-Version>${plugin.version}</Plugin-Version> |
||||||
<Plugin-Provider>${plugin.provider}</Plugin-Provider> |
<Plugin-Provider>${plugin.provider}</Plugin-Provider> |
||||||
<Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies> |
<Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies> |
||||||
</manifestEntries> |
</manifestEntries> |
||||||
</archive> |
</archive> |
||||||
</configuration> |
</configuration> |
||||||
</plugin> |
</plugin> |
||||||
|
|
||||||
<plugin> |
<plugin> |
||||||
<artifactId>maven-deploy-plugin</artifactId> |
<artifactId>maven-deploy-plugin</artifactId> |
||||||
<configuration> |
<configuration> |
||||||
<skip>true</skip> |
<skip>true</skip> |
||||||
</configuration> |
</configuration> |
||||||
</plugin> |
</plugin> |
||||||
</plugins> |
</plugins> |
||||||
</build> |
</build> |
||||||
|
|
||||||
<dependencies> |
<dependencies> |
||||||
<dependency> |
<dependency> |
||||||
<groupId>commons-lang</groupId> |
<groupId>commons-lang</groupId> |
||||||
<artifactId>commons-lang</artifactId> |
<artifactId>commons-lang</artifactId> |
||||||
<version>2.6</version> |
<version>2.6</version> |
||||||
</dependency> |
</dependency> |
||||||
</dependencies> |
</dependencies> |
||||||
|
|
||||||
</project> |
</project> |
||||||
|
@ -1,115 +1,115 @@ |
|||||||
<?xml version="1.0"?> |
<?xml version="1.0"?> |
||||||
<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"> |
<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"> |
||||||
|
|
||||||
<parent> |
<parent> |
||||||
<groupId>ro.fortsoft.pf4j.demo</groupId> |
<groupId>ro.fortsoft.pf4j.demo</groupId> |
||||||
<artifactId>pf4j-demo-plugins</artifactId> |
<artifactId>pf4j-demo-plugins</artifactId> |
||||||
<version>0.6-SNAPSHOT</version> |
<version>0.6</version> |
||||||
</parent> |
</parent> |
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion> |
<modelVersion>4.0.0</modelVersion> |
||||||
<artifactId>pf4j-demo-plugin2</artifactId> |
<artifactId>pf4j-demo-plugin2</artifactId> |
||||||
<version>0.6-SNAPSHOT</version> |
<version>0.6</version> |
||||||
<packaging>jar</packaging> |
<packaging>jar</packaging> |
||||||
<name>Demo Plugin #2</name> |
<name>Demo Plugin #2</name> |
||||||
|
|
||||||
<properties> |
<properties> |
||||||
<plugin.id>hello-plugin</plugin.id> |
<plugin.id>hello-plugin</plugin.id> |
||||||
<plugin.class>ro.fortsoft.pf4j.demo.hello.HelloPlugin</plugin.class> |
<plugin.class>ro.fortsoft.pf4j.demo.hello.HelloPlugin</plugin.class> |
||||||
<plugin.version>0.0.1</plugin.version> |
<plugin.version>0.0.1</plugin.version> |
||||||
<plugin.provider>Decebal Suiu</plugin.provider> |
<plugin.provider>Decebal Suiu</plugin.provider> |
||||||
<plugin.dependencies /> |
<plugin.dependencies /> |
||||||
</properties> |
</properties> |
||||||
|
|
||||||
<build> |
<build> |
||||||
<plugins> |
<plugins> |
||||||
<!-- DOESN'T WORK WITH MAVEN 3 (I defined the plugin metadata in properties section) |
<!-- DOESN'T WORK WITH MAVEN 3 (I defined the plugin metadata in properties section) |
||||||
<plugin> |
<plugin> |
||||||
<groupId>org.codehaus.mojo</groupId> |
<groupId>org.codehaus.mojo</groupId> |
||||||
<artifactId>properties-maven-plugin</artifactId> |
<artifactId>properties-maven-plugin</artifactId> |
||||||
<version>1.0-alpha-2</version> |
<version>1.0-alpha-2</version> |
||||||
<executions> |
<executions> |
||||||
<execution> |
<execution> |
||||||
<phase>initialize</phase> |
<phase>initialize</phase> |
||||||
<goals> |
<goals> |
||||||
<goal>read-project-properties</goal> |
<goal>read-project-properties</goal> |
||||||
</goals> |
</goals> |
||||||
<configuration> |
<configuration> |
||||||
<files> |
<files> |
||||||
<file>plugin.properties</file> |
<file>plugin.properties</file> |
||||||
</files> |
</files> |
||||||
</configuration> |
</configuration> |
||||||
</execution> |
</execution> |
||||||
</executions> |
</executions> |
||||||
</plugin> |
</plugin> |
||||||
--> |
--> |
||||||
|
|
||||||
<plugin> |
<plugin> |
||||||
<groupId>org.apache.maven.plugins</groupId> |
<groupId>org.apache.maven.plugins</groupId> |
||||||
<artifactId>maven-antrun-plugin</artifactId> |
<artifactId>maven-antrun-plugin</artifactId> |
||||||
<version>1.6</version> |
<version>1.6</version> |
||||||
<executions> |
<executions> |
||||||
<execution> |
<execution> |
||||||
<id>unzip jar file</id> |
<id>unzip jar file</id> |
||||||
<phase>package</phase> |
<phase>package</phase> |
||||||
<configuration> |
<configuration> |
||||||
<target> |
<target> |
||||||
<unzip src="target/${artifactId}-${version}.${packaging}" dest="target/plugin-classes" /> |
<unzip src="target/${artifactId}-${version}.${packaging}" dest="target/plugin-classes" /> |
||||||
</target> |
</target> |
||||||
</configuration> |
</configuration> |
||||||
<goals> |
<goals> |
||||||
<goal>run</goal> |
<goal>run</goal> |
||||||
</goals> |
</goals> |
||||||
</execution> |
</execution> |
||||||
</executions> |
</executions> |
||||||
</plugin> |
</plugin> |
||||||
|
|
||||||
<plugin> |
<plugin> |
||||||
<artifactId>maven-assembly-plugin</artifactId> |
<artifactId>maven-assembly-plugin</artifactId> |
||||||
<version>2.3</version> |
<version>2.3</version> |
||||||
<configuration> |
<configuration> |
||||||
<descriptors> |
<descriptors> |
||||||
<descriptor> |
<descriptor> |
||||||
src/main/assembly/assembly.xml |
src/main/assembly/assembly.xml |
||||||
</descriptor> |
</descriptor> |
||||||
</descriptors> |
</descriptors> |
||||||
<appendAssemblyId>false</appendAssemblyId> |
<appendAssemblyId>false</appendAssemblyId> |
||||||
</configuration> |
</configuration> |
||||||
<executions> |
<executions> |
||||||
<execution> |
<execution> |
||||||
<id>make-assembly</id> |
<id>make-assembly</id> |
||||||
<phase>package</phase> |
<phase>package</phase> |
||||||
<goals> |
<goals> |
||||||
<goal>attached</goal> |
<goal>attached</goal> |
||||||
</goals> |
</goals> |
||||||
</execution> |
</execution> |
||||||
</executions> |
</executions> |
||||||
</plugin> |
</plugin> |
||||||
|
|
||||||
<plugin> |
<plugin> |
||||||
<groupId>org.apache.maven.plugins</groupId> |
<groupId>org.apache.maven.plugins</groupId> |
||||||
<artifactId>maven-jar-plugin</artifactId> |
<artifactId>maven-jar-plugin</artifactId> |
||||||
<version>2.4</version> |
<version>2.4</version> |
||||||
<configuration> |
<configuration> |
||||||
<archive> |
<archive> |
||||||
<manifestEntries> |
<manifestEntries> |
||||||
<Plugin-Id>${plugin.id}</Plugin-Id> |
<Plugin-Id>${plugin.id}</Plugin-Id> |
||||||
<Plugin-Class>${plugin.class}</Plugin-Class> |
<Plugin-Class>${plugin.class}</Plugin-Class> |
||||||
<Plugin-Version>${plugin.version}</Plugin-Version> |
<Plugin-Version>${plugin.version}</Plugin-Version> |
||||||
<Plugin-Provider>${plugin.provider}</Plugin-Provider> |
<Plugin-Provider>${plugin.provider}</Plugin-Provider> |
||||||
<Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies> |
<Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies> |
||||||
</manifestEntries> |
</manifestEntries> |
||||||
</archive> |
</archive> |
||||||
</configuration> |
</configuration> |
||||||
</plugin> |
</plugin> |
||||||
|
|
||||||
<plugin> |
<plugin> |
||||||
<artifactId>maven-deploy-plugin</artifactId> |
<artifactId>maven-deploy-plugin</artifactId> |
||||||
<configuration> |
<configuration> |
||||||
<skip>true</skip> |
<skip>true</skip> |
||||||
</configuration> |
</configuration> |
||||||
</plugin> |
</plugin> |
||||||
</plugins> |
</plugins> |
||||||
</build> |
</build> |
||||||
|
|
||||||
</project> |
</project> |
||||||
|
@ -1,106 +1,106 @@ |
|||||||
<?xml version="1.0"?> |
<?xml version="1.0"?> |
||||||
<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"> |
<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"> |
||||||
|
|
||||||
<parent> |
<parent> |
||||||
<groupId>ro.fortsoft.pf4j.demo</groupId> |
<groupId>ro.fortsoft.pf4j.demo</groupId> |
||||||
<artifactId>pf4j-demo-parent</artifactId> |
<artifactId>pf4j-demo-parent</artifactId> |
||||||
<version>0.6-SNAPSHOT</version> |
<version>0.6</version> |
||||||
</parent> |
</parent> |
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion> |
<modelVersion>4.0.0</modelVersion> |
||||||
<groupId>ro.fortsoft.pf4j.demo</groupId> |
<groupId>ro.fortsoft.pf4j.demo</groupId> |
||||||
<artifactId>pf4j-demo-plugins</artifactId> |
<artifactId>pf4j-demo-plugins</artifactId> |
||||||
<version>0.6-SNAPSHOT</version> |
<version>0.6</version> |
||||||
<packaging>pom</packaging> |
<packaging>pom</packaging> |
||||||
<name>Demo Plugins Parent</name> |
<name>Demo Plugins Parent</name> |
||||||
|
|
||||||
<build> |
<build> |
||||||
<resources> |
<resources> |
||||||
<resource> |
<resource> |
||||||
<filtering>false</filtering> |
<filtering>false</filtering> |
||||||
<directory>src/main/java</directory> |
<directory>src/main/java</directory> |
||||||
<excludes> |
<excludes> |
||||||
<exclude>**/*.java</exclude> |
<exclude>**/*.java</exclude> |
||||||
</excludes> |
</excludes> |
||||||
</resource> |
</resource> |
||||||
<resource> |
<resource> |
||||||
<directory>src/main/resources</directory> |
<directory>src/main/resources</directory> |
||||||
</resource> |
</resource> |
||||||
</resources> |
</resources> |
||||||
|
|
||||||
<plugins> |
<plugins> |
||||||
<plugin> |
<plugin> |
||||||
<artifactId>maven-dependency-plugin</artifactId> |
<artifactId>maven-dependency-plugin</artifactId> |
||||||
<executions> |
<executions> |
||||||
<execution> |
<execution> |
||||||
<phase>process-sources</phase> |
<phase>process-sources</phase> |
||||||
<goals> |
<goals> |
||||||
<goal>copy-dependencies</goal> |
<goal>copy-dependencies</goal> |
||||||
</goals> |
</goals> |
||||||
<configuration> |
<configuration> |
||||||
<outputDirectory>${project.build.directory}/lib</outputDirectory> |
<outputDirectory>${project.build.directory}/lib</outputDirectory> |
||||||
<excludeScope>provided</excludeScope> |
<excludeScope>provided</excludeScope> |
||||||
</configuration> |
</configuration> |
||||||
</execution> |
</execution> |
||||||
</executions> |
</executions> |
||||||
</plugin> |
</plugin> |
||||||
</plugins> |
</plugins> |
||||||
|
|
||||||
<pluginManagement> |
<pluginManagement> |
||||||
<plugins> |
<plugins> |
||||||
<plugin> |
<plugin> |
||||||
<groupId>org.eclipse.m2e</groupId> |
<groupId>org.eclipse.m2e</groupId> |
||||||
<artifactId>lifecycle-mapping</artifactId> |
<artifactId>lifecycle-mapping</artifactId> |
||||||
<version>1.0.0</version> |
<version>1.0.0</version> |
||||||
<configuration> |
<configuration> |
||||||
<lifecycleMappingMetadata> |
<lifecycleMappingMetadata> |
||||||
<pluginExecutions> |
<pluginExecutions> |
||||||
<pluginExecution> |
<pluginExecution> |
||||||
<pluginExecutionFilter> |
<pluginExecutionFilter> |
||||||
<groupId>org.apache.maven.plugins</groupId> |
<groupId>org.apache.maven.plugins</groupId> |
||||||
<artifactId>maven-dependency-plugin</artifactId> |
<artifactId>maven-dependency-plugin</artifactId> |
||||||
<versionRange>[2.0,)</versionRange> |
<versionRange>[2.0,)</versionRange> |
||||||
<goals> |
<goals> |
||||||
<goal>copy-dependencies</goal> |
<goal>copy-dependencies</goal> |
||||||
</goals> |
</goals> |
||||||
</pluginExecutionFilter> |
</pluginExecutionFilter> |
||||||
<action> |
<action> |
||||||
<!-- |
<!-- |
||||||
<execute/> |
<execute /> |
||||||
--> |
--> |
||||||
<execute> |
<execute> |
||||||
<runOnIncremental>true</runOnIncremental> |
<runOnIncremental>true</runOnIncremental> |
||||||
<runOnConfiguration>true</runOnConfiguration> |
<runOnConfiguration>true</runOnConfiguration> |
||||||
</execute> |
</execute> |
||||||
</action> |
</action> |
||||||
</pluginExecution> |
</pluginExecution> |
||||||
</pluginExecutions> |
</pluginExecutions> |
||||||
</lifecycleMappingMetadata> |
</lifecycleMappingMetadata> |
||||||
</configuration> |
</configuration> |
||||||
</plugin> |
</plugin> |
||||||
</plugins> |
</plugins> |
||||||
</pluginManagement> |
</pluginManagement> |
||||||
</build> |
</build> |
||||||
|
|
||||||
<modules> |
<modules> |
||||||
<module>plugin1</module> |
<module>plugin1</module> |
||||||
<module>plugin2</module> |
<module>plugin2</module> |
||||||
</modules> |
</modules> |
||||||
|
|
||||||
<dependencies> |
<dependencies> |
||||||
<dependency> |
<dependency> |
||||||
<groupId>ro.fortsoft.pf4j</groupId> |
<groupId>ro.fortsoft.pf4j</groupId> |
||||||
<artifactId>pf4j</artifactId> |
<artifactId>pf4j</artifactId> |
||||||
<version>${project.version}</version> |
<version>${project.version}</version> |
||||||
<scope>provided</scope> |
<scope>provided</scope> |
||||||
</dependency> |
</dependency> |
||||||
|
|
||||||
<dependency> |
<dependency> |
||||||
<groupId>ro.fortsoft.pf4j.demo</groupId> |
<groupId>ro.fortsoft.pf4j.demo</groupId> |
||||||
<artifactId>pf4j-demo-api</artifactId> |
<artifactId>pf4j-demo-api</artifactId> |
||||||
<version>${project.version}</version> |
<version>${project.version}</version> |
||||||
<scope>provided</scope> |
<scope>provided</scope> |
||||||
</dependency> |
</dependency> |
||||||
</dependencies> |
</dependencies> |
||||||
|
|
||||||
</project> |
</project> |
||||||
|
Loading…
Reference in new issue