我刚刚使用 maven -3.2.3 创建了 Web 应用程序,然后我在 pom.xml 中添加了一些依赖项,然后右键单击我的 pom.xml-->RunAs-->maven install。所有 jar 都已下载。然后在尝试时构建(就像我的 pom.xml-->RunAs-->maven build)我弹出一个窗口来设置目标。我只是将球门场输入为“包”-->运行。我面临以下问题
Downloaded: http://repo.maven.apache.org/maven2/org/springframework/spring/2.5.6/spring-2.5.6.jar (2881 KB at 3.3 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:26.448s
[INFO] Finished at: Wed Oct 29 08:33:31 IST 2014
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project SpringMVCMaven: Could not resolve dependencies for project com.rajendra.spring:SpringMVCMaven:war:1.0: Failure to find javax.transaction:jta:jar:1.0.1B in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until …Run Code Online (Sandbox Code Playgroud)