Maven项目构建问题
我有一个 Maven 2 Web 项目,我已从 svn 中签出该项目。
我的设置文件配置了镜像。
当我进行全新安装时,maven 尝试从镜像下载 jar,由于它无法找到 jar,因此表示构建失败。
但是当我检查本地存储库时,我看到了所有必需的罐子。
那么是否可以将我的本地存储库更改为镜像位置?
这是正确的做法吗?
编辑问题以发布我的错误
首先我收到一组警告
[WARNING] Missing POM for org.apache.ws.security:wss4j:jar:1.5.2
[WARNING] Missing POM for org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
[WARNING] Missing POM for cglib:cglib:jar:2.2
[WARNING] Missing POM for org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
[WARNING] Missing POM for opensymphony:oscache:jar:2.3
[WARNING] Missing POM for commons-digester:commons-digester:jar:1.8
[WARNING] Missing POM for org.richfaces.framework:richfaces-api:jar:3.3.3.Final
[WARNING] Missing POM for com.sun.facelets:jsf-facelets:jar:1.1.14.P1
[WARNING] Missing POM for javax.faces:jsf-api:jar:1.2_12
[WARNING] Missing POM for javax.faces:jsf-impl:jar:1.2_12
[WARNING] Missing POM for javax.servlet:servlet-api:jar:2.4
[WARNING] Missing POM for javax.servlet.jsp:jsp-api:jar:2.1
[WARNING] Missing POM for org.jboss.el:jboss-el:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam-debug:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam-ui:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam-ioc:jar:2.0.1.GA
[WARNING] Missing POM for org.springframework:spring:jar:2.5
[WARNING] Missing POM for commons-math:commons-math:jar:1.2
[WARNING] Missing POM for org.springframework:spring-mock:jar:2.0.6
[WARNING] Missing POM for javax.persistence:persistence-api:jar:1.0
[WARNING] Missing POM for hibernate:hibernate3:jar:3.2.4.SP1
[WARNING] Missing POM for hibernate-annotations:hibernate-annotations:jar:3.3.0.GA
[WARNING] Missing POM for hibernate-entitymanager:hibernate-entitymanager:jar:3.3.1.GA
[WARNING] Missing POM for org.hibernate:hibernate-validator:jar:3.0.0.ga
[WARNING] Missing POM for org.apache.lucene:lucene-core:jar:2.4.0
[WARNING] Missing POM for commons-lang:commons-lang:jar:2.3
[WARNING] Missing POM for commons-validator:commons-validator:jar:1.1.3
[WARNING] Missing POM for org.slf4j:slf4j-api:jar:1.5.6
[WARNING] Missing POM for org.slf4j:slf4j-log4j12:jar:1.5.6
[WARNING] Missing POM for opensymphony:quartz:jar:1.6.3
[WARNING] Missing POM for opensymphony:quartz-oracle:jar:1.6.3
[WARNING] Missing POM for jfree:jfreechart:jar:1.0.12
[WARNING] Missing POM for com.itextpdf:itextpdf:jar:5.0.5
[WARNING] Missing POM for org.springmodules:spring-modules-cache:jar:0.9
[WARNING] Missing POM for com.thoughtworks.xstream:xstream:jar:1.3.1
[WARNING] Missing POM for ehcache:ehcache:jar:1.2.3
然后我收到以下一组错误
1) nekohtml:nekohtml:jar:0.9.5
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=nekohtml -DartifactId=nekohtml -Dversion=0.9.5 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=nekohtml -DartifactId=nekohtml -Dversion=0.9.5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) nekohtml:nekohtml:jar:0.9.5
2) ehcache:ehcache:jar:1.2.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=ehcache -DartifactId=ehcache -Dversion=1.2.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=ehcache -DartifactId=ehcache -Dversion=1.2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) ehcache:ehcache:jar:1.2.3
3) org.jboss.seam:jboss-seam-ioc:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-ioc -Dversion=2.0.1.GA -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.jboss.seam -DartifactId=jboss-seam-ioc -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam-ioc:jar:2.0.1.GA
4) commons-validator:commons-validator:jar:1.1.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-validator -DartifactId=commons-validator -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-validator -DartifactId=commons-validator -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-validator:commons-validator:jar:1.1.3
5) org.apache.lucene:lucene-core:jar:2.4.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=2.4.0 -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.lucene -DartifactId=lucene-core -Dversion=2.4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.apache.lucene:lucene-core:jar:2.4.0
6) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -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.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
7) org.richfaces.framework:richfaces-api:jar:3.3.3.Final
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -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.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.richfaces.framework:richfaces-api:jar:3.3.3.Final
8) commons-digester:commons-digester:jar:1.8
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.8 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-digester:commons-digester:jar:1.8
9) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -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.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
10) commons-lang:commons-lang:jar:2.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-lang -DartifactId=commons-lang -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-lang -DartifactId=commons-lang -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-lang:commons-lang:jar:2.3
11) com.thoughtworks.xstream:xstream:jar:1.3.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.thoughtworks.xstream -DartifactId=xstream -Dversion=1.3.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.thoughtworks.xstream -DartifactId=xstream -Dversion=1.3.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) com.thoughtworks.xstream:xstream:jar:1.3.1
12) org.springframework:spring:jar:2.5
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework -DartifactId=spring -Dversion=2.5 -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.springframework -DartifactId=spring -Dversion=2.5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.springframework:spring:jar:2.5
13) org.slf4j:slf4j-api:jar:1.5.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.slf4j -DartifactId=slf4j-api -Dversion=1.5.6 -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.slf4j -DartifactId=slf4j-api -Dversion=1.5.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.slf4j:slf4j-api:jar:1.5.6
14) org.slf4j:slf4j-log4j12:jar:1.5.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.slf4j -DartifactId=slf4j-log4j12 -Dversion=1.5.6 -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.slf4j -DartifactId=slf4j-log4j12 -Dversion=1.5.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.slf4j:slf4j-log4j12:jar:1.5.6
15) cglib:cglib:jar:2.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=cglib -DartifactId=cglib -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=cglib -DartifactId=cglib -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) cglib:cglib:jar:2.2
16) opensymphony:oscache:jar:2.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=opensymphony -DartifactId=oscache -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=opensymphony -DartifactId=oscache -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) opensymphony:oscache:jar:2.3
17) com.sun.facelets:jsf-facelets:jar:1.1.14.P1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.facelets -DartifactId=jsf-facelets -Dversion=1.1.14.P1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun.facelets -DartifactId=jsf-facelets -Dversion=1.1.14.P1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) com.sun.facelets:jsf-facelets:jar:1.1.14.P1
18) javax.faces:jsf-api:jar:1.2_12
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-api -Dversion=1.2_12 -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.faces -DartifactId=jsf-api -Dversion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.faces:jsf-api:jar:1.2_12
19) javax.faces:jsf-impl:jar:1.2_12
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-impl -Dversion=1.2_12 -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.faces -DartifactId=jsf-impl -Dversion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.faces:jsf-impl:jar:1.2_12
20) javax.servlet:servlet-api:jar:2.4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.servlet -DartifactId=servlet-api -Dversion=2.4 -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.servlet -DartifactId=servlet-api -Dversion=2.4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.servlet:servlet-api:jar:2.4
21) javax.servlet.jsp:jsp-api:jar:2.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.servlet.jsp -DartifactId=jsp-api -Dversion=2.1 -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.servlet.jsp -DartifactId=jsp-api -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.servlet.jsp:jsp-api:jar:2.1
22) org.jboss.el:jboss-el:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.el -DartifactId=jboss-el -Dversion=2.0.1.GA -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.jboss.el -DartifactId=jboss-el -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.el:jboss-el:jar:2.0.1.GA
23) org.jboss.seam:jboss-seam:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam -Dversion=2.0.1.GA -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.jboss.seam -DartifactId=jboss-seam -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam:jar:2.0.1.GA
24) org.jboss.seam:jboss-seam-debug:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-debug -Dversion=2.0.1.GA -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.jboss.seam -DartifactId=jboss-seam-debug -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam-debug:jar:2.0.1.GA
25) org.jboss.seam:jboss-seam-ui:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-ui -Dversion=2.0.1.GA -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.jboss.seam -DartifactId=jboss-seam-ui -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam-ui:jar:2.0.1.GA
26) commons-math:commons-math:jar:1.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-math -DartifactId=commons-math -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-math -DartifactId=commons-math -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-math:commons-math:jar:1.2
27) org.springframework:spring-mock:jar:2.0.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-mock -Dversion=2.0.6 -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.springframework -DartifactId=spring-mock -Dversion=2.0.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.springframework:spring-mock:jar:2.0.6
28) javax.persistence:persistence-api:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.persistence -DartifactId=persistence-api -Dversion=1.0 -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.persistence -DartifactId=persistence-api -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.persistence:persistence-api:jar:1.0
29) hibernate:hibernate3:jar:3.2.4.SP1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate -DartifactId=hibernate3 -Dversion=3.2.4.SP1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate -DartifactId=hibernate3 -Dversion=3.2.4.SP1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) hibernate:hibernate3:jar:3.2.4.SP1
30) hibernate-annotations:hibernate-annotations:jar:3.3.0.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate-annotations -DartifactId=hibernate-annotations -Dversion=3.3.0.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate-annotations -DartifactId=hibernate-annotations -Dversion=3.3.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) hibernate-annotations:hibernate-annotations:jar:3.3.0.GA
31) hibernate-entitymanager:hibernate-entitymanager:jar:3.3.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate-entitymanager -DartifactId=hibernate-entitymanager -Dversion=3.3.1.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate-entitymanager -DartifactId=hibernate-entitymanager -Dversion=3.3.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) hibernate-entitymanager:hibernate-entitymanager:jar:3.3.1.GA
32) org.hibernate:hibernate-validator:jar:3.0.0.ga
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-validator -Dversion=3.0.0.ga -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.hibernate -DartifactId=hibernate-validator -Dversion=3.0.0.ga -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.hibernate:hibernate-validator:jar:3.0.0.ga
33) opensymphony:quartz:jar:1.6.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=opensymphony -DartifactId=quartz -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=opensymphony -DartifactId=quartz -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) opensymphony:quartz:jar:1.6.3
34) org.springmodules:spring-modules-cache:jar:0.9
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springmodules -DartifactId=spring-modules-cache -Dversion=0.9 -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.springmodules -DartifactId=spring-modules-cache -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.springmodules:spring-modules-cache:jar:0.9
35) jfree:jfreechart:jar:1.0.12
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jfree -DartifactId=jfreechart -Dversion=1.0.12 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jfree -DartifactId=jfreechart -Dversion=1.0.12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) jfree:jfreechart:jar:1.0.12
36) opensymphony:quartz-oracle:jar:1.6.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=opensymphony -DartifactId=quartz-oracle -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=opensymphony -DartifactId=quartz-oracle -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) opensymphony:quartz-oracle:jar:1.6.3
所有这些具有相同版本的依赖项都已存在于我的本地存储库中。 我也尝试使用给出的提示但没有效果
I have a maven 2 web project which I have checked out of svn.
My settings file has a mirror configured.
When I do a clean install maven is trying to download jars from the mirror and since it is unable to find the jars it says the build fails.
But when i check my local repo I see all the required jars.
So is it possible to change my local repo as the mirror location ?
Is this a right approach ?
Editing the question to post my error
First I get a set of warnings
[WARNING] Missing POM for org.apache.ws.security:wss4j:jar:1.5.2
[WARNING] Missing POM for org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
[WARNING] Missing POM for cglib:cglib:jar:2.2
[WARNING] Missing POM for org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
[WARNING] Missing POM for opensymphony:oscache:jar:2.3
[WARNING] Missing POM for commons-digester:commons-digester:jar:1.8
[WARNING] Missing POM for org.richfaces.framework:richfaces-api:jar:3.3.3.Final
[WARNING] Missing POM for com.sun.facelets:jsf-facelets:jar:1.1.14.P1
[WARNING] Missing POM for javax.faces:jsf-api:jar:1.2_12
[WARNING] Missing POM for javax.faces:jsf-impl:jar:1.2_12
[WARNING] Missing POM for javax.servlet:servlet-api:jar:2.4
[WARNING] Missing POM for javax.servlet.jsp:jsp-api:jar:2.1
[WARNING] Missing POM for org.jboss.el:jboss-el:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam-debug:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam-ui:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam-ioc:jar:2.0.1.GA
[WARNING] Missing POM for org.springframework:spring:jar:2.5
[WARNING] Missing POM for commons-math:commons-math:jar:1.2
[WARNING] Missing POM for org.springframework:spring-mock:jar:2.0.6
[WARNING] Missing POM for javax.persistence:persistence-api:jar:1.0
[WARNING] Missing POM for hibernate:hibernate3:jar:3.2.4.SP1
[WARNING] Missing POM for hibernate-annotations:hibernate-annotations:jar:3.3.0.GA
[WARNING] Missing POM for hibernate-entitymanager:hibernate-entitymanager:jar:3.3.1.GA
[WARNING] Missing POM for org.hibernate:hibernate-validator:jar:3.0.0.ga
[WARNING] Missing POM for org.apache.lucene:lucene-core:jar:2.4.0
[WARNING] Missing POM for commons-lang:commons-lang:jar:2.3
[WARNING] Missing POM for commons-validator:commons-validator:jar:1.1.3
[WARNING] Missing POM for org.slf4j:slf4j-api:jar:1.5.6
[WARNING] Missing POM for org.slf4j:slf4j-log4j12:jar:1.5.6
[WARNING] Missing POM for opensymphony:quartz:jar:1.6.3
[WARNING] Missing POM for opensymphony:quartz-oracle:jar:1.6.3
[WARNING] Missing POM for jfree:jfreechart:jar:1.0.12
[WARNING] Missing POM for com.itextpdf:itextpdf:jar:5.0.5
[WARNING] Missing POM for org.springmodules:spring-modules-cache:jar:0.9
[WARNING] Missing POM for com.thoughtworks.xstream:xstream:jar:1.3.1
[WARNING] Missing POM for ehcache:ehcache:jar:1.2.3
Then I get the following set of errors
1) nekohtml:nekohtml:jar:0.9.5
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=nekohtml -DartifactId=nekohtml -Dversion=0.9.5 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=nekohtml -DartifactId=nekohtml -Dversion=0.9.5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) nekohtml:nekohtml:jar:0.9.5
2) ehcache:ehcache:jar:1.2.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=ehcache -DartifactId=ehcache -Dversion=1.2.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=ehcache -DartifactId=ehcache -Dversion=1.2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) ehcache:ehcache:jar:1.2.3
3) org.jboss.seam:jboss-seam-ioc:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-ioc -Dversion=2.0.1.GA -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.jboss.seam -DartifactId=jboss-seam-ioc -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam-ioc:jar:2.0.1.GA
4) commons-validator:commons-validator:jar:1.1.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-validator -DartifactId=commons-validator -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-validator -DartifactId=commons-validator -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-validator:commons-validator:jar:1.1.3
5) org.apache.lucene:lucene-core:jar:2.4.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=2.4.0 -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.lucene -DartifactId=lucene-core -Dversion=2.4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.apache.lucene:lucene-core:jar:2.4.0
6) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -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.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
7) org.richfaces.framework:richfaces-api:jar:3.3.3.Final
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -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.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.richfaces.framework:richfaces-api:jar:3.3.3.Final
8) commons-digester:commons-digester:jar:1.8
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.8 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-digester:commons-digester:jar:1.8
9) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -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.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
10) commons-lang:commons-lang:jar:2.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-lang -DartifactId=commons-lang -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-lang -DartifactId=commons-lang -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-lang:commons-lang:jar:2.3
11) com.thoughtworks.xstream:xstream:jar:1.3.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.thoughtworks.xstream -DartifactId=xstream -Dversion=1.3.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.thoughtworks.xstream -DartifactId=xstream -Dversion=1.3.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) com.thoughtworks.xstream:xstream:jar:1.3.1
12) org.springframework:spring:jar:2.5
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework -DartifactId=spring -Dversion=2.5 -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.springframework -DartifactId=spring -Dversion=2.5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.springframework:spring:jar:2.5
13) org.slf4j:slf4j-api:jar:1.5.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.slf4j -DartifactId=slf4j-api -Dversion=1.5.6 -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.slf4j -DartifactId=slf4j-api -Dversion=1.5.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.slf4j:slf4j-api:jar:1.5.6
14) org.slf4j:slf4j-log4j12:jar:1.5.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.slf4j -DartifactId=slf4j-log4j12 -Dversion=1.5.6 -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.slf4j -DartifactId=slf4j-log4j12 -Dversion=1.5.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.slf4j:slf4j-log4j12:jar:1.5.6
15) cglib:cglib:jar:2.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=cglib -DartifactId=cglib -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=cglib -DartifactId=cglib -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) cglib:cglib:jar:2.2
16) opensymphony:oscache:jar:2.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=opensymphony -DartifactId=oscache -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=opensymphony -DartifactId=oscache -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) opensymphony:oscache:jar:2.3
17) com.sun.facelets:jsf-facelets:jar:1.1.14.P1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.facelets -DartifactId=jsf-facelets -Dversion=1.1.14.P1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun.facelets -DartifactId=jsf-facelets -Dversion=1.1.14.P1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) com.sun.facelets:jsf-facelets:jar:1.1.14.P1
18) javax.faces:jsf-api:jar:1.2_12
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-api -Dversion=1.2_12 -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.faces -DartifactId=jsf-api -Dversion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.faces:jsf-api:jar:1.2_12
19) javax.faces:jsf-impl:jar:1.2_12
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-impl -Dversion=1.2_12 -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.faces -DartifactId=jsf-impl -Dversion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.faces:jsf-impl:jar:1.2_12
20) javax.servlet:servlet-api:jar:2.4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.servlet -DartifactId=servlet-api -Dversion=2.4 -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.servlet -DartifactId=servlet-api -Dversion=2.4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.servlet:servlet-api:jar:2.4
21) javax.servlet.jsp:jsp-api:jar:2.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.servlet.jsp -DartifactId=jsp-api -Dversion=2.1 -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.servlet.jsp -DartifactId=jsp-api -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.servlet.jsp:jsp-api:jar:2.1
22) org.jboss.el:jboss-el:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.el -DartifactId=jboss-el -Dversion=2.0.1.GA -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.jboss.el -DartifactId=jboss-el -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.el:jboss-el:jar:2.0.1.GA
23) org.jboss.seam:jboss-seam:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam -Dversion=2.0.1.GA -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.jboss.seam -DartifactId=jboss-seam -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam:jar:2.0.1.GA
24) org.jboss.seam:jboss-seam-debug:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-debug -Dversion=2.0.1.GA -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.jboss.seam -DartifactId=jboss-seam-debug -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam-debug:jar:2.0.1.GA
25) org.jboss.seam:jboss-seam-ui:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-ui -Dversion=2.0.1.GA -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.jboss.seam -DartifactId=jboss-seam-ui -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam-ui:jar:2.0.1.GA
26) commons-math:commons-math:jar:1.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-math -DartifactId=commons-math -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-math -DartifactId=commons-math -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-math:commons-math:jar:1.2
27) org.springframework:spring-mock:jar:2.0.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-mock -Dversion=2.0.6 -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.springframework -DartifactId=spring-mock -Dversion=2.0.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.springframework:spring-mock:jar:2.0.6
28) javax.persistence:persistence-api:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.persistence -DartifactId=persistence-api -Dversion=1.0 -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.persistence -DartifactId=persistence-api -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.persistence:persistence-api:jar:1.0
29) hibernate:hibernate3:jar:3.2.4.SP1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate -DartifactId=hibernate3 -Dversion=3.2.4.SP1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate -DartifactId=hibernate3 -Dversion=3.2.4.SP1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) hibernate:hibernate3:jar:3.2.4.SP1
30) hibernate-annotations:hibernate-annotations:jar:3.3.0.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate-annotations -DartifactId=hibernate-annotations -Dversion=3.3.0.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate-annotations -DartifactId=hibernate-annotations -Dversion=3.3.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) hibernate-annotations:hibernate-annotations:jar:3.3.0.GA
31) hibernate-entitymanager:hibernate-entitymanager:jar:3.3.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate-entitymanager -DartifactId=hibernate-entitymanager -Dversion=3.3.1.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate-entitymanager -DartifactId=hibernate-entitymanager -Dversion=3.3.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) hibernate-entitymanager:hibernate-entitymanager:jar:3.3.1.GA
32) org.hibernate:hibernate-validator:jar:3.0.0.ga
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-validator -Dversion=3.0.0.ga -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.hibernate -DartifactId=hibernate-validator -Dversion=3.0.0.ga -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.hibernate:hibernate-validator:jar:3.0.0.ga
33) opensymphony:quartz:jar:1.6.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=opensymphony -DartifactId=quartz -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=opensymphony -DartifactId=quartz -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) opensymphony:quartz:jar:1.6.3
34) org.springmodules:spring-modules-cache:jar:0.9
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springmodules -DartifactId=spring-modules-cache -Dversion=0.9 -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.springmodules -DartifactId=spring-modules-cache -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.springmodules:spring-modules-cache:jar:0.9
35) jfree:jfreechart:jar:1.0.12
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jfree -DartifactId=jfreechart -Dversion=1.0.12 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jfree -DartifactId=jfreechart -Dversion=1.0.12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) jfree:jfreechart:jar:1.0.12
36) opensymphony:quartz-oracle:jar:1.6.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=opensymphony -DartifactId=quartz-oracle -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=opensymphony -DartifactId=quartz-oracle -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) opensymphony:quartz-oracle:jar:1.6.3
All these dependencies with the same version are already there in my local repository.
I also tried using the tips given but of no avail
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Maven 在查询镜像/远程存储库之前会首先查看本地存储库。看起来您的本地存储库有 jar,但没有 pom 文件。这些可以手动复制/放置吗?事实上,它对maven 没有用处。
有两种方法可以解决这个问题。
允许 maven 通过连接到互联网来下载依赖项(如果镜像没有包含 jars)。这是默认情况下发生的情况。如果您位于代理后面,则可以配置
设置,以便 Maven 通过代理连接到中央存储库。使用本地存储库中的
maven install:install-file
命令手动安装每个依赖的 jar。这将自动为 jar 创建 pom,从而使其在后续运行中可供 maven 使用。Maven does look at the local repository first, before it queries the mirror/remote repository. It looks like your local repository has the jars, but not the pom files. Could these have copied/placed manually? As it is, it is not useful to maven.
There are two ways to solve the issue.
Allow maven to download the dependencies by connecting to the internet (if the mirror does not hold the jars). This is what happens by default. If you are behind a proxy, you can configure a
<proxy>
setting so that maven connect to central repo through the proxy.Manually install each dependant jars using the
maven install:install-file
command in the local repository. This will automatically create the poms for the jars and thus make it available to maven in subsequent runs.您可以在 Maven
-o
中使用离线标志,以便仅使用您的本地存储库。如果构建仍然抱怨缺少依赖项,则问题出在其他地方(也许您的本地存储库包含另一个版本,或类似的东西)。You can use the offline flag in Maven
-o
so that only your local repo will be used. If build then still complains about a missing dependency, the problem is somewhere else (maybe your local repo contains another version, or something like this).