-
Notifications
You must be signed in to change notification settings - Fork 205
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
[discuss]maven.version
conflict in pom.xml & system property
#516
Comments
Which
Which is overrided by system property, according to Spring Externalized Configuration, so i can't get the maven version we use for mvnd. Not sure at all, how Spring Externalized Configuration comes into game? |
Oh, sorry for my ambiguous description troubled you. I'm aim to build different mvnd for each maven version, so i need to get the maven version defined in pom. Let's show the test code first... Here is the github action result Download the zip and go into Here is the detail below:
https://github.com/mvndaemon/mvnd/blob/85e4d0cf2a6c6de3c34a12c582c96ba0aa4a0baa/pom.xml#L49
I try to add a property named
When i build mvnd with maven 3.6.3 and |
I don't think this is a |
We have the
maven.version
property configed in rootpom.xml
, to specify the base maven version we used for mvnd.And we also setup this property in
DaemonMavenCli.java
, for--version
usage to display system maven version, i guess?It works fine in each designed satuation, until i try to use
maven.version
inxxx.proerties
files.maven.version
defined inpom.xml
is overrided by system property, according to Spring Externalized Configuration, so i can't get the maven version we use for mvnd.Is this an expected feature, or a bug ?
The text was updated successfully, but these errors were encountered: