You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bo...@werken.com on 2003/01/13 10:48:12 UTC

[maven-bug] New comment: (MAVEN-194) Two dependiencise having the same id but diffrent type should not be assumed as duplicats

The following comment has been added to this issue:

     Author: Michal Maczka
    Created: Mon, 13 Jan 2003 3:48 AM
       Body:
I think that this can be resolved by using:
 
   <dependency>
      <artifactId>mydep</artifactId>
      <version>1.0.1</version>
      <type>war</type>
    </dependency>
  </dependencies>


  <dependencies>
    <dependency>
      <artifactId>mydep</artifactId>
      <version>1.0.1</version>
       <type>jar</type>
    </dependency>
  </dependencies>


Simply the difference between <id> and <artifactId> tags is a bit fuzzy and this is misleading. 
So this rather is asking for proper documentation then for fixing a bug in source code. 
 



---------------------------------------------------------------------
View the issue:

  http://jira.werken.com/secure/ViewIssue.jspa?key=MAVEN-194


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-194
    Summary: Two dependiencise having the same id but diffrent type should not be assumed as duplicats
       Type: Bug

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: maven
  Component: None
   Versions:
             1.0-beta-8

   Assignee: Jason van Zyl
   Reporter: Michal Maczka

    Created: Sun, 12 Jan 2003 10:22 AM
    Updated: Sun, 12 Jan 2003 10:22 AM

Description:

Currently in case of following dependincies in POM:

<dependencies>
    <dependency>
      <id>mydep</id>
      <version>1.0.1</version>
      <type>war</type>
    </dependency>
  </dependencies>


  <dependencies>
    <dependency>
      <id>mydep</id>
      <version>1.0.1</version>
       <type>jar</type>
    </dependency>
  </dependencies>

only the first dependency will be availabe in dependency list.

Solution:

Both "id" and "type" should be used in org.apache.maven.project.BaseObject and two dependincies should
be assumed as equal only if
dep1.id == dep2.id
   &&
dep1.type == dep2.type





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.werken.com/Administrators.jspa

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