-
Notifications
You must be signed in to change notification settings - Fork 82
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
rootlocation does not correctly work #48
Comments
Did you mean this issue by that?
|
This is related to versions-maven-plugin. Apart from that you are referencing a very old version. This issue of the versions-maven-plugin has already been fixed with version 2.4... |
This issue has been open for more than 3 years, the BTW, it is not just
which means that I cannot use Update: Just as a related background info why it would be nice to get this feature fixed, here are the problems I have with |
i'll take a look. the ITs do not run on windows, but that should be fixed easily. |
- maven is executed on a submodule - projects aggregation root and parent is not the same - child modules may reside in deeper nested folders without a pom.xml in between
the PR #84 is not sufficient - it works only when the parent pom = aggregation root pom. if you have a parent that is a child pom separate from the aggregation root pom it returns the path of the parent pom which is not the intention. i've created a new PR #92 which should work in all cases. |
A quick test indicates that this seems to work from the command line, unless when I am running any tests based on it from IntelliJ IDEA, either via Maven from the IDE or directly by running tests from there. But that is of course not a problem in the plugin but IDEA's inability to recognise and import the variable from the goal. I did not do a thorough test with different types of projects and situations, just some builds from both root directory and from a sub-module directory with the default settings for the goal. It seems to be working nicely now. Before it was not working at all. I am not an expert in Maven or this plugin, but you get my thumbs up. I think @khmarbaise is much more qualified to tell if this is as it should be for all cases, including edge ones. |
Oh, I forgot a detail: The build in your branch runs with version number |
OMG, I just noticed why I had the wrong snapshot version: I accidentally built and tested the original PR, not the improved one. Yours links to the original and I just clicked the wrong link in order to get to the repository to clone from. GitHub really should provide a direct clone URL right from the PR without having to navigate first. Your PR also works for me, but I did not test against a project where the aggregator POM is not the project parent POM at the same time. I trust you did that. |
Fixes #48 rootlocation does not correctly work
… version Waiting for version 3.2.0 being uploaded to Maven Central after bugfix for mojohaus/build-helper-maven-plugin#48
Quick question: Yesterday you released the new version 3.2.0, but it still is unavailable on Maven Central. Usually my experience when releasing to Central is that it does not take that long to be published. Did you maybe forget to deploy the artifact? |
it's under voting process which takes at least 72h - see mail thread |
Oh, of course. Stupid me! This is OSS with a release process, not my private project which I can push to Maven Central anytime. |
Using the rootlocation in a multi module build and having a sub module which contains rootlocation.
Calling mvn like this:
Does not seemed to work correctly.
The text was updated successfully, but these errors were encountered: