This approach does work well on my multi-module Maven project, and I’d
really like to use it. However, one problem I’ve encountered seems
tough to handle. Perhaps, it's what you ran into. If I want to run an
out-of-band plugin on a child module, I have to run it from the root
module. For example, the version variables will not be evaluated if I
did…
cd child-module; mvn dependency:list
However the version variables do evaluate correctly from the root
module, if you did…
mvn dependency:list -pl :child-module
This is fine for some, but will make adoption challenging for my
peers. Any suggested work-around would be welcome.
I'm growing weary of banging my head on Maven, and I'm also really
looking at Gradle.
Regards,
Mike
On Jan 14, 9:32 am, Mike McGarr <
jmcg...@gmail.com> wrote:
> I would take a look at Axel Fontaines 3 part blog post on how to stop using
> the Maven Release plugin when building Maven projects:
http://www.axelfontaine.com/2011/01/maven-releases-on-steroids-adios....
>
> I personally had an issue with this approach on multi-module Maven projects
> and never solved the problem. Here's my post on the issue:
http://www.axelfontaine.com/2011/01/maven-releases-on-steroids-adios....