-
Notifications
You must be signed in to change notification settings - Fork 11
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
Added rewriting the ${revision} for dependencies and removing the par… #22
base: master
Are you sure you want to change the base?
Conversation
…ent pom relativePath parameter
Thanks for your contribution! Just to let you know in case you miss it but most of this extension functionality is now covered by https://maven.apache.org/maven-ci-friendly.html#install-deploy For the added functionality, I don't really understand how the removal of Replacing the |
First of all thanks for the quick reply. I tried to create a structure, it is a bit complicated, and only a demo so not working and not real code but just to show some idea of the structure: https://github.com/Tijs-2/example But what I wanted to archive is this: There are then 4 modules: Before this structure if I updated the main pom I also had to update the library which was a separate project. Then update both on a project that uses them. Also versions would be out of sync etc etc. With multiple small updates that becomes quite an annoyance. Also the stuff on how to build the library and my java projects where copy/pasted into every projects and a change meant changing all those projects. So by setting them into this structure the library and other projects can share more "pom" code. Versioning: The problem is that the ${revision} and ${project.version} needs to be replace otherwise you cant use it as a parent in another project. It will then try to use the library but with the version of the project that uses the pom as a parent. There are also other problems in the flatten plugin which keep me from using it, it does too much and introduce problems like this: mojohaus/flatten-maven-plugin#152 relativePath: I am not sure if it should be part of this project because of the name but uploading a pom with a relativePath makes it unusable and for me it was easier to add it to this library then to create a new library that only replaces the relativePath before uploading. And I think you always want this because a pom uploaded into a central maven repository cannot work with relativePaths (but I might be mistaken) Hopefully this is a bit clear, I tried to split it into the two topics which hopefully helps to read my message... Tijs |
Thanks for the example and the really clear message (and sorry for the late reply 😇). Your multi-module structure seems quite common so that you shouldn't go in much trouble 😅. I haven't use the flatten-maven-plugin much by myself but it seems to have room for improvement :) Your problem with the I'm merging the dependencies part 👍 |
Just reopening for the relativePath part 😇 |
I was testing again with the relativePath to create the example but I did not receive the issue again. So maybe it was a different problem than what I thought it was and fixed it at the same time that I removed the relativePath... So for now I think this issue can be closed :) |
Hi Jean-Christophe,
I have found your library and used it to push a multi module project into my repository but it I missed two functions.
Which I both needed to use the pom for another project as a parent pom
Not sure if this is wanted but I needed itanyway and it seems to work, so I thought maybe it is a good addition.
Tijs