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 2158706 commit d8f067a
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ tests/tests.retry
base/tools/test/PKICertImport/dbs
target/
.flattened-pom.xml
*.versionsBackup
2 changes: 1 addition & 1 deletion base/acme/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.dogtagpki.pki</groupId>
<artifactId>pki-base-parent</artifactId>
<version>${revision}</version>
<version>11.5.0-SNAPSHOT</version>
</parent>

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

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

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

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

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

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

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

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

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

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

<artifactId>pki-tks</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion base/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.pki</groupId>
<artifactId>pki-base-parent</artifactId>
<version>${revision}</version>
<version>11.5.0-SNAPSHOT</version>
</parent>

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

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

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

<artifactId>pki-tps</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.pki</groupId>
<artifactId>pki-parent</artifactId>
<version>${revision}</version>
<version>11.5.0-SNAPSHOT</version>
<packaging>pom</packaging>

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

Expand Down

0 comments on commit d8f067a

Please sign in to comment.