Adrian Herscu wrote: > Hi all, > > In a multi-project P, child #1 (cP1) runs before child #2 (cP2). > > In cP1 the build uses the maven-antrun-plugin:1.1 and in cP2 the build > uses maven-antrun-plugin:1.1-INTERNAL (which patches version of 1.1 in > order to use ant-1.7.0 instead of ant-1.6.5). > > When running mvn install on P, the cP1 builds normally, but the cP2 > fails because it uses the maven-antrun-plugin:1.1 instead of > maven-antrun-plugin:1.1-INTERNAL :-( > > If I change cP1 to use maven-antrun-plugin:1.1-INTERNAL, with all the > dependencies from cP2, then everything works fine!
Sadly, Maven doesn't seem to be able to cope with using different versions of a plugin in different projects within a multi-project build. It just uses the first it encountered within the built. Max.
signature.asc
Description: OpenPGP digital signature
