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="[email protected]" force="true" 
conf="compile->compile(*),master(*);runtime->runtime(*)"/>
  <dependency org="org.jboss.weld" name="weld-api" rev="[email protected]" force="true" 
conf="compile->compile(*),master(*);runtime->runtime(*)"/>
  <dependency org="org.jboss.weld" name="weld-spi" rev="[email protected]" 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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to