maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Eybert <mittiprove...@yahoo.se>
Subject Adding a repository to the settings.xml
Date Sat, 20 Feb 2010 07:45:47 GMT

Dear all,

I have a simple spring project and I'm trying to build it with maven. But it
fails because a dependency is not resolved.

Here is the message I get :

Missing:
----------
1) org.apache.velocity.tools:velocity-tools:jar:2.0-beta1

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.velocity.tools
-DartifactId=velocity-tools -Dversion=2.0-beta1 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there: 
      mvn deploy:deploy-file -DgroupId=org.apache.velocity.tools
-DartifactId=velocity-tools -Dversion=2.0-beta1 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) org.stephane:spring-demo-server:jar:1.0-SNAPSHOT
  	2) org.apache.velocity.tools:velocity-tools:jar:2.0-beta1

2) javax.transaction:jta:jar:1.0.1B

  Try downloading the file manually from: 
      http://java.sun.com/products/jta

  Then, install it using the command: 
      mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there: 
      mvn deploy:deploy-file -DgroupId=javax.transaction -DartifactId=jta
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

  Path to dependency: 
  	1) org.stephane:spring-demo-server:jar:1.0-SNAPSHOT
  	2) org.hibernate:hibernate:jar:3.2.0.ga
  	3) javax.transaction:jta:jar:1.0.1B

3) org.apache.velocity.tools:velocity-tools-view:jar:2.0-beta1

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.velocity.tools
-DartifactId=velocity-tools-view -Dversion=2.0-beta1 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there: 
      mvn deploy:deploy-file -DgroupId=org.apache.velocity.tools
-DartifactId=velocity-tools-view -Dversion=2.0-beta1 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) org.stephane:spring-demo-server:jar:1.0-SNAPSHOT
  	2) org.apache.velocity.tools:velocity-tools-view:jar:2.0-beta1

----------
3 required artifacts are missing.

I suppose I need to add a repository in my settings.xml file.

At first my settings.xml file looked like : 
http://old.nabble.com/file/p27664272/settings.xml settings.xml 

So I tried this but it did not help : 
http://old.nabble.com/file/p27664272/new_settings.xml new_settings.xml 

Here is my pom.xmk file :  http://old.nabble.com/file/p27664272/pom.xml
pom.xml 

Any clue ?

Thanks.
-- 
View this message in context: http://old.nabble.com/Adding-a-repository-to-the-settings.xml-tp27664272p27664272.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Mime
View raw message