mirror of https://github.com/pf4j/pf4j.git
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.
136 lines
4.9 KiB
136 lines
4.9 KiB
<?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"> |
|
|
|
<parent> |
|
<groupId>ro.fortsoft.pf4j.demo</groupId> |
|
<artifactId>pom</artifactId> |
|
<version>0.1-SNAPSHOT</version> |
|
</parent> |
|
|
|
<modelVersion>4.0.0</modelVersion> |
|
<artifactId>pf4j-demo-plugin2</artifactId> |
|
<version>0.1-SNAPSHOT</version> |
|
<packaging>jar</packaging> |
|
<name>Demo Plugin #2</name> |
|
|
|
<licenses> |
|
<license> |
|
<name>The Apache Software License, Version 2.0</name> |
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
|
<distribution>repo</distribution> |
|
</license> |
|
</licenses> |
|
|
|
<build> |
|
<plugins> |
|
<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> |
|
<configuration> |
|
<appendAssemblyId>false</appendAssemblyId> |
|
<descriptors> |
|
<descriptor> |
|
src/main/assembly/assembly.xml |
|
</descriptor> |
|
</descriptors> |
|
<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> |
|
<executions> |
|
<execution> |
|
<id>make-assembly</id> |
|
<phase>package</phase> |
|
<goals> |
|
<goal>single</goal> |
|
</goals> |
|
</execution> |
|
</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> |
|
<artifactId>maven-deploy-plugin</artifactId> |
|
<configuration> |
|
<skip>true</skip> |
|
</configuration> |
|
</plugin> |
|
</plugins> |
|
</build> |
|
|
|
<dependencies> |
|
<dependency> |
|
<groupId>ro.fortsoft.pf4j</groupId> |
|
<artifactId>pf4j</artifactId> |
|
<version>${project.version}</version> |
|
<scope>provided</scope> |
|
</dependency> |
|
<dependency> |
|
<groupId>ro.fortsoft.pf4j.demo</groupId> |
|
<artifactId>pf4j-demo-api</artifactId> |
|
<version>${project.version}</version> |
|
<scope>provided</scope> |
|
</dependency> |
|
</dependencies> |
|
|
|
</project>
|
|
|