Maven WAR Plugin
  1. Maven WAR Plugin
  2. MWAR-279

WAR plugin fails during incremental build with JDK7

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1, 2.2
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows7 64bit
      maven 3.0.3
      jdk-1.7.0_03
    • Number of attachments :
      0

      Description

      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:

      [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
      ---- 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.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      	... 13 more
      Caused by: com.thoughtworks.xstream.converters.ConversionException: 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 com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
      	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
      	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
      	at org.apache.maven.plugin.war.util.WebappStructureSerializer.fromXml(WebappStructureSerializer.java:79)
      	at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:433)
      	at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:404)
      	at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:197)
      	at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:159)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      	... 14 more
      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:71)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
      	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      	... 28 more
      

        Activity

        Hide
        Marcin Wisnicki added a comment -

        It works if you update jar and archiver plugins:

        <pluginManagement>
        	<plugins>
        		<plugin>
        			<groupId>org.apache.maven.plugins</groupId>
        			<artifactId>maven-jar-plugin</artifactId>
        			<version>2.4</version>
        		</plugin>
        		<plugin>
        			<groupId>org.apache.maven.plugins</groupId>
        			<artifactId>maven-war-plugin</artifactId>
        			<version>2.2</version>
        		</plugin>
        		<plugin>
        			<groupId>org.apache.maven.plugins</groupId>
        			<artifactId>maven-archiver</artifactId>
        			<version>2.5</version>
        		</plugin>
        	</plugins>
        </pluginManagement>
        
        Show
        Marcin Wisnicki added a comment - It works if you update jar and archiver plugins: <pluginManagement> <plugins> <plugin> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-jar-plugin </artifactId> <version> 2.4 </version> </plugin> <plugin> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-war-plugin </artifactId> <version> 2.2 </version> </plugin> <plugin> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-archiver </artifactId> <version> 2.5 </version> </plugin> </plugins> </pluginManagement>
        Hide
        Dennis Lundberg added a comment -

        Can you put together a small project that we can use to test this issue?
        What commands do you use for your "incremental build"?

        Show
        Dennis Lundberg added a comment - Can you put together a small project that we can use to test this issue? What commands do you use for your "incremental build"?
        Hide
        Marcin Wisnicki added a comment -

        In my case I was using NetBeans 7.0 and Vaadin application archetype - it broke after first build.

        Show
        Marcin Wisnicki added a comment - In my case I was using NetBeans 7.0 and Vaadin application archetype - it broke after first build.
        Robert Scholte made changes -
        Field Original Value New Value
        Description 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:

        [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
        ---- 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.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 13 more
        Caused by: com.thoughtworks.xstream.converters.ConversionException: 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 com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
        at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
        at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
        at org.apache.maven.plugin.war.util.WebappStructureSerializer.fromXml(WebappStructureSerializer.java:79)
        at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:433)
        at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:404)
        at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:197)
        at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:159)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        ... 14 more
        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:71)
        at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
        at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
        ... 28 more
        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
        ---- 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.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 13 more
        Caused by: com.thoughtworks.xstream.converters.ConversionException: 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 com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
        at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
        at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
        at org.apache.maven.plugin.war.util.WebappStructureSerializer.fromXml(WebappStructureSerializer.java:79)
        at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:433)
        at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:404)
        at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:197)
        at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:159)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        ... 14 more
        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:71)
        at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
        at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
        ... 28 more
        {noformat}
        Hide
        Robert Scholte added a comment -

        maven-archiver has been updated to 2.5. Could someone verify if this is fixed with the latest SNAPSHOT?

        Show
        Robert Scholte added a comment - maven-archiver has been updated to 2.5. Could someone verify if this is fixed with the latest SNAPSHOT?
        Robert Scholte made changes -
        Fix Version/s 2.4 [ 18840 ]
        Hide
        Stéphane Nicoll added a comment -

        I don't get it. As per MWAR-231, the cache must be disabled by default and I don't see why you would get this unless you have explicitly enabled it. Is it the case in your project?

        Show
        Stéphane Nicoll added a comment - I don't get it. As per MWAR-231 , the cache must be disabled by default and I don't see why you would get this unless you have explicitly enabled it. Is it the case in your project?
        Olivier Lamy made changes -
        Fix Version/s 2.5 [ 19421 ]
        Fix Version/s 2.4 [ 18840 ]
        Hide
        Bruno Medeiros added a comment -

        I'm getting this error, even with clean, using the 'exploded' goal in the 'prepare-package' phase. Is it expected?

        Show
        Bruno Medeiros added a comment - I'm getting this error, even with clean, using the 'exploded' goal in the 'prepare-package' phase. Is it expected?
        Hide
        Karl-Heinz Marbaise added a comment -

        Is this true for release 2.4 of maven-war-plugin?

        Show
        Karl-Heinz Marbaise added a comment - Is this true for release 2.4 of maven-war-plugin?

          People

          • Assignee:
            Unassigned
            Reporter:
            Liya Katz
          • Votes:
            11 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

            • Created:
              Updated: