Maven构建失败,因为缺少依赖-初学者


[ERROR] Failed to execute goal on project CarProject: Could not resolve dependen
     cies for project CarProject:CarProject:war:1.0-SNAPSHOT: The following artifacts
    could not be resolved: com.googlecode.sslplugin:struts2-ssl-plugin:jar:1.2.1, o
     rg.springframework:org.springframework.web.servlet:jar:3.0.5.RELEASE, org.spring
    framework:org.springframework.context:jar:3.0.5.RELEASE, javax.transaction:com.s
     pringsource.javax.transaction:jar:1.1.0, com.sun:tools:jar:1.6.0: Failure to fin
       d com.googlecode.sslplugin:struts2-ssl-plugin:jar:1.2.1 in http://repo1.maven.or
      g/maven2 was cached in the local repository, resolution will not be reattempted
     until the update interval of central has elapsed or updates are forced -> [Help
      1]

似乎有一个以上的依赖缺失,我该如何添加它们?是否有一个地方,我可以得到依赖关系或有一个特定的标准方式来写它?

org.springframework.web。Servlet = spring-web或spring-webmvc或两者兼而有之,这取决于你需要从它

org.springframework。Context = spring-context

com.springsource.javax。事务来自SpringSource企业包存储库。

struts2-ssl-plugin不在中央。您必须在另一个存储库中找到它,在本地安装它,在您自己的存储库(如Nexus)上安装它,或者使其成为系统范围的依赖项。

tools是您的JRE。Maven基本上不应该尝试下载它。

从以下位置下载最新的jar文件http://code.google.com/p/struts2-ssl-plugin/downloads/list

执行如下命令示例 struts2-ssl-plugin-1.2.1.jar文件

mvn install:install-file -Dfile=E:JavaMeteorsstruts2-ssl-plugin-1.2.1.jar -DgroupId=com.googlecode。sslplugin -Dversion=1.2.1 - dpackage =jar

最新更新