Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.5, 2.0.6, 2.0.7, 2.0.8
-
None
-
None
-
Patch
Description
In a reactor, when a project depends on attached artifacts with classifier of other projects (such as jar assemblies), the generated classpath includes all the output directory of the related projects.
This can lead to problems for example if these attached artifacts contains only a subset of the output directory of the related project.
I attached an example that shows this problem :
1/ launch "mvn install" in the "test-classifier" directory (POM project basedir), you'll get a compilation failure for module3.
2/ launch "mvn install" in the "module3" directory, it works.
I also attached a patch (it affects only MavenProject class).