Hi,
Sorry for the little off-topic post, but maybe if I'm lucky, someone on the list already solved the problem.
So I'm mavenizing a huge app with a lot of frameworks. Some of them are core frameworks other frameworks rely on. i.e : Framework A depends on commons-lang Framework B depends on Framework A and also on commons-lang
If in the pom of Framework B I omit to declare the dependency on commons-lang, the framework will compile without complaining because at compile time, commons-lang will be provided by Framework A. This works nice but, I'd like my sub-pom to be the more precise as possible so that they declare every dependency they need. The problem is that with 42 frameworks to mavenize I'm going nuts. I'd like to configure maven to ignore transitive dependencies so that if a sub-pom is incomplete the build fails.
I tried to disable the transitive dependencies using the following configuration but it doesn't seem to work : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>resolve</id> <phase>compile</phase> <goals> <goal>resolve</goal> </goals> <configuration> <excludeTransitive>true</excludeTransitive> </configuration> </execution> </executions> </plugin>
Thanks for your help
Fred
|