关于maven编译的问题

程序猿_ 发布于 2014/12/30 16:44
阅读 1K+
收藏 0
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.csair:CBDCCSWebService:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 39, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ com.csair:cbd-parent:1.0-SNAPSHOT, D:\maven3\repository\com\csair\cbd-parent\1.0-SNAPSHOT\cbd-parent-1.0-SNAPSHOT.pom, line 174, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building web-service Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for xfire:xfire-jsr181-api🏺1.0-M1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ CBDCCSWebService ---
[INFO] Deleting D:\CBDFFP201412\CBDCCSWebService\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ CBDCCSWebService ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 5 resources
[INFO]
[INFO] --- yuicompressor-maven-plugin:0.9:compress (default) @ CBDCCSWebService ---
[INFO] nb warnings: 0, nb errors: 0
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ CBDCCSWebService ---
[INFO] Compiling 70 source files to D:\CBDFFP201412\CBDCCSWebService\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ CBDCCSWebService ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\CBDFFP201412\CBDCCSWebService\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ CBDCCSWebService ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ CBDCCSWebService ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ CBDCCSWebService ---
[INFO] Packaging webapp
[INFO] Assembling webapp [CBDCCSWebService] in [D:\CBDFFP201412\CBDCCSWebService\target\CBDCCSWebService-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [D:\CBDFFP201412\CBDCCSWebService\target/compressed-resources/] to [D:\CBDFFP201412\CBDCCSWebService\target\CBDCCSWebService-1.0-SNAPSHOT]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54.036s
[INFO] Finished at: Tue Dec 30 16:37:12 CST 2014
[INFO] Final Memory: 23M/1016M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project CBDCCSWebService: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: basedir D:\CBDFFP201412\CBDCCSWebService\target\compressed-resources does not exist -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

加载中
0
坤平
坤平
jar包版本不对吧
返回顶部
顶部