-
Notifications
You must be signed in to change notification settings - Fork 33
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
Cannot update tile.xml with maven-versions-plugins #127
Comments
Dependency management isn't done in tiles if that is a question? Only plugin management, we typically use composite poms (poms which contain only dependencies, and which are typically grouped by logical subset, e.g. logging, your web stack, your DI stack, etc). |
Ok. Leaving aside anything relating to dependencyManagement - there's a lot of helpful stuff |
That being said - management of plugins can't AFAIK be handled via the composite model @rvowles uses. In my own case - we use properties for plugin versions in our tiles, which can be overridden in the consuming project with whatever means you want. This is the same mechanism used by the |
That's quite the workaround. If I understand, the Functional but ... 2x everything in a library designed for DRY ... |
Yikes. I agree! |
In theory the version update mechanism seems a good one, but the time you are operating on is raw. From our perspective it would only make sense if we pre stripped that section from the pom before merging. |
What about a mojo that merges the tile into itself (likely fairly easy) and then merges changes back into the tile (maybe not so easy)
Simpler first step might be to limit feedback to only |
I wanted to maven-versions-plugin auto update on the
tile.xml
...... but find that we cannot do this without adding Maven-mandatory properties ...
... which then need removing because
:validate
rejects them. As a one-off this is acceptable but I was trying to automate the tiles equivalent of usingmy.company:internal-bom:pom:LATEST
to hold the floating set of last-released<dependencyManagement>
across an internal software stack (do tell if there's a more sensible solution here)Given tiles simply isn't involved in that invocation the only solutions I imagine are:
1 (optionally) make the validation failure into a warning
2 validate a "magic" placeholder GAV used only for such purposes?
(*) this all presumes tiles-only extension syntax is used in tile.xml
The text was updated successfully, but these errors were encountered: