[jira] [Commented] (MWAR-279) WAR plugin fails during incremental build with JDK7
[ https://issues.apache.org/jira/browse/MWAR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066953#comment-15066953 ] Hudson commented on MWAR-279: - FAILURE: Integrated in Axis2 #3164 (See [https://builds.apache.org/job/Axis2/3164/]) Upgrade maven-war-plugin to version 2.6 to avoid MWAR-279 in the HTTPS sample. (veithen: rev 1721225) * axis2/pom.xml > WAR plugin fails during incremental build with JDK7 > --- > > Key: MWAR-279 > URL: https://issues.apache.org/jira/browse/MWAR-279 > Project: Maven WAR Plugin > Issue Type: Bug >Affects Versions: 2.1.1, 2.2 > Environment: Windows7 64bit > maven 3.0.3 > jdk-1.7.0_03 >Reporter: Liya Katz >Assignee: Karl Heinz Marbaise >Priority: Blocker > > Same error for war-plugin 2.2 and 2.1.1 > Appears when running incremental build with jdk 7. > Build from clean works fine. > From the log: > {noformat} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project > xxx-web: Execution default-war of goal > org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor : Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor > [ERROR] Debugging information > [ERROR] message : Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor > [ERROR] cause-exception : > com.thoughtworks.xstream.converters.reflection.ObjectAccessException > [ERROR] cause-message : Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor > [ERROR] class : org.apache.maven.plugin.war.util.WebappStructure > [ERROR] required-type : org.apache.maven.plugin.war.util.WebappStructure > [ERROR] path: /webapp-structure > [ERROR] --- > [ERROR] -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on > project skyboxview-system-web: Execution default-war of goal > org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor : 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 > --- > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) > at > org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution > default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war > failed: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as > it does not have a no-args constructor : Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a >
[jira] [Commented] (MWAR-279) WAR plugin fails during incremental build with JDK7
[ https://issues.apache.org/jira/browse/MWAR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15007579#comment-15007579 ] Bruno Medeiros commented on MWAR-279: - It happens all the time for me with cache enabled on prepape-package and war plugin versions 2.1 e 2.2 with java 7 e 8. Java 7 and war plugin 2.4 seems to fix this. > WAR plugin fails during incremental build with JDK7 > --- > > Key: MWAR-279 > URL: https://issues.apache.org/jira/browse/MWAR-279 > Project: Maven WAR Plugin > Issue Type: Bug >Affects Versions: 2.1.1, 2.2 > Environment: Windows7 64bit > maven 3.0.3 > jdk-1.7.0_03 >Reporter: Liya Katz >Assignee: Karl Heinz Marbaise >Priority: Blocker > > Same error for war-plugin 2.2 and 2.1.1 > Appears when running incremental build with jdk 7. > Build from clean works fine. > From the log: > {noformat} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project > xxx-web: Execution default-war of goal > org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor : Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor > [ERROR] Debugging information > [ERROR] message : Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor > [ERROR] cause-exception : > com.thoughtworks.xstream.converters.reflection.ObjectAccessException > [ERROR] cause-message : Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor > [ERROR] class : org.apache.maven.plugin.war.util.WebappStructure > [ERROR] required-type : org.apache.maven.plugin.war.util.WebappStructure > [ERROR] path: /webapp-structure > [ERROR] --- > [ERROR] -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on > project skyboxview-system-web: Execution default-war of goal > org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor : 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 > --- > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) > at > org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution > default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war > failed: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as > it does not have a no-args constructor : Cannot construct > org.apache.maven.plugin.war.util.WebappStructure as it does not have a > no-args constructor > -