From bdd92f7343373a13976fd439850ba018344ee826 Mon Sep 17 00:00:00 2001 From: Dirk Stenger Date: Thu, 23 Jan 2025 12:47:05 +0100 Subject: [PATCH] #43 - Add plugin and adjust outdated and delete obsolete content in pom.xml and update jenkinsfiles --- jenkinsfiles/build/Jenkinsfile | 6 +- jenkinsfiles/release/Jenkinsfile | 19 ++-- pom.xml | 177 ++++++++++++------------------- 3 files changed, 83 insertions(+), 119 deletions(-) diff --git a/jenkinsfiles/build/Jenkinsfile b/jenkinsfiles/build/Jenkinsfile index 14f480b..27ab801 100644 --- a/jenkinsfiles/build/Jenkinsfile +++ b/jenkinsfiles/build/Jenkinsfile @@ -1,8 +1,8 @@ pipeline { agent any tools { - maven 'mvn' - jdk 'JDK 8' + maven 'mvn396' + jdk 'temurin-jdk17' } stages { stage('Preparation') { @@ -14,7 +14,7 @@ pipeline { stage('Build') { steps{ sh 'mvn --version' - sh 'mvn clean install site -Pintegration-tests,docker' + sh 'mvn clean install site -Pintegration-tests,docker -Dsoapui.test.fail.ignore=true' } } stage('Results') { diff --git a/jenkinsfiles/release/Jenkinsfile b/jenkinsfiles/release/Jenkinsfile index 4063e3b..4571ac0 100644 --- a/jenkinsfiles/release/Jenkinsfile +++ b/jenkinsfiles/release/Jenkinsfile @@ -1,34 +1,35 @@ pipeline { agent any tools { - maven 'mvn' - jdk 'JDK 8' + maven 'mvn396' + jdk 'temurin-jdk17' } stages { - stage('Preparation') { + stage('Initialize') { steps{ - deleteDir() - sh 'git clone git@github.com:opengeospatial/ets-geotiff11.git .' + sh ''' + echo "PATH = ${PATH}" + echo "M2_HOME = ${M2_HOME}" + ''' + sh 'mvn --version' } } stage('Release') { steps{ - sh 'mvn --version' sh 'mvn -Dresume=false -DdryRun=true release:prepare -Psign-artifacts-with-ogc,integration-tests,docker -DreleaseVersion=${releaseVersion} -DdevelopmentVersion=${developmentVersion}' sh 'mvn -Dresume=false release:prepare release:perform -Psign-artifacts-with-ogc,integration-tests,docker -DreleaseVersion=${releaseVersion} -DdevelopmentVersion=${developmentVersion}' } } stage('Publication of site') { steps{ - sh 'mvn --version' sh 'git checkout ${releaseVersion}' sh 'mvn clean install site site:stage scm-publish:publish-scm' } } stage('Results') { steps{ - junit '**/target/surefire-reports/TEST-*.xml' - archive 'target/*' + archiveArtifacts artifacts: 'target/*', allowEmptyArchive: true + deleteDir() } } } diff --git a/pom.xml b/pom.xml index 9aefe9e..551a4fc 100644 --- a/pom.xml +++ b/pom.xml @@ -1,10 +1,12 @@ - + org.opengis.cite ets-common - 14-SNAPSHOT + 14 + 4.0.0 ets-geotiff11 1.2-SNAPSHOT @@ -12,17 +14,17 @@ GeoTIFF 1.1 Conformance Test Suite Describe purpose of test suite. - http://opengeospatial.github.io/ets-geotiff11/ + https://opengeospatial.github.io/ets-geotiff11/ Apache License, Version 2.0 - http://opensource.org/licenses/Apache-2.0 + https://opensource.org/licenses/Apache-2.0 Open Geospatial Consortium - http://www.opengeospatial.org/ + https://www.ogc.org/ scm:git:https://github.com/opengeospatial/ets-geotiff11.git @@ -40,12 +42,15 @@ https://github.com/djutras2/ UTC-4 + + Dirk Stenger + https://github.com/dstenger + geotiff11 1.1 - 6.0.0-RC2 @@ -58,7 +63,6 @@ org.opengis.cite schema-utils - junit junit @@ -78,40 +82,41 @@ commons-io - org.apache.commons - commons-csv + org.apache.commons + commons-csv + + + org.openpreservation.jhove + jhove-modules + + + org.testng + testng + + + org.opengis.cite.saxon + saxon9 + + + xerces + xercesImpl + + + xml-apis + xml-apis + + + + + com.beust + jcommander + + + org.openpreservation.jhove + jhove-core - - org.openpreservation.jhove - jhove-modules - - - org.testng - testng - - - org.opengis.cite.saxon - saxon9 - - - xerces - xercesImpl - - - xml-apis - xml-apis - - - - - com.beust - jcommander - - - org.openpreservation.jhove - jhove-core - + @@ -122,22 +127,13 @@ org.opengis.cite.geotiff11.TestNGController - - ${basedir}/src/assembly/deps.xml - ${basedir}/src/assembly/ctl-scripts.xml - ${basedir}/src/assembly/aio.xml - - - - package - - single - - - + + + maven-scm-publish-plugin + @@ -146,28 +142,6 @@ - ogccite/${project.artifactId} - - ${project.basedir}/src/docker - - ${project.version}-teamengine-${docker.teamengine.version} - - - - - - ${project.build.directory} - . - - dependency/*teamengine-*.war - dependency/*teamengine-*.zip - *ets-*.zip - - - - - - 8081:8080 @@ -185,29 +159,30 @@ + - src/main/resources - true - - **/*.exe - **/*.dll - **/*.tif - **/*.csv - **/*.zip - - - - src/main/resources - false - - **/*.exe - **/*.dll - **/*.tif - **/*.csv - **/*.zip - - + src/main/resources + true + + **/*.exe + **/*.dll + **/*.tif + **/*.csv + **/*.zip + + + + src/main/resources + false + + **/*.exe + **/*.dll + **/*.tif + **/*.csv + **/*.zip + + src/main/javadoc true @@ -223,14 +198,6 @@ maven-failsafe-plugin - - - - integration-test - verify - - - @@ -273,10 +240,6 @@ - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - site scm:git:git@github.com:opengeospatial/ets-geotiff11.git