jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-2759

Resolving transitive dependencies of artefacts with classifiers fails

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 2.0.4
  • Fix Version/s: None
  • Component/s: Dependencies
  • Labels:
    None
  • Environment:
    Windows XP, Maven 2.0.4
  • Complexity:
    Intermediate

Description

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    project.zip
    12/Jan/07 5:03 AM
    4 kB
    Fabian Bauschulte
    1. Java Source File
      projectA/src/main/java/ClassA.java 0.0 kB
    2. XML File
      projectA/pom.xml 0.4 kB
    3. Java Source File
      projectB/src/main/java/ClassB.java 0.1 kB
    4. XML File
      projectB/pom.xml 0.6 kB
    5. Java Source File
      projectC/src/main/java/ClassC.java 0.1 kB
    6. XML File
      projectC/pom.xml 0.6 kB
    7. XML File
      pom.xml 0.3 kB
    Download Zip
    Show
    Zip Archive
    project.zip
    12/Jan/07 5:03 AM
    4 kB
    Fabian Bauschulte

Issue Links

depends upon

Bug - A problem which impairs or prevents the functions of the product. MDEPLOY-78 Deploy with classifier does not deploy pom

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Bug - A problem which impairs or prevents the functions of the product. MINSTALL-41 Install with classifier does not install pom

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is related to

Bug - A problem which impairs or prevents the functions of the product. MNG-1823 dependencies with classifier mask transitive dependencies of same dependency without classifier

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Libor Kramolis added a comment - 05/Apr/08 2:49 PM

Artifacts with classier are not deployed with its pom.xml. It means that projectC does not know what projectB depends on.

Show
Libor Kramolis added a comment - 05/Apr/08 2:49 PM Artifacts with classier are not deployed with its pom.xml. It means that projectC does not know what projectB depends on.
Hide
Permalink
Libor Kramolis added a comment - 06/Apr/08 6:59 AM

See also MINSTALL-41 and MDEPLOY-45.

Show
Libor Kramolis added a comment - 06/Apr/08 6:59 AM See also MINSTALL-41 and MDEPLOY-45.
Hide
Permalink
Libor Kramolis added a comment - 14/May/08 8:13 AM

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

Show
Libor Kramolis added a comment - 14/May/08 8:13 AM I have attached patches of install (MINSTALL-41) and deploy (MDEPLOY-78) plugins to solve this problem. I hope they will be applied soon.
Hide
Permalink
Brett Porter added a comment - 18/Dec/08 5:23 AM

this just needs to be fixed in the linked issues

Show
Brett Porter added a comment - 18/Dec/08 5:23 AM this just needs to be fixed in the linked issues

People

  • Assignee:
    Brett Porter
    Reporter:
    Fabian Bauschulte
Vote (2)
Watch (2)

Dates

  • Created:
    12/Jan/07 5:03 AM
    Updated:
    18/Dec/08 4:16 PM
    Resolved:
    18/Dec/08 5:23 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.