Maven compilation exception: com.thoughtworks.xstream.converters.ConversionException (transfer

今天用maven编译,报以奇怪异常:

mvn package -Dmaven.test.skip=true



[INFO] ------------------------------------------------------------------------

[INFO] Trace

com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.ap

ache.maven.plugin.war.util.WebappStructure as it does not have a no-args constru

ctor

---- Debugging information ----

message             : Cannot construct org.apache.maven.plugin.war.util.WebappSt

ructure as it does not have a no-args constructor

cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAcces

sException

cause-message       : Cannot construct org.apache.maven.plugin.war.util.WebappSt

ructure 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

-------------------------------



After investigation, it is related to the JDK version, and the 1.7 version will report the above error. Change to 1.6, decisive success.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326921889&siteId=291194637