diff --git a/createAndDeploy.sh b/createAndDeploy.sh index d8fc0ad..48af1c5 100755 --- a/createAndDeploy.sh +++ b/createAndDeploy.sh @@ -13,7 +13,7 @@ for i in jackson-core do jacksonArtifactId=$i - cp pom.template.xml pom.xml + cp pom.repackage.template.xml pom.xml sed -i 's/JACKSON_GROUP_ID/'"${jacksonGroupId}"'/g' pom.xml sed -i 's/JACKSON_ARTIFACT_ID/'"${jacksonArtifactId}"'/g' pom.xml @@ -47,12 +47,17 @@ do zip -r ../${gCubeArtifactJar} . cd ${projectDir}/target - mvn install:install-file -DgroupId=${gCubeGroupId} -DartifactId=${gCubeArtifactId} -Dversion=${jacksonVersion} -Dpackaging=jar -Dfile=${gCubeArtifactJar} - #mvn deploy:deploy-file -DgroupId=${jacksonGroupId} -DartifactId=gcube-${jacksonArtifactId} -Dversion=${jacksonVersion} -Dpackaging=jar -Dfile=${finalJarFileName}.jar + #mvn install:install-file -DgroupId=${gCubeGroupId} -DartifactId=${gCubeArtifactId} -Dversion=${jacksonVersion} -Dpackaging=jar -Dfile=${gCubeArtifactJar} + + cp ../pom.deploy.template.${jacksonArtifactId}.xml deploy.pom.xml + sed -i 's/GCUBE_ARTIFACT_ID/'"${gCubeArtifactId}"'/g' deploy.pom.xml + sed -i 's/JACKSON_ARTIFACT_ID/'"${jacksonArtifactId}"'/g' deploy.pom.xml + sed -i 's/JACKSON_VERSION/'"${jacksonVersion}"'/g' deploy.pom.xml + mvn install:install-file -DpomFile=deploy.pom.xml -Dfile=${gCubeArtifactJar} cd ${projectDir} - #mvn clean + mvn clean rm pom.xml rm dependency-reduced-pom.xml diff --git a/pom.deploy.template.jackson-core.xml b/pom.deploy.template.jackson-core.xml new file mode 100644 index 0000000..0b5869d --- /dev/null +++ b/pom.deploy.template.jackson-core.xml @@ -0,0 +1,12 @@ + + 4.0.0 + + org.gcube.common + GCUBE_ARTIFACT_ID + JACKSON_VERSION + JACKSON_ARTIFACT_ID repackaged as gCube artifact + jar + + \ No newline at end of file diff --git a/pom.template.xml b/pom.repackage.template.xml similarity index 100% rename from pom.template.xml rename to pom.repackage.template.xml