-
Notifications
You must be signed in to change notification settings - Fork 64
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
Use special property revision
to set the version only once
#6127
Conversation
See related documentation: https://maven.apache.org/maven-ci-friendly.html. |
This makes it easier to update the version and allows running Maven for example like this: `mvn -Drevision=3.7.0-test clean install`. Signed-off-by: Stefan Weil <[email protected]>
I looked into this changes now after I discovered some issues with it (see #6153): Using the For version 3.6.3 the pom file for the Kitodo API module contain an entry like this: <parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.6.3</version>
</parent> If you run a normal <parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>${revision}</version>
</parent> Even running the command with As the version in the pom file is not defined or better defined as |
On macOS, I don't have local The file I run all |
I did this mean as I wrote that the files inside the local .m2 directory. I have even only a single .m2 directory and so far as I know no one has a .m2 directory inside the git checkout. As not only in this pull request even on others: which version of mvn did you have on macOS? I think that is maybe related to this kind of issues. |
I have Maven 3.9.8 on macOS and 3.8.7 on Linux (default versions from Homebrew / Debian). |
Good to know, I'm running
So the issues may come from the newer maven version on MacOS or they are not related to the maven version itself. I can only write that this changes makes me more trouble than other changes since a long time. |
I try to help and think that there is an easy solution if all |
If this solution works for everyone on every current used operating system and in all usage cases why not. // Edit: this solution must work inside with different IDEs (IDEA, Eclipse, ...) too and not only on console. |
In all generated pom files with this changes they contain <parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>${revision}</version>
</parent> If I look into the
The
The content subdirectory The subdirectory <groupId>org.kitodo</groupId>
<artifactId>kitodo-production</artifactId>
<version>${revision}</version>
<packaging>pom</packaging> Even in this file the placeholder |
I have similar files / content (with less old revisions), so this seems to be okay. I now tried these commands on Linux based on my updated PR #6133 with
Everything seems to work fine. |
This is not okay, this are wrong created files which I never see in any other repository of other projects. May this is working with newer versions of Maven tool it is breaking older versions in their usage.
This may the case as on your system was never any issue with your changes. |
I get this directory only when I run |
I'm not running any build / install mvn command from a sub directory. Why are you deny / forbid to run any mvn command from a sub directory? If this is not working then the pom configuration is wrong! I'm can not run #6133 from root source directory as my current installation is broken through this changes here! @solth: Please revert this changes and accept them back if they are not causing any trouble for any one on any system. |
…itodo#6127)" This reverts commit 144b93f.
This makes it easier to update the version and allows running Maven for example like this:
mvn -Drevision=3.7.0-test clean install
.