You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Fabian Bauschulte (JIRA)" <ji...@codehaus.org> on 2007/01/12 12:04:21 UTC

[jira] Created: (MNG-2759) Resolving transitive dependencies of artefacts with classifiers fails

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
         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

        

[jira] Commented: (MNG-2759) Resolving transitive dependencies of artefacts with classifiers fails

Posted by "Libor Kramolis (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] Commented: (MNG-2759) Resolving transitive dependencies of artefacts with classifiers fails

Posted by "Libor Kramolis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129927#action_129927 ] 

Libor Kramolis commented on MNG-2759:
-------------------------------------

See also MINSTALL-41 and MDEPLOY-45.


> 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

        

[jira] Commented: (MNG-2759) Resolving transitive dependencies of artefacts with classifiers fails

Posted by "Libor Kramolis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134793#action_134793 ] 

Libor Kramolis commented on MNG-2759:
-------------------------------------

I have attached patches of install (MINSTALL-41) and deploy (MDEPLOY-78) plugins to solve this problem. I hope they will be applied soon.


> 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

        

[jira] Closed: (MNG-2759) Resolving transitive dependencies of artefacts with classifiers fails

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-2759.
-----------------------------

         Assignee: Brett Porter
       Resolution: Won't Fix
    Fix Version/s:     (was: Reviewed Pending Version Assignment)

this just needs to be fixed in the linked issues

> 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
>            Assignee: Brett Porter
>         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