You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/10/06 19:59:54 UTC

[jira] Resolved: (MAVEN-1456) Two dependencies with same group and artifactId, but different type, are thought to be the same

Message:

   The following issue has been resolved as DUPLICATE.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1456

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1456
    Summary: Two dependencies with same group and artifactId, but different type, are thought to be the same
       Type: Bug

     Status: Resolved
   Priority: Critical
 Resolution: DUPLICATE

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core
   Fix Fors:
             1.1
   Versions:
             1.0

   Assignee: 
   Reporter: Daniel Fernández

    Created: Wed, 6 Oct 2004 1:17 PM
    Updated: Wed, 6 Oct 2004 1:59 PM
Environment: Sun's J2SE 1.4.2_04 on Fedora Core 2. Apache Ant 1.6.1.

Description:
If, in the project.xml file of my project, I declare two different dependencies with the same groupId and artifactId, but different "type", maven thinks they're one and the same and only downloads and processes the first of them.

As an example (these can be found at ibiblio.org/maven):
  
    <dependency>
      <groupId>struts-menu</groupId>
      <artifactId>struts-menu</artifactId>
      <version>2.3</version>
      <properties>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>

    <dependency>
      <groupId>struts-menu</groupId>
      <artifactId>struts-menu</artifactId>
      <version>1.2</version>
      <type>tld</type>
      <properties>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>

This avoids a correct use of maven in cases like the one above, where we have a web tool library and an associated tld. In this case maven will download the struts-menu-2.3.jar file (and include it in the war) and ignore completely the struts-menu-1.2.tld file.




---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org