Be careful with the jboss repository. It contains artifacts that have
the same groupId, artifactId and version as artifacts in central, but
with different content. Mixing both is asking for trouble...

Tom

On Fri, Apr 11, 2008 at 3:58 PM, Glynbach <[EMAIL PROTECTED]> wrote:
>
>  Hi
>
>  I added the jboss repository to my POM to add a jta dependecy. But running
>  mvn test gives an error retrieving the jta jar. The error shows maven is
>  trying to get the jar from the maven repository (which exists but has no jar
>  in it) rather than the jboss repository. Can I stipulate which repository
>  should be used in the dependency?
>
>  pom entries are :
>
>  <project>
>
>     <repositories>
>         <repository>
>                 <id>jboss</id>
>                 <url>repository.jboss.com/maven2</url>
>         </repository>
>     </repositories>
>
>  ..
>
>                 <dependency>
>                         <groupId>javax.transaction</groupId>
>                         <artifactId>jta</artifactId>
>                         <version>1.0.1B</version>
>                 </dependency>
>
>  ..
>
>  In the console I can see the following output:
>
>  ----------
>  1 required artifact is missing.
>
>  for artifact:
>   com.fdar.apress.s2:app:war:1.0-SNAPSHOT
>
>  from the specified remote repositories:
>   jboss (repository.jboss.com/maven2),
>   central (http://repo1.maven.org/maven2)
>
>  and also:
>
>  url = http://repo1.maven.org/maven2
>  Downloading:
>  http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
>  [ERROR]
>
>  Thanks for any help
>
>
>  --
>  View this message in context: 
> http://www.nabble.com/Repository-search-order-tp16627819s177p16627819.html
>  Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to