-
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
Clarify that <dependency> is needed if tiles are defined in same project #72
Comments
You are correct in assuming this, lifecycle plugins come too late for two things - variable resolution for dependencies and... dependencies. As such, one of my current projects has this issue as well, and the optional concept is an interesting workaround. This would also work around the issue where SNAPSHOT dependencies are not allowed in tiles (because there is some bug in the resolver). |
Caveat: this is a thought stream of a solution. Here be dragons. If the tile was listed as a This would essentially be automating the process one would normally have to do manually. One would probably limit this call path by a config parameter as well. Thoughts or alternatives? |
Is the module list mutable? I know it has been read by then, so that is also possible. I suppose we also have to make sure we would be able to get all of the parameters that were passed. |
With #65 being merged/released, is this ticket obsolete? |
looks like it,although I haven't tried the new release
…On Tue, Mar 27, 2018, 4:42 AM Mark Derricutt ***@***.***> wrote:
With #65 <#65> being
merged/released, is this ticket obsolete?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALnaj2G83YvSS6WCwIeB0-FUjuYe-r9hks5tiftfgaJpZM4QNRmn>
.
|
I think the only way to solve this is the somehow inject a dependency on the tile in the project. I am no maven expert and as such I don't know if this is possible. What #65 does is let you build the tiles and the modules that use the tiles in one go, but will not pick the tile up as a dependency when using |
On 31 Dec 2018, at 2:34, Brian Vella wrote:
but will not pick the tile up as a dependency when using `mvn install --pl components/foo --am`.
Just what I just said in my reply, I guess I should have read all the emails before replying :)
…---
"The ease with which a change can be implemented has no relevance at all to whether it is the right change for the (Java) Platform for all time." — Mark Reinhold.
Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt
|
I did some experiments on injecting dependencies. More detail in issue #63 |
I have the following source directory structure
The pom for
foo
uses a-tile. However, maven does not realize this dependency exists, so if I dofrom the root directory (i.e., build
foo
and its dependencies, maven will only buildfoo
,components
and the root directory, not the tiles. Addingto
foo/pom.xml
fixes this.I am not familiar enough with maven to know if a plugin can add a dependency like this, but I would not be surprised if it could not. If this cannot be added, then the documentation should clarify that this dependency needs to be added.
By adding
<optional>
to the dependency, it prevents other modules from gaining an implicit dependency on the tile.The text was updated successfully, but these errors were encountered: