From: Tyler Hawkes Date: Thu, 18 Jan 2018 10:55:27 +0000 (-0700) Subject: Changing packaging (#194) X-Git-Tag: release-2.2.0~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=77801cc19de4d800089b164e447b571ad8c75034;p=pf4j.git Changing packaging (#194) --- diff --git a/demo/plugins/plugin1/pom.xml b/demo/plugins/plugin1/pom.xml index 90d5b71..8c2f826 100644 --- a/demo/plugins/plugin1/pom.xml +++ b/demo/plugins/plugin1/pom.xml @@ -21,97 +21,6 @@ - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.6 - - - unzip jar file - package - - - - - - - run - - - - - - - maven-assembly-plugin - 2.3 - - - - src/main/assembly/assembly.xml - - - false - - - - make-assembly - package - - attached - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.4 - - - - ${plugin.id} - ${plugin.class} - ${plugin.version} - ${plugin.provider} - ${plugin.dependencies} - - - - - - - maven-deploy-plugin - - true - - - - - commons-lang diff --git a/demo/plugins/plugin1/src/main/assembly/assembly.xml b/demo/plugins/plugin1/src/main/assembly/assembly.xml deleted file mode 100644 index ce2e92c..0000000 --- a/demo/plugins/plugin1/src/main/assembly/assembly.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - plugin - - zip - - false - - - false - runtime - lib - - *:jar:* - - - - - - - target/plugin-classes - classes - - - diff --git a/demo/plugins/plugin2/pom.xml b/demo/plugins/plugin2/pom.xml index 9a844fd..fb2d223 100644 --- a/demo/plugins/plugin2/pom.xml +++ b/demo/plugins/plugin2/pom.xml @@ -21,95 +21,4 @@ - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.6 - - - unzip jar file - package - - - - - - - run - - - - - - - maven-assembly-plugin - 2.3 - - - - src/main/assembly/assembly.xml - - - false - - - - make-assembly - package - - attached - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.4 - - - - ${plugin.id} - ${plugin.class} - ${plugin.version} - ${plugin.provider} - ${plugin.dependencies} - - - - - - - maven-deploy-plugin - - true - - - - - diff --git a/demo/plugins/plugin2/src/main/assembly/assembly.xml b/demo/plugins/plugin2/src/main/assembly/assembly.xml deleted file mode 100644 index 4eacbe3..0000000 --- a/demo/plugins/plugin2/src/main/assembly/assembly.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - plugin - - zip - - false - - - false - runtime - lib - - *:jar:* - - - - - - - target/plugin-classes - classes - - - 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 @@ pom Demo Plugins Parent - - - - false - src/main/java - - **/*.java - - - - src/main/resources - - + + UTF-8 + UTF-8 + 1.7 + + + + + + + - maven-dependency-plugin + org.apache.maven.plugins + maven-compiler-plugin + 3.7.0 + + ${java.version} + ${java.version} + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.1.0 + + + jar-with-dependencies + + ${project.artifactId}-${project.version}-plugin + false + false + + + true + true + + + ${plugin.id} + ${plugin.version} + ${plugin.provider} + ${plugin.class} + ${plugin.dependencies} + + + - process-sources + make-assembly + package - copy-dependencies + single - - ${project.build.directory}/lib - provided - + + org.apache.maven.plugins + maven-deploy-plugin + + true + + 2.8.2 + - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.apache.maven.plugins - maven-dependency-plugin - [2.0,) - - copy-dependencies - - - - - true - true - - - - - - - - - diff --git a/run-demo.bat b/run-demo.bat index 0edca59..445e410 100644 --- a/run-demo.bat +++ b/run-demo.bat @@ -3,7 +3,7 @@ REM This script creates and run the pf4j demo. REM REM create artifacts using maven -call mvn clean package +call mvn clean package -DskipTests REM create demo-dist folder rmdir demo-dist /s /q @@ -12,8 +12,8 @@ mkdir demo-dist\plugins REM copy artifacts to demo-dist folder xcopy demo\app\target\pf4j-demo-app-*.zip demo-dist /s /i -xcopy demo\plugins\plugin1\target\pf4j-demo-plugin1-*.zip demo-dist\plugins /s -xcopy demo\plugins\plugin2\target\pf4j-demo-plugin2-*.zip demo-dist\plugins /s +xcopy demo\plugins\plugin1\target\*plugin.jar demo-dist\plugins /s +xcopy demo\plugins\plugin2\target\*plugin.jar demo-dist\plugins /s cd demo-dist diff --git a/run-demo.sh b/run-demo.sh index 724d68b..b8c5220 100755 --- a/run-demo.sh +++ b/run-demo.sh @@ -5,17 +5,15 @@ # # create artifacts using maven -mvn clean package +mvn clean package -DskipTests # create demo-dist folder rm -fr demo-dist -mkdir demo-dist -mkdir demo-dist/plugins +mkdir -p demo-dist/plugins # copy artifacts to demo-dist folder cp -r demo/app/target/pf4j-demo-*/* demo-dist/ -cp demo/plugins/plugin1/target/pf4j-demo-plugin1-*.zip demo-dist/plugins/ -cp demo/plugins/plugin2/target/pf4j-demo-plugin2-*.zip demo-dist/plugins/ +cp demo/plugins/*/target/*plugin.jar demo-dist/plugins/ # run demo cd demo-dist