关于Cannot construct org.apache.maven.plugin.war.util.WebappStructure maven打包问题解决
来源:互联网 发布:java异步调用方法 编辑:程序博客网 时间:2024/06/06 09:47
今天本来打算学习下cxf,用maven创建工程打包报错
[ERROR] FATAL ERROR[INFO] ------------------------------------------------------------------------[INFO] Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor---- Debugging information ----message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructorcause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessExceptioncause-message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructorclass : org.apache.maven.plugin.war.util.WebappStructurerequired-type : org.apache.maven.plugin.war.util.WebappStructurepath : /webapp-structureline number : 1-------------------------------[INFO] ------------------------------------------------------------------------[INFO] Tracecom.thoughtworks.xstream.converters.ConversionException: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor---- Debugging information ----message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructorcause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessExceptioncause-message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructorclass : org.apache.maven.plugin.war.util.WebappStructurerequired-type : org.apache.maven.plugin.war.util.WebappStructurepath : /webapp-structureline number : 1
结果在stackoverflow 上提供了一个解决方案结果真见效,主要是我的插件
<plugin><artifactId>maven-war-plugin</artifactId> </plugin>
没有配版本了,结果加上<version>2.1.1</version>
一下子就搞定了。我想这应该是插件版本太低了,打成war包就出了问题。原文参见http://stackoverflow.com/questions/7539970/cannot-construct-org-apache-maven-plugin-war-util-webappstructure-as-it-does-not
0 0
- 关于Cannot construct org.apache.maven.plugin.war.util.WebappStructure maven打包问题解决
- maven打包时报错: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a
- maven打包报错:Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no
- maven web项目执行install错误:org.apache.maven.plugin.war.util.WebappStructure
- org.apache.maven.plugins:maven-war-plugin
- Maven打包时报Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war解决方案
- Maven打包时报Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war解决方案
- maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:war
- Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.4
- Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.3
- Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.4
- maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-wa
- maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-wa
- maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-wa
- maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-wa
- maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-wa
- maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-wa
- IOS之字典总结
- 左划菜单SlidingMenu
- GitHub中"watch" "star" "fork"
- Mysql优化和小技巧等
- Java网络通信之HttpClient
- 关于Cannot construct org.apache.maven.plugin.war.util.WebappStructure maven打包问题解决
- iPhone屏幕适配,历史及现状
- Cocos2d-x3.2与OpenGL渲染总结(一)Cocos2d-x3.2的渲染流程
- 【ShareSDK】ShareSDK for Android 2.5.8已经发布
- jquery.form.js时间插件
- Mybatis批量更新数据
- informix库报错:Encoding or code set not supported
- springmvc + jquery datatable + ajax实现动态分页查询
- SQL Server循环执行动态SQL语句.