You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Maarten Coene <ma...@yahoo.com> on 2009/12/02 22:26:42 UTC
Re: Empty version in pom issue
Seems like a bug to me, please create a JIRA issue for this.
If possible, also attach the pom (or it's URL) containing dependencies without versions.
Maarten
----- Original Message ----
From: "lightguard.jp@gmail.com" <li...@gmail.com>
To: ivy-user@ant.apache.org
Sent: Mon, November 30, 2009 7:06:56 PM
Subject: Empty version in pom issue
Here's an excerpt from a pom of a dependency I'm using:
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-api</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-spi</artifactId>
</dependency>
You'll notice there aren't any versions defined here, so maven is going to use the lastest. The ivy file that's created for this section:
<dependency org="javax.enterprise" name="cdi-api" rev="working@Lappy.local" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.jboss.weld" name="weld-api" rev="working@Lappy.local" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.jboss.weld" name="weld-spi" rev="working@Lappy.local" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
In the ivy.xml file I have
<dependency org="org.jboss.weld" name="weld-core" rev="1.0.0" />
Settings file:
<ivysettings>
<settings defaultResolver="seam"/>
<include url="${ivy.default.settings.dir}/ivysettings.xml"/>
<resolvers>
<ibiblio name="jboss" m2compatible="true" usepoms="true" root="http://repository.jboss.org/maven2/" pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/>
<chain name="seam" dual="true">
<resolver ref="public"/>
<resolver ref="jboss"/>
</chain>
</resolvers>
</ivysettings>
Is there a way to fix this?
--
Jason Porter
Real Programmers think better when playing Adventure or Rogue.
PGP key id: 926CCFF5
PGP fingerprint: 64C2 C078 13A9 5B23 7738 F7E5 1046 C39B 926C CFF5
PGP key available at: keyserver.net, pgp.mit.edu
Re: Empty version in pom issue
Posted by li...@gmail.com.
On Wed, Dec 2, 2009 at 14:26, Maarten Coene <ma...@yahoo.com> wrote:
> Seems like a bug to me, please create a JIRA issue for this.
> If possible, also attach the pom (or it's URL) containing dependencies without versions.
>
> Maarten
>
>
>
>
> ----- Original Message ----
> From: "lightguard.jp@gmail.com" <li...@gmail.com>
> To: ivy-user@ant.apache.org
> Sent: Mon, November 30, 2009 7:06:56 PM
> Subject: Empty version in pom issue
>
> Here's an excerpt from a pom of a dependency I'm using:
>
> <dependency>
> <groupId>javax.enterprise</groupId>
> <artifactId>cdi-api</artifactId>
> </dependency>
> <dependency>
> <groupId>org.jboss.weld</groupId>
> <artifactId>weld-api</artifactId>
> </dependency>
> <dependency>
> <groupId>org.jboss.weld</groupId>
> <artifactId>weld-spi</artifactId>
> </dependency>
>
> You'll notice there aren't any versions defined here, so maven is going to use the lastest. The ivy file that's created for this section:
>
> <dependency org="javax.enterprise" name="cdi-api" rev="working@Lappy.local" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
> <dependency org="org.jboss.weld" name="weld-api" rev="working@Lappy.local" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
> <dependency org="org.jboss.weld" name="weld-spi" rev="working@Lappy.local" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
>
> In the ivy.xml file I have
> <dependency org="org.jboss.weld" name="weld-core" rev="1.0.0" />
>
> Settings file:
> <ivysettings>
> <settings defaultResolver="seam"/>
> <include url="${ivy.default.settings.dir}/ivysettings.xml"/>
> <resolvers>
> <ibiblio name="jboss" m2compatible="true" usepoms="true" root="http://repository.jboss.org/maven2/" pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/>
> <chain name="seam" dual="true">
> <resolver ref="public"/>
> <resolver ref="jboss"/>
> </chain>
> </resolvers>
> </ivysettings>
>
>
> Is there a way to fix this?
>
> --
> Jason Porter
> Real Programmers think better when playing Adventure or Rogue.
>
> PGP key id: 926CCFF5
> PGP fingerprint: 64C2 C078 13A9 5B23 7738 F7E5 1046 C39B 926C CFF5
> PGP key available at: keyserver.net, pgp.mit.edu
>
>
>
>
https://issues.apache.org/jira/browse/IVY-1146
--
Jason Porter
Real Programmers think better when playing Adventure or Rogue.
PGP key id: 926CCFF5
PGP fingerprint: 64C2 C078 13A9 5B23 7738 F7E5 1046 C39B 926C CFF5
PGP key available at: keyserver.net, pgp.mit.edu