Skip to content

Commit fbbdb73

Browse files
authored
#85: use revision variable directly (#382)
also removed macro whitespaces to avoid broken indentation in resulting pom
1 parent 67e2d01 commit fbbdb73

File tree

7 files changed

+11
-12
lines changed

7 files changed

+11
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-Drevision=$version
1+
-Drevision=${version}

templates/server/src/main/resources/archetype-resources/__batch__/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>${groupId}</groupId>
77
<artifactId>${rootArtifactId}</artifactId>
8-
<version>${app.version}</version>
8+
<version>${revision}</version>
99
</parent>
1010
<artifactId>${rootArtifactId}-batch</artifactId>
1111
<packaging>jar</packaging>

templates/server/src/main/resources/archetype-resources/__earProjectName__/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>${groupId}</groupId>
66
<artifactId>${artifactId}</artifactId>
7-
<version>${app.version}</version>
7+
<version>${revision}</version>
88
</parent>
99
<artifactId>${earProjectName}</artifactId>
1010
<name>${project.artifactId}</name>

templates/server/src/main/resources/archetype-resources/api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>${groupId}</groupId>
77
<artifactId>${rootArtifactId}</artifactId>
8-
<version>${app.version}</version>
8+
<version>${revision}</version>
99
</parent>
1010
<artifactId>${rootArtifactId}-api</artifactId>
1111
<packaging>jar</packaging>

templates/server/src/main/resources/archetype-resources/core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>${groupId}</groupId>
77
<artifactId>${rootArtifactId}</artifactId>
8-
<version>${app.version}</version>
8+
<version>${revision}</version>
99
</parent>
1010
<artifactId>${rootArtifactId}-core</artifactId>
1111
<packaging>jar</packaging>

templates/server/src/main/resources/archetype-resources/pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<artifactId>${artifactId}</artifactId>
66
<groupId>${groupId}</groupId>
7-
<version>${app.version}</version>
7+
<version>${revision}</version>
88
<packaging>pom</packaging>
99
<name>${project.artifactId}</name>
1010
<description>Application based on the devon4j.</description>
@@ -19,18 +19,17 @@
1919
<jackson.version>$[jackson.version]</jackson.version> <!-- Overriding Jackson for fixing vulnerabilities -->
2020
<guava.version>$[guava.version]</guava.version>
2121
<devonfw.test.excluded.groups>system</devonfw.test.excluded.groups>
22-
<app.version>${revision}</app.version>
2322
</properties>
2423

2524
<modules>
2625
<module>api</module>
2726
<module>core</module>
28-
#if ($earProjectName != '.')
27+
#if ($earProjectName != '.')
2928
<module>${earProjectName}</module>
30-
#end
31-
#if ($batch == 'batch')
29+
#end
30+
#if ($batch == 'batch')
3231
<module>batch</module>
33-
#end
32+
#end
3433
<module>server</module>
3534
</modules>
3635

templates/server/src/main/resources/archetype-resources/server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>${groupId}</groupId>
77
<artifactId>${rootArtifactId}</artifactId>
8-
<version>${app.version}</version>
8+
<version>${revision}</version>
99
</parent>
1010
<artifactId>${rootArtifactId}-server</artifactId>
1111
<packaging>war</packaging>

0 commit comments

Comments
 (0)