You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arik Kfir <ar...@gmail.com> on 2005/05/14 13:14:21 UTC

Dependencies with the same artifactId/groupId but a different type

Hi,

I have a project with the following dependencies:

        <dependency>
            <groupId>mevenide</groupId>
            <artifactId>mevenide-core</artifactId>
            <version>0.8-SNAPSHOT</version>
            <type>jar</type>
            <properties>
                <idea.plugin.bundle>true</idea.plugin.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>mevenide</groupId>
            <artifactId>mevenide-core</artifactId>
            <version>0.8-SNAPSHOT</version>
            <type>src.jar</type>
        </dependency>
        <dependency>
            <groupId>mevenide</groupId>
            <artifactId>mevenide-core</artifactId>
            <version>0.8-SNAPSHOT</version>
            <type>javadoc.jar</type>
        </dependency>

For some reason, maven (1.0.2) only downloads the first dependency - in this case, of type 'jar'. The others are never downloaded. I've tried emptying the repository to make sure they are not somehow cached.

It seems that maven does not correctly handle identical dependencies with only different types - is this true? Each of these dependencies DOES get downloaded if I comment the other two.

Thanks,
    Arik.

Re: Dependencies with the same artifactId/groupId but a different type

Posted by Brett Porter <br...@gmail.com>.
put the first part of "type" into the version as a workaround.

- Brett

On 5/14/05, Arik Kfir <ar...@gmail.com> wrote:
> 
> ----- Original Message -----
> From: "Julien Kirch" <j....@laposte.net>
> To: "Maven Users List" <us...@maven.apache.org>
> Sent: Saturday, May 14, 2005 1:28 PM
> Subject: Re: Dependencies with the same artifactId/groupId but a different
> type
> 
> >> It seems that maven does not correctly handle identical dependencies with
> >> only different types - is this true? Each of these dependencies DOES get
> >> downloaded if I comment the other two.
> >
> > Hi,
> >
> > It's a known issue in maven 1
> 
> Is there a way to go around it? Perhaps even manual dependency downloading
> in maven.xml or something of the sort?
> 
> >
> > Regards
> >
> > Julein
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


Re: Dependencies with the same artifactId/groupId but a different type

Posted by Arik Kfir <ar...@gmail.com>.
----- Original Message ----- 
From: "Julien Kirch" <j....@laposte.net>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Saturday, May 14, 2005 1:28 PM
Subject: Re: Dependencies with the same artifactId/groupId but a different 
type


>> It seems that maven does not correctly handle identical dependencies with 
>> only different types - is this true? Each of these dependencies DOES get 
>> downloaded if I comment the other two.
>
> Hi,
>
> It's a known issue in maven 1

Is there a way to go around it? Perhaps even manual dependency downloading 
in maven.xml or something of the sort?

>
> Regards
>
> Julein
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


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


Re: Dependencies with the same artifactId/groupId but a different type

Posted by Julien Kirch <j....@laposte.net>.
> It seems that maven does not correctly handle identical dependencies with only different types - is this true? Each of these dependencies DOES get downloaded if I comment the other two.

Hi,

It's a known issue in maven 1

Regards

Julein

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