Skip to content

Commit

Permalink
Hard-code version number in pom.xml
Browse files Browse the repository at this point in the history
Some build systems require hard-coding the version number in
pom.xml, so the revision property has been replaced with the
actual version number. Updating the version number can be
done with the following commands:

$ mvn versions:set -DnewVersion=<version>
$ mvn versions:commit

The .gitignore has been updated to ignore the backup files
created by this command.
  • Loading branch information
edewata committed Jul 18, 2023
1 parent 295b22c commit e1dab82
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build
dist
target/
.flattened-pom.xml
*.versionsBackup
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.dogtagpki.tomcatjss</groupId>
<artifactId>tomcatjss-parent</artifactId>
<version>${revision}</version>
<version>8.5.0-SNAPSHOT</version>
</parent>

<artifactId>tomcatjss-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.dogtagpki.tomcatjss</groupId>
<artifactId>tomcatjss-parent</artifactId>
<version>${revision}</version>
<version>8.5.0-SNAPSHOT</version>
</parent>

<artifactId>tomcatjss-main</artifactId>
Expand Down
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.dogtagpki.tomcatjss</groupId>
<artifactId>tomcatjss-parent</artifactId>
<version>${revision}</version>
<version>8.5.0-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
<revision>8.5.0-SNAPSHOT</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion tomcat-9.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.dogtagpki.tomcatjss</groupId>
<artifactId>tomcatjss-parent</artifactId>
<version>${revision}</version>
<version>8.5.0-SNAPSHOT</version>
</parent>

<artifactId>tomcatjss-tomcat-9.0</artifactId>
Expand Down

0 comments on commit e1dab82

Please sign in to comment.