繁体   English   中英

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

[英]artifacts are not in local repository error

我正在尝试使用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(编译),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(编译),net.sf.ehcache:ehcache-core:jar:2.6.9(编译),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(编译),org.springframework: spring-webmvc:jar:4.1.3.RELEASE(compile),org.tuckey:ur lrewritefilter: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(编译),org.webjars:bootstrap-datepicker:jar:1.3.1(编译),org.webjars:bootswatch-spacelab:jar:3.3.1 + 2(编译),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(compile),org.springframework.security:spring-security-config:jar:3.2.5.RELEASE(compile),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(compile ),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(编译),或者 g.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]

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM