The artifact is installed in local maven repository with a dedicated pom

This commit is contained in:
Luca Frosini 2020-04-28 18:29:31 +02:00
parent 668bbf247a
commit f30629c806
3 changed files with 21 additions and 4 deletions

View File

@ -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

View File

@ -0,0 +1,12 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.common</groupId>
<artifactId>GCUBE_ARTIFACT_ID</artifactId>
<version>JACKSON_VERSION</version>
<description>JACKSON_ARTIFACT_ID repackaged as gCube artifact</description>
<packaging>jar</packaging>
</project>