From cb0b76f00fcc97019f6e066bb98d1b64610bfe57 Mon Sep 17 00:00:00 2001 From: Philippe Date: Thu, 6 Nov 2014 14:31:29 +0100 Subject: [PATCH] Fixed maven build: - Updated izpack version from 5.0.0-rc2-SNAPSHOT to 5.0.0-rc4: - Maven build failed because rc2-SNAPSHOT wasn't available in the snapshot repository anymore. - Removed references to the codehaus snapshot and release repositories as izpack now resides in the central repo - There is probably still an issue executing the installer as described here (https://github.com/taconaut/pms-mlx/issues/74) (not tested) - Updated maven plugin versions to fix maven site generation as described here (https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound) - Added pluginExecutionFilter to avoid eclipse displaying errors in the pom.xml - Properly formatted pom.xml Configuration tested with maven 3.2.3 and java 1.7.0_67 with an empty local m2 repo using the commands: mvn com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external mvn com.savage7.maven.plugins:maven-external-dependency-plugin:install-external mvn clean package -P osx -P linux site --- pom.xml | 105 +++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 69 insertions(+), 36 deletions(-) diff --git a/pom.xml b/pom.xml index 87e9ffc85..77a9066bb 100644 --- a/pom.xml +++ b/pom.xml @@ -131,7 +131,7 @@ wrapper-windows-x86-32-3.5.17 http://wrapper.tanukisoftware.com/download/3.5.17/wrapper-windows-x86-32-3.5.17.zip - 2.9 + 2.10.1 2.1.4 ${external-resources.directory}/third-party/nsis/makensis.exe - - 5.0.0-rc2-SNAPSHOT + 5.0.0-rc4 ${project.build.directory}/staging ${project.build.directory}/${project.name} Setup.app + + central + Maven Plugin Repository + http://repo1.maven.org/maven2 + default + + false + + + never + + ossrh Sonatype OSS Repository http://oss.sonatype.org/content/groups/public default - - - - codehaus-releases - https://nexus.codehaus.org/content/repositories/releases - - - - - codehaus-snapshots - https://nexus.codehaus.org/content/repositories/snapshots - @@ -234,13 +230,6 @@ codehaus-releases https://nexus.codehaus.org/content/repositories/releases - - - - codehaus-snapshots - https://nexus.codehaus.org/content/repositories/snapshots - - @@ -604,7 +593,7 @@ - + @@ -624,10 +613,53 @@ - + + + + + com.savage7.maven.plugins + + + maven-external-dependency-plugin + + + [0.5,) + + + + resolve-external + + + install-external + + + + + + + + + + + org.apache.maven.plugins + + + maven-jar-plugin + + + [2.4,) + + + jar + + + + + + @@ -701,6 +733,7 @@ maven-dependency-plugin + 2.9 copy-pms-dependencies @@ -895,7 +928,7 @@ org.apache.maven.plugins maven-site-plugin - 3.1 + 3.4 org.apache.maven.doxia @@ -1416,7 +1449,7 @@ - @@ -1529,7 +1562,7 @@ - + @@ -1550,7 +1583,7 @@ run - + @@ -1590,16 +1623,16 @@ - + - + - + - + @@ -1625,7 +1658,7 @@ org.codehaus.izpack izpack-maven-plugin ${izpack.version} - + prepare-package