[ http://jira.codehaus.org/browse/MNG-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129907#action_129907 ]
Libor Kramolis commented on MNG-2759: ------------------------------------- Artifacts with classier are not deployed with its pom.xml. It means that projectC does not know what projectB depends on. :-( > Resolving transitive dependencies of artefacts with classifiers fails > --------------------------------------------------------------------- > > Key: MNG-2759 > URL: http://jira.codehaus.org/browse/MNG-2759 > Project: Maven 2 > Issue Type: Bug > Components: Dependencies > Affects Versions: 2.0.4 > Environment: Windows XP, Maven 2.0.4 > Reporter: Fabian Bauschulte > Fix For: Reviewed Pending Version Assignment > > Attachments: project.zip > > > I have the following projects with subprojects projectA, projectB and > projectC. projectA depends on projectB, projectC depends on projectB. All > projects use classifiers: > ... > <artifactId>projectB</artifactId> > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jar-plugin</artifactId> > <configuration> > <classifier>someclassifier</classifier> > </configuration> > </plugin> > </plugins> > </build> > <dependencies> > <dependency> > <groupId>test</groupId> > <artifactId>projectB</artifactId> > <version>1.0.0</version> > <classifier>someclassifier</classifier> > </dependency> > </dependencies> > When running "mvn clean install" on the the parent works fine. But running > "mvn install" only in projectC fails: > C:\Data\maven-test\projectC>mvn clean install > [INFO] Scanning for projects... > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Unnamed - test:projectC:jar:1.0.0 > [INFO] task-segment: [clean, install] > [INFO] > ---------------------------------------------------------------------------- > [INFO] [clean:clean] > [INFO] Deleting directory C:\Data\maven-test\projectC\target > [INFO] Deleting directory C:\Data\maven-test\projectC\target\classes > [INFO] Deleting directory C:\Data\maven-test\projectC\target\test-classes > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > Downloading: > http://repo1.maven.org/maven2/test/projectB/1.0.0/projectB-1.0.0.pom > [WARNING] Unable to get resource from repository central > (http://repo1.maven.org/maven2) > [INFO] [compiler:compile] > Compiling 1 source file to C:\Daten\maven-test\projectC\target\classes > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Compilation failure > C:\Data\maven-test\projectC\src\main\java\ClassC.java:[3,12] cannot find > symbol > symbol : class ClassA > location: package test > [INFO] > ------------------------------------------------------------------------ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira