You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Charlie Groves <ch...@gmail.com> on 2005/11/21 20:33:22 UTC

confusing maven 2 dependency behavior

Hi,

I'm migrating some projects from maven 1 to 2.  We have a dependency
in our project.xml that looks like
<dependency>
        <id>junit-addons</id>
        <version>1.4</version>
        <type>test</type>
</dependency>

so I add
<dependency>
    <artifactId>junit-addons</artifactId>
    <groupId>junit-addons</groupId>
    <version>1.4</version>
    <scope>test</scope>
</dependency>

to my pom.xml for maven 2.  When I run mvn install with that pom, it
fails while attempting to download
http://repo1.maven.org/maven2/junit-addons/junit-addons-runner/1.0-alpha1/junit-addons-runner-1.0-alpha1.pom
 This doesn't exist on ibiblio, so it makes sense that it fails.  I
just don't understand why it's trying to download it.  The
junit-addons 1.4 jar is there...

Thanks,
Charlie

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


Re: confusing maven 2 dependency behavior

Posted by Anuerin Diaz <ra...@gmail.com>.
try adding a dummy pom for it. the developers said that the future
release version of the install plugin is going to create a pom
automatically but for now i just create them manually. recently
somebody has suggested adding an option to install-file to generate
poms so you might try searching the archives.

ciao!

On 11/21/05, Charlie Groves <ch...@gmail.com> wrote:
> Hi,
>
> I'm migrating some projects from maven 1 to 2.  We have a dependency
> in our project.xml that looks like
> <dependency>
>         <id>junit-addons</id>
>         <version>1.4</version>
>         <type>test</type>
> </dependency>
>
> so I add
> <dependency>
>     <artifactId>junit-addons</artifactId>
>     <groupId>junit-addons</groupId>
>     <version>1.4</version>
>     <scope>test</scope>
> </dependency>
>
> to my pom.xml for maven 2.  When I run mvn install with that pom, it
> fails while attempting to download
> http://repo1.maven.org/maven2/junit-addons/junit-addons-runner/1.0-alpha1/junit-addons-runner-1.0-alpha1.pom
>  This doesn't exist on ibiblio, so it makes sense that it fails.  I
> just don't understand why it's trying to download it.  The
> junit-addons 1.4 jar is there...
>
> Thanks,
> Charlie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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


Re: confusing maven 2 dependency behavior

Posted by Brett Porter <br...@gmail.com>.
Because junit-addons says it needs it:
http://www.ibiblio.org/maven2/junit-addons/junit-addons/1.4/junit-addons-1.4.pom

File a bug:
http://jira.codehaus.org/browse/MEV

On 11/22/05, Charlie Groves <ch...@gmail.com> wrote:
> Hi,
>
> I'm migrating some projects from maven 1 to 2.  We have a dependency
> in our project.xml that looks like
> <dependency>
>         <id>junit-addons</id>
>         <version>1.4</version>
>         <type>test</type>
> </dependency>
>
> so I add
> <dependency>
>     <artifactId>junit-addons</artifactId>
>     <groupId>junit-addons</groupId>
>     <version>1.4</version>
>     <scope>test</scope>
> </dependency>
>
> to my pom.xml for maven 2.  When I run mvn install with that pom, it
> fails while attempting to download
> http://repo1.maven.org/maven2/junit-addons/junit-addons-runner/1.0-alpha1/junit-addons-runner-1.0-alpha1.pom
>  This doesn't exist on ibiblio, so it makes sense that it fails.  I
> just don't understand why it's trying to download it.  The
> junit-addons 1.4 jar is there...
>
> Thanks,
> Charlie
>
> ---------------------------------------------------------------------
> 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