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 1
  • MAVEN-1456

Two dependencies with same group and artifactId, but different type, are thought to be the same

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Duplicate
  • Affects Version/s: 1.0
  • Fix Version/s: None
  • Component/s: core
  • Labels:
    None
  • 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.

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MAVEN-1087 Dependency type should participate in equals() and hashcode()

  • 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
Felipe Leme added a comment - 06/Oct/04 1:58 PM

This is a very well know bug/limitation of Maven 1.0

Show
Felipe Leme added a comment - 06/Oct/04 1:58 PM This is a very well know bug/limitation of Maven 1.0
Hide
Permalink
Felipe Leme added a comment - 06/Oct/04 2:11 PM

Closed as duplicated of MAVEN-1087

Show
Felipe Leme added a comment - 06/Oct/04 2:11 PM Closed as duplicated of MAVEN-1087

People

  • Assignee:
    Unassigned
    Reporter:
    Daniel Fernández
Vote (0)
Watch (1)

Dates

  • Created:
    06/Oct/04 1:17 PM
    Updated:
    08/Mar/06 10:44 PM
    Resolved:
    06/Oct/04 1:59 PM
  • 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.