Skip to content

Commit

Permalink
#12 - Adjust Jenkinsfile, pom.xml, assembly configuration and site.xm…
Browse files Browse the repository at this point in the history
…l enabling usage of Java 17, Tomcat 10.1 and current version of ets-common
  • Loading branch information
dstenger committed Feb 20, 2025
1 parent 9c97187 commit 8d040cb
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 53 deletions.
18 changes: 10 additions & 8 deletions jenkinsfiles/release/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,33 +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 [email protected]:opengeospatial/ets-sfs11.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{
archive 'target/*'
archiveArtifacts artifacts: 'target/*', allowEmptyArchive: true
deleteDir()
}
}
}
Expand Down
50 changes: 13 additions & 37 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">

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

<parent>
<groupId>org.opengis.cite</groupId>
<artifactId>ets-common</artifactId>
<version>15-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>ets-sfs11</artifactId>
<version>1.9-SNAPSHOT</version>
Expand All @@ -19,13 +20,13 @@
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://opensource.org/licenses/Apache-2.0</url>
<url>https://opensource.org/licenses/Apache-2.0</url>
</license>
</licenses>

<organization>
<name>Open Geospatial Consortium</name>
<url>http://www.opengeospatial.org</url>
<url>https://www.ogc.org</url>
</organization>
<scm>
<url>https://github.com/opengeospatial/ets-sfs11</url>
Expand All @@ -37,10 +38,10 @@
<system>GitHub Issue Tracker</system>
<url>https://github.com/opengeospatial/ets-sfs11/issues</url>
</issueManagement>

<properties>
<ets-code>sfs</ets-code>
<spec-version>1.1</spec-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>
Expand All @@ -55,7 +56,7 @@
</goals>
<configuration>
<descriptors>
<descriptor>src/assembly/ctl.xml</descriptor>
<descriptor>src/assembly/ctl-scripts.xml</descriptor>
</descriptors>
</configuration>
</execution>
Expand All @@ -77,9 +78,10 @@
</executions>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<artifactId>maven-scm-publish-plugin</artifactId>
</plugin>
</plugins>

<pluginManagement>
<plugins>
<plugin>
Expand All @@ -88,28 +90,6 @@
<configuration>
<images>
<image>
<name>ogccite/${project.artifactId}</name>
<build>
<dockerFileDir>${project.basedir}/src/docker</dockerFileDir>
<tags>
<tag>${project.version}-teamengine-${teamengine.version}</tag>
</tags>
<assembly>
<inline>
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory>.</outputDirectory>
<includes>
<include>dependency/*teamengine-*.war</include>
<include>dependency/*teamengine-*.zip</include>
<include>*ets-*.zip</include>
</includes>
</fileSet>
</fileSets>
</inline>
</assembly>
</build>
<run>
<ports>
<port>8081:8080</port>
Expand All @@ -132,9 +112,9 @@
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/*.tar.gz</exclude>
</excludes>
<excludes>
<exclude>**/*.tar.gz</exclude>
</excludes>
</resource>
<resource>
<directory>${basedir}/src/main/scripts</directory>
Expand Down Expand Up @@ -187,10 +167,6 @@
</profiles>

<distributionManagement>
<repository>
<id>sonatype-nexus-staging</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<site>
<id>site</id>
<url>scm:git:[email protected]:opengeospatial/ets-sfs11.git</url>
Expand Down
File renamed without changes.
16 changes: 8 additions & 8 deletions src/site/site.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="${project.name}"
xmlns="http://maven.apache.org/DECORATION/1.7.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.7.0 http://maven.apache.org/xsd/decoration-1.7.0.xsd">
<project name="${project.name}"
xmlns="http://maven.apache.org/DECORATION/1.7.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.7.0 http://maven.apache.org/xsd/decoration-1.7.0.xsd">

<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>2.0.1</version>
</skin>
<custom>
<fluidoSkin>o
<fluidoSkin>
<sideBarEnabled>true</sideBarEnabled>
</fluidoSkin>
</custom>
Expand All @@ -29,10 +29,10 @@
<item name="Issues" href="https://github.com/opengeospatial/${project.artifactId}/issues"/>
</links>
<menu name="Documentation">
<item href="index.html" name="Overview" />
<item href="relnotes.html" name="Release Notes" />
<item href="index.html" name="Overview"/>
<item href="relnotes.html" name="Release Notes"/>
</menu>
<menu ref="reports" />
<menu ref="reports"/>

</body>
</project>

0 comments on commit 8d040cb

Please sign in to comment.