工件不在本地存储库错误中

时间:2016-07-07 05:27:54

标签: java maven appfuse

我正在尝试使用netbeans创建一个appfuse项目。我已经添加到pom文件中:

mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject

当我尝试构建项目时出现以下错误:

  

无法解决项目com.mycompany的依赖项:myproject:war:1.0-SNAPSHOT:无法收集[org.appfuse:appfuse-struts:pom:3.5.0(compile),org.appfuse:appfuse-的依赖项service:jar:3.5.0(编译),org.appfuse:appfuse-hibernate:jar:3.5.0(编译),org.appfuse:appfuse-data-common:jar:3.5.0(编译),commons-dbcp :commons-dbcp:jar:1.4(compile),org.subethamail:subethasmtp-wiser:jar:1.2(test),org.directwebremoting:dwr:jar:2.0.10(compile),net.sf.ehcache:ehcache- web:jar:2.0.4(compile),net.sf.ehcache:ehcache-core:jar:2.6.9(compile),javax.servlet.jsp:jsp-api:jar:2.1(提供),javax.servlet :javax.servlet-api:jar:3.1.0(提供),javax.servlet:jstl:jar:1.2(编译),struts-menu:struts-menu:jar:2.4.3(运行时),org.apache。 velocity:velocity-tools:jar:2.0(编译),opensymphony:sitemesh:jar:2.4.2(运行时),org.springframework.security:spring-security-taglibs:jar:3.2.5.RELEASE(compile),org .springframework:spring-webmvc:jar:4.1.3.RELEASE(compile),org.tuckey :urlrewritefilter:jar:4.0.3(compile),ro.isdc.wro4j:wro4j-core:jar:1.7.5(compile),org.webjars:jquery-cookie:jar:1.3.1(compile),org。 webjars:bootstrap:jar:3.3.1(compile),org.webjars:bootstrap-datepicker:jar:1.3.1(compile),org.webjars:bootswatch-spacelab:jar:3.3.1 + 2(compile),org .apache.logging.log4j:log4j-1.2-api:jar:2.1(运行时),org.apache.logging.log4j:log4j-web:jar:2.1(运行时),commons-lang:commons-lang:jar:2.6 (编译),org.springframework.security:spring-security-core:jar:3.2.5.RELEASE(编译),org.springframework.security:spring-security-config:jar:3.2.5.RELEASE(编译), org.springframework.security:spring-security-ldap:jar:3.2.5.RELEASE(compile),org.aspectj:aspectjweaver:jar:1.8.4(compile),org.aspectj:aspectjrt:jar:1.8.4(编译),org.hamcrest:hamcrest-all:jar:1.3(测试),junit:junit:jar:4.12(编译?),org.slf4j:slf4j-api:jar:1.7.7(编译),org.apache .logging.log4j:log4j-jcl:jar:2.1(编译),org.apache.logging.log4j:log4j-slf4j-impl:jar:2.1(编译), org.apache.logging.log4j:log4j-core:jar:2.1(编译),org.jboss.logging:jboss-logging:jar:3.2.0.Beta1(编译),mysql:mysql-connector-java:jar: 5.1.27(编译),org.springframework:spring-test:jar:4.1.3.RELEASE(编译?)]:无法读取org.apache.commons的工件描述符:commons-lang3:jar:3.3.2:无法传输工件org.apache.commons:commons-lang3:pom:3.3.2 from / to central(http://repo.maven.apache.org/maven2):无法传输文件:http://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.pom。返回码为:504,ReasonPhrase:Gateway Timeout。 - > [帮助1]

1 个答案:

答案 0 :(得分:0)

看起来它正在窒息,试图下载commons-lang的pom文件(在底部)。您是否能够在浏览器中从本地计算机上点击该POM文件(http://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.pom)的URL?我遇到过一些内部网络问题有时会导致某些库出现问题的情况。