-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#85 Consider ci-friendly-maven also for archetype #342
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7f9976a
#85 : modified pom files in template with version variable.
7399d2c
modified pom files for version info
0c4be86
configured .mvn directory in metadata
ed83df4
formatted
36002b1
Merge branch 'master' into dev_cifriendly
hohwille 5a890dd
Fixed last indentation issue
hohwille File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-Drevision=0.0.1 -Dchangelist=-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
templates/server/src/main/resources/archetype-resources/.mvn/maven.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-Drevision=0.0.1 -Dchangelist=-SNAPSHOT | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>${artifactId}</artifactId> | ||
<groupId>${groupId}</groupId> | ||
<version>${version}</version> | ||
<version>${app.version}</version> | ||
<packaging>pom</packaging> | ||
<name>${project.artifactId}</name> | ||
<description>Application based on the devon4j.</description> | ||
|
@@ -19,17 +19,18 @@ | |
<jackson.version>$[jackson.version]</jackson.version> <!-- Overriding Jackson for fixing vulnerabilities --> | ||
<guava.version>$[guava.version]</guava.version> | ||
<devonfw.test.excluded.groups>system</devonfw.test.excluded.groups> | ||
<app.version>${revision}${changelist}</app.version> | ||
</properties> | ||
|
||
<modules> | ||
<module>api</module> | ||
<module>core</module> | ||
#if ($earProjectName != '.') | ||
#if ($earProjectName != '.') | ||
<module>${earProjectName}</module> | ||
#end | ||
#if ($batch == 'batch') | ||
#end | ||
#if ($batch == 'batch') | ||
<module>batch</module> | ||
#end | ||
#end | ||
Comment on lines
-27
to
+33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems Eclipse formatter also indents velocity macros. |
||
<module>server</module> | ||
</modules> | ||
|
||
|
@@ -50,7 +51,7 @@ | |
<version>${junit.version}</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependency> | ||
<!-- Library with general utilities --> | ||
<dependency> | ||
<groupId>com.google.guava</groupId> | ||
|
@@ -196,7 +197,7 @@ | |
<version>$[maven.javadoc.plugin.version]</version> | ||
<configuration> | ||
<!-- http://jira.codehaus.org/browse/MJAVADOC-308 --> | ||
<!--<maxmemory>5048m</maxmemory>--> | ||
<!--<maxmemory>5048m</maxmemory> --> | ||
<notree>true</notree> | ||
<show>protected</show> | ||
<encoding>${project.reporting.outputEncoding}</encoding> | ||
|
@@ -287,7 +288,8 @@ | |
<useMissingFile>true</useMissingFile> | ||
<failOnMissing>true</failOnMissing> | ||
<licenseMerges> | ||
<licenseMerge>Apache Software License, Version 2.0|The Apache Software License, Version 2.0|Apache 2.0|Apache License, Version 2.0</licenseMerge> | ||
<licenseMerge>Apache Software License, Version 2.0|The Apache Software License, Version 2.0|Apache | ||
2.0|Apache License, Version 2.0</licenseMerge> | ||
</licenseMerges> | ||
</configuration> | ||
</plugin> | ||
|
@@ -329,7 +331,7 @@ | |
<profile> | ||
<id>moduletest</id> | ||
<properties> | ||
<devonfw.test.excluded.groups>component,subsystem,system</devonfw.test.excluded.groups> | ||
<devonfw.test.excluded.groups>component,subsystem,system</devonfw.test.excluded.groups> | ||
</properties> | ||
</profile> | ||
<profile> | ||
|
@@ -340,7 +342,7 @@ | |
</profile> | ||
<profile> | ||
<id>subsystemtest</id> | ||
<properties> | ||
<properties> | ||
<devonfw.test.excluded.groups>system</devonfw.test.excluded.groups> | ||
</properties> | ||
</profile> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An archetype can take a version as argument. That is available via
${version}
variable.It will now be ignored and the initial version is hardcoded to this
0.0.1-SNAPSHOT
.As
${version}
can also be1.0.0-SNAPSHOT
we can not easily doAs this would then result in
1.0.0-SNAPSHOT-SNAPSHOT
.However, as a nice to have, we could check if via velocity macros it is possible to strip out a potential
-SNAPSHOT
from${version}
. If that is possible, we should use${version}
to make it perfect.However, for me also fine to approve and merge like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatting is done..
version passing as an argument would be really nice..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for formatting. To prevent blocking this PR, I will merge it now.
Can you please create a new issue for the nice-to-have improvement to put the version here and research velocity macro syntax to remove potential
-SNAPSHOT
suffix?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue #346 created.
is it okay to directly place the version to app.version properties ... like below
#if($version)
<app.version>${version}</app.version>
#else
<app.version>${revision}${changelist}</app.version>
#end