aboutsummaryrefslogtreecommitdiffstats
path: root/demo/plugins/pom.xml
diff options
context:
space:
mode:
authorTyler Hawkes <tylerhawkes@users.noreply.github.com>2018-01-18 03:55:27 -0700
committerDecebal Suiu <decebal.suiu@gmail.com>2018-01-18 12:55:27 +0200
commit77801cc19de4d800089b164e447b571ad8c75034 (patch)
tree42722889ec97bceb6fcf8582b0f424d2bb12d564 /demo/plugins/pom.xml
parent44acc380810180593c8c6e85f80f5274d71540a2 (diff)
downloadpf4j-77801cc19de4d800089b164e447b571ad8c75034.tar.gz
pf4j-77801cc19de4d800089b164e447b571ad8c75034.zip
Changing packaging (#194)
Diffstat (limited to 'demo/plugins/pom.xml')
-rw-r--r--demo/plugins/pom.xml107
1 files changed, 55 insertions, 52 deletions
diff --git a/demo/plugins/pom.xml b/demo/plugins/pom.xml
index 5e61dbf..682ccfd 100644
--- a/demo/plugins/pom.xml
+++ b/demo/plugins/pom.xml
@@ -13,69 +13,72 @@
<packaging>pom</packaging>
<name>Demo Plugins Parent</name>
- <build>
- <resources>
- <resource>
- <filtering>false</filtering>
- <directory>src/main/java</directory>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- </resources>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <java.version>1.7</java.version>
+ <plugin.id />
+ <plugin.class />
+ <plugin.version />
+ <plugin.provider />
+ <plugin.dependencies />
+ </properties>
+ <build>
<plugins>
<plugin>
- <artifactId>maven-dependency-plugin</artifactId>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.7.0</version>
+ <configuration>
+ <source>${java.version}</source>
+ <target>${java.version}</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>3.1.0</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <finalName>${project.artifactId}-${project.version}-plugin</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <attach>false</attach>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+ </manifest>
+ <manifestEntries>
+ <Plugin-Id>${plugin.id}</Plugin-Id>
+ <Plugin-Version>${plugin.version}</Plugin-Version>
+ <Plugin-Provider>${plugin.provider}</Plugin-Provider>
+ <Plugin-Class>${plugin.class}</Plugin-Class>
+ <Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
+ </manifestEntries>
+ </archive>
+ </configuration>
<executions>
<execution>
- <phase>process-sources</phase>
+ <id>make-assembly</id>
+ <phase>package</phase>
<goals>
- <goal>copy-dependencies</goal>
+ <goal>single</goal>
</goals>
- <configuration>
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
- <excludeScope>provided</excludeScope>
- </configuration>
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ <version>2.8.2</version>
+ </plugin>
</plugins>
-
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <versionRange>[2.0,)</versionRange>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <execute>
- <runOnIncremental>true</runOnIncremental>
- <runOnConfiguration>true</runOnConfiguration>
- </execute>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
</build>
<modules>