首页 文章

pom.xml中的struts-jquery标签

提问于
浏览
0

我想将jquery添加到我的应用程序Struts2但是当我在pom.xml中使用依赖时它会给我这个错误我需要帮助请

enter code here

[错误]无法在项目docgenview上执行目标:无法解析项目net.atos.ma.si.delivery:docgenview:war:1.0-SNAPSHOT的依赖项:无法收集[junit:junit:jar:4.5的依赖项(测试),org.apache.struts:struts2-jquery-plugin:jar:3.6.1(编译),org.apache.struts:struts2-core:jar:2.3.14(编译),org.apache.struts:struts2 -sitemesh-plugin:jar:2.3.14(compile),org.apache.struts:struts2-spring-plugin:jar:2.3.14(compile),org.springframework:spring-context:jar:3.1.3.RELEASE (编译),org.springframework:spring-tx:jar:3.1.3.RELEASE(compile),org.springframework:spring-orm:jar:3.1.3.RELEASE(compile),org.springframework:spring-web: jar:3.0.5.RELEASE(编译),javax.servlet:servlet-api:jar:2.4(提供),javax.servlet:jsp-api:jar:2.0(提供),commons-fileupload:commons-fileupload:jar :1.1.1(编译),commons-dbcp:commons-dbcp:jar:1.2.2(编译),uk.ltd.getahead:dwr:jar:1.1-beta-3(编译),org.springframework.security: spring 安全核心: jar :3.1.3.R ELEASE(编译),org.springframework.security:spring-security-web:jar:3.1.3.RELEASE(编译),org.springframework.security:spring-security-config:jar:3.1.3.RELEASE(编译) ,org.springframework.security:spring-security-taglibs:jar:3.1.1.RELEASE(compile),org.springframework:spring-webmvc:jar:3.1.3.RELEASE(compile),org.springframework:spring-test :jar:3.1.3.RELEASE(test),org.hibernate:hibernate-core:jar:4.1.9.Final(compile),org.hibernate:hibernate-entitymanager:jar:4.1.9.Final(compile), org.hsqldb:hsqldb:jar:2.2.9(compile),com.lowagie:itext:jar:2.0.7(compile),com.lowagie:itext-rtf:jar:2.1.4(compile),org.apache .struts:struts-tiles:jar:1.3.10(compile),displaytag:displaytag:jar:1.2(compile),cglib:cglib:jar:2.2(compile),org.directwebremoting:dwr:jar:2.0.2(编译),jstl:jstl:jar:1.2(编译),mysql:mysql-connector-java:jar:5.1.6(编译)]:无法读取org.apache.struts的工件描述符:struts2-jquery-plugin: jar:3.6.1:无法传输工件org.apache .struts:struts2-jquery-plugin:pom:3.6.1 from / to internal(http://archiva.karaz.org/repository/internal):连接到142.4.207.240:6060拒绝:连接被拒绝:连接 - > [帮助1]

2 回答

  • 0

    我猜测

    (1)您的网络中断,检查您是否可以访问maven central repo

    (2)你的本地仓库坏了,转到[用户主页] .m2 \ repository,然后删除里面的所有文件夹,然后重新构建你的项目

  • 0

    请跑

    mvn dependency:tree
    

    看看会发生什么 .

    或者在打包时添加 -X 参数

相关问题