From 8dddad98669029b730af99418206aaf3be9924db Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 29 Apr 2020 00:35:57 +0200 Subject: [PATCH] Fixed artifact deployment --- createAndDeploy.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/createAndDeploy.sh b/createAndDeploy.sh index 227b92e..5ce0dfe 100755 --- a/createAndDeploy.sh +++ b/createAndDeploy.sh @@ -8,6 +8,9 @@ gCubePrefix=org.gcube gCubeGroupId=org.gcube.common +#repositoryId=gcube-externals +repositoryUrl=http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-externals + for i in jackson-core jackson-annotations jackson-databind #for i in jackson-core do @@ -51,9 +54,11 @@ do cp ../pom.deploy.template.${jacksonArtifactId}.xml 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} - - #mvn deploy:deploy-file -DpomFile=deploy.pom.xml -Dfile=${gCubeArtifactJar} + + #mvn -U install:install-file -DpomFile=deploy.pom.xml -Dfile=${gCubeArtifactJar} + #mvn -U deploy:deploy-file -DpomFile=deploy.pom.xml -Dfile=${gCubeArtifactJar} -DrepositoryId=${repositoryId} -Durl=${repositoryUrl} + + mvn -U deploy:deploy-file -DpomFile=deploy.pom.xml -Dfile=${gCubeArtifactJar} -Durl=${repositoryUrl} cd ${projectDir} mvn clean