`
frank1998819
  • 浏览: 764521 次
  • 性别: Icon_minigender_1
  • 来自: 南京
文章分类
社区版块
存档分类

Cannot construct org.apache.maven.plugin.war.util.WebappStructure

 
阅读更多
---------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.bjb.BaseTest
TestSuccessfull0
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.152 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] ------------------------------------------------------------------------
[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 constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
class               : org.apache.maven.plugin.war.util.WebappStructure
required-type       : org.apache.maven.plugin.war.util.WebappStructure
path                : /webapp-structure
line number         : 1
-------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Trace
com.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 constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
class               : org.apache.maven.plugin.war.util.WebappStructure
required-type       : org.apache.maven.plugin.war.util.WebappStructure
path                : /webapp-structure
line number         : 1
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781)
at org.apache.maven.plugin.war.util.WebappStructureSerializer.fromXml(WebappStructureSerializer.java:73)
at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:404)
at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:375)
at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:181)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:143)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:59)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:257)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:124)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
... 31 more

[解决方法]
把不需要的jar删除就可以了~
分享到:
评论

相关推荐

    snmp4j包来读取snmp协议数据

    如果使用Maven,可以在pom.xml文件中添加以下依赖: ```xml <groupId>org.snmp4j <artifactId>snmp4j <version>2.7.6 ``` 初始化SNMP会话:使用SNMP4j前,需要创建一个SNMP会话。这通常涉及设置SNMP版本、...

    construct-2.8.17.tar.gz

    《构建工具Construct 2.8.17详解》 在软件开发过程中,构建工具起着至关重要的作用,它们能够自动化地完成源代码编译、打包、测试等繁琐工作,极大地提高了开发效率。本文将深入探讨名为"Construct"的构建工具,...

    Python库 | construct-2.8.3.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:construct-2.8.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    Construct2GameDevelopmentbyExample.pdf 英文原版

    Construct 2 Game Development by Example

    构建基于Maven的OSGI

    mvn pax:import-bundle -DgroupId=org.apache.felix -DartifactId=org.apache.felix.webconsole -Dversion=3.1.8 ``` 同样地,还可以导入其他的Bundle,例如Servlet支持和Service Component Runtime (SCR)等。 ###...

    PyPI 官网下载 | construct-2.10.56.tar.gz

    标题中的"PyPI 官网下载 | construct-2.10.56.tar.gz"指出这是一个从Python Package Index (PyPI)官方源下载的软件包,名为`construct-2.10.56.tar.gz`。PyPI是Python开发者发布和获取开源库的中央仓库,它使得安装...

    PyPI 官网下载 | cdk-demo-construct-0.0.17.tar.gz

    《PyPI官网下载:深入解析cdk-demo-construct-0.0.17.tar.gz》 PyPI(Python Package Index)是Python社区广泛使用的软件包仓库,它为开发者提供了便捷的方式来发布、查找和安装Python软件包。在本篇文章中,我们将...

    PyPI 官网下载 | construct-2.8.20.tar.gz

    《PyPI官网下载 | construct-2.8.20.tar.gz——Python二进制解析库深入解析》 PyPI(Python Package Index)是Python开发者获取和分享软件包的主要平台,其中包含了众多开源的Python库。在给定的资源中,我们关注的...

    Python库 | ak-construct-2.5.2.tar.gz

    construct.PascalString("utf8"), # 使用UTF-8编码的Pascal字符串 ) # 解析二进制数据 data = b"\x04hello" # 包含一个32位整数4和一个5字节的字符串 parsed_data = struct.parse(data) # 序列化数据 constructed...

    Tapestry + spring

    import org.apache.hivemind.lib.impl.SpringBeanFactoryHolderImpl; import org.apache.tapestry.web.WebContext; import org.springframework.beans.factory.BeanFactory; import org.springframework.context...

    Construct引擎开发:游戏状态管理-(1).Construct引擎开发入门.docxConstruct引擎开发:游戏状态管理-(2).游戏状态管理基础概念.docx

    Construct引擎开发:游戏状态管理_(10).游戏状态管理案例分析.docx Construct引擎开发:游戏状态管理_(1).Construct引擎开发入门.docx Construct引擎开发:游戏状态管理_(2).游戏状态管理基础概念.docx ...

    Construct引擎开发:Construct基础入门

    Construct引擎开发:Construct基础入门_(10).函数与自定义行为.docx Construct引擎开发:Construct基础入门_(11).外部事件与插件.docx Construct引擎开发:Construct基础入门_(12).调试与性能优化.docx ...

    CMINUS 编译器

    为了建立语法树,设计了 constructTree.h constructTree.c 来实现功能。 在globals.h中定义了一些全局变量和全局函数; 在 scan.h 中定义了一些Lex工具需要使用的变量和函数原型; 在 util.c 中实现了printToken ...

    Apache Flume Distributed Log Collection For Hadoop

    Apache Flume is a distributed, reliable, and available service for efficiently collecting, aggregating, and moving large amounts of log data. Its main goal is to deliver data from applications to ...

    Apache Flume- Distributed Log Collection for Hadoop(PACKT,2013)

    Apache Flume is a distributed, reliable, and available service for efficiently collecting, aggregating, and moving large amounts of log data. Its main goal is to deliver data from applications to ...

    PyPI 官网下载 | construct-hub-0.1.118.tar.gz

    `construct-hub`可能遵循Apache 2.0、MIT等开源许可证。 6. **其他资源**:可能包含示例代码、数据文件、图标等,这些资源对于理解和使用库非常有帮助。 在实际应用中,开发者可以通过`pip install construct-hub-...

    pax-construct

    4. **插件管理**:Pax Construct能够自动添加和配置必要的Maven插件,如maven-bundle-plugin,使得打包过程更加顺畅。 5. **构建优化**:通过优化工程结构和配置,Pax Construct可以提高构建速度,降低构建失败的...

    Python库 | construct-hub-0.3.72.tar.gz

    《Python库Construct详解——构建高效数据解析框架》 在Python编程中,数据解析是一个至关重要的环节,无论是处理二进制文件、网络数据流还是复杂的结构化数据,都需要强大的工具来帮助我们。今天我们要讨论的主角...

    PyPI 官网下载 | construct-hub-0.1.153.tar.gz

    《PyPI官网下载:探索construct-hub-0.1.153.tar.gz中的Python分布式技术》 在Python的世界里,PyPI(Python Package Index)是开发者们分享和获取开源软件包的重要平台。今天我们将深入探讨一个从PyPI官网下载的...

Global site tag (gtag.js) - Google Analytics