我正在搭建国外的一款软件开发环境,按照他们的标准文档,我安装了Maven 2.0.9。
我使用TortoiseSVN从服务器上成功下载了源代码到自己的机器上,并取名为docstore。
在cmd中,我按照标准文档,cd到docstore,并输入命令mvn install。
Maven安装过程中,出现了以下错误信息:
通过阅读错误信息,我找到原因是在以下信息中:
无法完成下载:
原因是无法找到:
我推测:是不是docstore目录中的pom.xml文件哪里没有写对?导致maven无法下载org.codehaus.mojo:jboss-packaging-maven-plugin到repository中 ?
但是我又想,严格按照安装文档安装了Maven 2.0.9,使用SVN下载了源代码,整个过程都是严格按照标准文档的,那么会是哪里的问题?
请各位赐教!
我使用TortoiseSVN从服务器上成功下载了源代码到自己的机器上,并取名为docstore。
在cmd中,我按照标准文档,cd到docstore,并输入命令mvn install。
Maven安装过程中,出现了以下错误信息:
1
E:\dcm4chee
-
docstore
>
mvn install
2 [INFO] Scanning for projects
3 [INFO] Reactor build order:
4 [INFO] Generic Document Storage
5 [INFO] Document Storage SPI and basic DocumentStore implemetation
6 [INFO] snapshot org.codehaus.mojo:jboss - packaging - maven - plugin: 2.0 - SNAPSHOT: checking for updates from codehause.maven.snapshots
7 [INFO] snapshot org.codehaus.mojo:jboss - packaging - maven - plugin: 2.0 - SNAPSHOT: checking for updates from dcm4che
8 [INFO] snapshot org.codehaus.mojo:jboss - packaging - maven - plugin: 2.0 - SNAPSHOT: checking for updates from jboss
9
10 Downloading: http: // snapshots.repository.codehaus.org // org/codehaus/mojo/jboss-packaging-maven-plugin/2.0-SNAPSHOT/jboss-packaging-maven-plugin-2.0-SNAPSHOT.pom
11
12 Downloading: http: // www.dcm4che.org/maven2/org/codehaus/mojo/jboss-packaging-maven-plugin/2.0-SNAPSHOT/jboss-packaging-maven-plugin-2.0-SNAPSHOT.pom
13
14 Downloading: http: // repository.jboss.com/maven2/org/codehaus/mojo/jboss-packaging-maven-plugin/2.0-SNAPSHOT/jboss-packaging-maven-plugin-2.0-SNAPSHOT.pom
15
16 Downloading: http: // snapshots.repository.codehaus.org // org/codehaus/mojo/jboss-packaging-maven-plugin/2.0-SNAPSHOT/jboss-packaging-maven-plugin-2.0-SNAPSHOT.pom
17
18 [INFO] ------------------------------------------------------------------------
19 [ERROR] BUILD ERROR
20 [INFO] ------------------------------------------------------------------------
21 [INFO] Error building POM (may not be this project ' s POM).
22
23
24 Project ID: org.codehaus.mojo:jboss - packaging - maven - plugin
25
26 Reason: POM ' org.codehaus.mojo:jboss-packaging-maven-plugin ' not found in repository: Unable to download the artifact from any repository
27
28 org.codehaus.mojo:jboss - packaging - maven - plugin:pom: 2.0 - SNAPSHOT
29
30 from the specified remote repositories:
31 codehause.maven.snapshots (http: // snapshots.repository.codehaus.org/),
32 dcm4che (http: // www.dcm4che.org/maven2),
33 central (http: // repo1.maven.org/maven2),
34 jboss (http: // repository.jboss.com/maven2)
35 for project org.codehaus.mojo:jboss - packaging - maven - plugin
36
37
38 [INFO] ------------------------------------------------------------------------
39 [INFO] For more information, run Maven with the - e switch
40 [INFO] ------------------------------------------------------------------------
41 [INFO] Total time: 7 seconds
42 [INFO] Finished at: Wed Jan 12 09 : 22 : 27 CST 2011
43 [INFO] Final Memory: 1M / 15M
44 [INFO] ------------------------------------------------------------------------
45
2 [INFO] Scanning for projects
3 [INFO] Reactor build order:
4 [INFO] Generic Document Storage
5 [INFO] Document Storage SPI and basic DocumentStore implemetation
6 [INFO] snapshot org.codehaus.mojo:jboss - packaging - maven - plugin: 2.0 - SNAPSHOT: checking for updates from codehause.maven.snapshots
7 [INFO] snapshot org.codehaus.mojo:jboss - packaging - maven - plugin: 2.0 - SNAPSHOT: checking for updates from dcm4che
8 [INFO] snapshot org.codehaus.mojo:jboss - packaging - maven - plugin: 2.0 - SNAPSHOT: checking for updates from jboss
9
10 Downloading: http: // snapshots.repository.codehaus.org // org/codehaus/mojo/jboss-packaging-maven-plugin/2.0-SNAPSHOT/jboss-packaging-maven-plugin-2.0-SNAPSHOT.pom
11
12 Downloading: http: // www.dcm4che.org/maven2/org/codehaus/mojo/jboss-packaging-maven-plugin/2.0-SNAPSHOT/jboss-packaging-maven-plugin-2.0-SNAPSHOT.pom
13
14 Downloading: http: // repository.jboss.com/maven2/org/codehaus/mojo/jboss-packaging-maven-plugin/2.0-SNAPSHOT/jboss-packaging-maven-plugin-2.0-SNAPSHOT.pom
15
16 Downloading: http: // snapshots.repository.codehaus.org // org/codehaus/mojo/jboss-packaging-maven-plugin/2.0-SNAPSHOT/jboss-packaging-maven-plugin-2.0-SNAPSHOT.pom
17
18 [INFO] ------------------------------------------------------------------------
19 [ERROR] BUILD ERROR
20 [INFO] ------------------------------------------------------------------------
21 [INFO] Error building POM (may not be this project ' s POM).
22
23
24 Project ID: org.codehaus.mojo:jboss - packaging - maven - plugin
25
26 Reason: POM ' org.codehaus.mojo:jboss-packaging-maven-plugin ' not found in repository: Unable to download the artifact from any repository
27
28 org.codehaus.mojo:jboss - packaging - maven - plugin:pom: 2.0 - SNAPSHOT
29
30 from the specified remote repositories:
31 codehause.maven.snapshots (http: // snapshots.repository.codehaus.org/),
32 dcm4che (http: // www.dcm4che.org/maven2),
33 central (http: // repo1.maven.org/maven2),
34 jboss (http: // repository.jboss.com/maven2)
35 for project org.codehaus.mojo:jboss - packaging - maven - plugin
36
37
38 [INFO] ------------------------------------------------------------------------
39 [INFO] For more information, run Maven with the - e switch
40 [INFO] ------------------------------------------------------------------------
41 [INFO] Total time: 7 seconds
42 [INFO] Finished at: Wed Jan 12 09 : 22 : 27 CST 2011
43 [INFO] Final Memory: 1M / 15M
44 [INFO] ------------------------------------------------------------------------
45
通过阅读错误信息,我找到原因是在以下信息中:
无法完成下载:
Downloading: http:
//
snapshots.repository.codehaus.org
//
org/codehaus/mojo/jboss-packaging-maven-plugin/2.0-SNAPSHOT/jboss-packaging-maven-plugin-2.0-SNAPSHOT.pom
原因是无法找到:
1
Project ID: org.codehaus.mojo:jboss
-
packaging
-
maven
-
plugin
2
3 Reason: POM ' org.codehaus.mojo:jboss-packaging-maven-plugin ' not found in repository: Unable to download the artifact from any repository
4
5 org.codehaus.mojo:jboss - packaging - maven - plugin:pom: 2.0 - SNAPSHOT
2
3 Reason: POM ' org.codehaus.mojo:jboss-packaging-maven-plugin ' not found in repository: Unable to download the artifact from any repository
4
5 org.codehaus.mojo:jboss - packaging - maven - plugin:pom: 2.0 - SNAPSHOT
我推测:是不是docstore目录中的pom.xml文件哪里没有写对?导致maven无法下载org.codehaus.mojo:jboss-packaging-maven-plugin到repository中 ?
但是我又想,严格按照安装文档安装了Maven 2.0.9,使用SVN下载了源代码,整个过程都是严格按照标准文档的,那么会是哪里的问题?
请各位赐教!