-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Pom properties are not evaluated #197
Comments
@lread Thanks for your reporting!
Great. I'll have a look. |
This multimethod resolves properties in pom.xml |
Hiya @liquidz! I'm not sure if you are making a note for yourself or asking me to look into something here. |
@lread Oh sorry. It's just a note for me :) |
@lread Sorry for late fixing. Could you try |
Hmm? Something may be wrong with upgrading pom. |
Hey, I'm in absolutely no hurry, thanks for looking into this.
Sure, will do sometime today and get back to you. |
Ok, only did minimal testing but against my repro above from antq dev branch: Retry of reported reproduction
Looks good! PomegranateNowAnd if I hit pomegranate:
Looks good! PreviouslyCompare with old behaviour:
Did not Try...Upgrading... that's not something I personally use antq for. |
@lread Thanks for your confirmation! |
Just released 2.2.983 #198 |
While checking pomegranate for old deps with antq, I noticed that when versions in
pom.xml
files come from pom properties, these properties are not evaluated.I'm not suggesting that you fix this, that is, of course, entirely your choice, just thought you would be interested.
Reproduction
Create a
pom.xml
in an empty directory:From that directory, run antq:
clojure -Sdeps '{:deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}}' -M -m antq.core
Actual output
Expected output
I would expect antq to compare against and present the actual property values:
Note that
org.apache.maven.resolver/maven-resolver-api
would not be presented, because, at the time of this writing, the current version is1.9.4
.Observation
If, from the same dir, I ask clojure to show the deps:
clojure -Sdeps '{:deps {testing123/testing123 {:local/root "." :deps/manifest :pom}}}' -Stree
We can see that it resolves the maven properties:
So maybe tools.deps will be of some help here.
Note also, as I understand it, that properties can come from parent poms.
The text was updated successfully, but these errors were encountered: