救急。。。maven打包。。

喝阔乐 2016-05-24 11:10:52

D:\web-all\accs>mvn clean package –Ptest
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.neris.accs:accs-web:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.appfuse.plugins:maven-warpath-plugin is missing. @ line 435, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.neris.accs:accs-audit-web:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.appfuse.plugins:maven-warpath-plugin is missing. @ line 280, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.neris.accs:accs-analysis-web:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.appfuse.plugins:maven-warpath-plugin is missing. @ line 278, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.neris.accs:accs-statistics-web:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.appfuse.plugins:maven-warpath-plugin is missing. @ line 270, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.neris.accs:accs-filecabinet-web:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.appfuse.plugins:maven-warpath-plugin is missing. @ line 266, column 21
[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] Reactor Build Order:
[INFO]
[INFO] accs
[INFO] accs-common
[INFO] accs-common-infrastructure
[INFO] accs-audit
[INFO] accs-audit-infrastructure
[INFO] accs-util
[INFO] accs-audit-service
[INFO] accs-analysis
[INFO] accs-analysis-infrastructure
[INFO] accs-analysis-service
[INFO] accs-statistics
[INFO] accs-statistics-service
[INFO] accs-common-service
[INFO] accs-analysis-web Maven Webapp
[INFO] accs-audit-web Maven Webapp
[INFO] accs-filecabinet
[INFO] accs-filecabinet-service
[INFO] accs-filecabinet-web Maven Webapp
[INFO] accs-filecabinet-web Maven Webapp
[INFO] accs-statistics-web Maven Webapp
[INFO] accs-web Maven Webapp
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building accs 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] accs .............................................. FAILURE [0.010s]
[INFO] accs-common ....................................... SKIPPED
[INFO] accs-common-infrastructure ........................ SKIPPED
[INFO] accs-audit ........................................ SKIPPED
[INFO] accs-audit-infrastructure ......................... SKIPPED
[INFO] accs-util ......................................... SKIPPED
[INFO] accs-audit-service ................................ SKIPPED
[INFO] accs-analysis ..................................... SKIPPED
[INFO] accs-analysis-infrastructure ...................... SKIPPED
[INFO] accs-analysis-service ............................. SKIPPED
[INFO] accs-statistics ................................... SKIPPED
[INFO] accs-statistics-service ........................... SKIPPED
[INFO] accs-common-service ............................... SKIPPED
[INFO] accs-analysis-web Maven Webapp .................... SKIPPED
[INFO] accs-audit-web Maven Webapp ....................... SKIPPED
[INFO] accs-filecabinet .................................. SKIPPED
[INFO] accs-filecabinet-service .......................... SKIPPED
[INFO] accs-filecabinet-web Maven Webapp ................. SKIPPED
[INFO] accs-statistics-web Maven Webapp .................. SKIPPED
[INFO] accs-web Maven Webapp ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.914s
[INFO] Finished at: Tue May 24 10:52:05 CST 2016
[INFO] Final Memory: 9M/150M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "–Ptest". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>.
Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, g
enerate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, depl
oy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
D:\web-all\accs>
...全文
126 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
howsun_zh 2016-05-24
  • 打赏
  • 举报
回复
少配了插件或者插件少写配置吧。如果要打包成test类型的jar包,需要配置插件:

<plugin>
           <artifactId>maven-jar-plugin</artifactId>
           <executions>
             <execution>
               <phase>package</phase>
               <goals>
                 <goal>jar</goal>
               </goals>
               <configuration>
                 <classifier>test</classifier>
               </configuration>
             </execution>
           </executions>
 </plugin>
看看是不是少写了“<classifier>test</classifier>”这句?

50,547

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧