Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Auto Closed
-
2.1-beta-1
-
None
-
None
-
None
Description
Using plugin version 2.1-beta-1, my webapp can't get packaged.
It can be fixed by downgrading the plugin to 2.0.2
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:w ar' --> [DEBUG] (s) archiveClasses = false [DEBUG] (s) attachClasses = false [DEBUG] (s) cacheFile = D:\...\target\war\work\webapp-cache.xml [DEBUG] (s) classesClassifier = classes [DEBUG] (s) classesDirectory = D:\...\target\classes [DEBUG] (f) escapedBackslashesInFilePath = false [DEBUG] (s) failOnMissingWebXml = true [DEBUG] (f) filteringDeploymentDescriptors = false [DEBUG] (s) outputDirectory = D:\...\target [DEBUG] (s) primaryArtifact = true [DEBUG] (s) project = MavenProject: com.sfr.bios.pdc:bios-pdc-webservices:1.0. 0-SNAPSHOT @ D:\...\pom.xml [DEBUG] (f) session = org.apache.maven.execution.MavenSession@10f0a0 [DEBUG] (s) useCache = true [DEBUG] (s) warName = bios-pdc [DEBUG] (s) warSourceDirectory = D:\...\src\main\webapp [DEBUG] (s) webappDirectory = D:\...\target\bios-pdc-webservices-1.0.0-SNAPSHOT [DEBUG] (s) workDirectory = D:\...\target\war\work [DEBUG] -- end configuration -- [INFO] [war:war] [INFO] Packaging webapp [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] modelEncoding : modelEncoding : modelEncoding : modelEncoding ---- Debugging information ---- message : modelEncoding : modelEncoding cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassExceptio n cause-message : modelEncoding : modelEncoding class : org.apache.maven.plugin.war.util.WebappStructure required-type : org.apache.maven.model.Dependency path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin .war.util.DependencyInfo/dependency/modelEncoding line number : 156 ------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Trace com.thoughtworks.xstream.converters.ConversionException: modelEncoding : modelEn coding : modelEncoding : modelEncoding ---- Debugging information ---- message : modelEncoding : modelEncoding cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassExceptio n cause-message : modelEncoding : modelEncoding class : org.apache.maven.plugin.war.util.WebappStructure required-type : org.apache.maven.model.Dependency path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin .war.util.DependencyInfo/dependency/modelEncoding line number : 156 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall er.java:89) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A bstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:76) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.unmarshallField(AbstractReflectionConverter.java:246) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.doUnmarshal(AbstractReflectionConverter.java:218) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.unmarshal(AbstractReflectionConverter.java:162) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall er.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A bstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:60) at com.thoughtworks.xstream.converters.collections.AbstractCollectionCon verter.readItem(AbstractCollectionConverter.java:71) at com.thoughtworks.xstream.converters.collections.CollectionConverter.p opulateCollection(CollectionConverter.java:68) at com.thoughtworks.xstream.converters.collections.CollectionConverter.u nmarshal(CollectionConverter.java:61) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall er.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A bstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:76) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.unmarshallField(AbstractReflectionConverter.java:246) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.doUnmarshal(AbstractReflectionConverter.java:218) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.unmarshal(AbstractReflectionConverter.java:162) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall er.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A bstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm arshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller .java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh al(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(We bappStructureSerializer.java:73) at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMo jo.java:423) at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstr actWarMojo.java:394) at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:195 ) at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:157) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:678) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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.mapper.CannotResolveClassException: modelEnc oding : modelEncoding at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper .java:68) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicP roxyMapper.java:71) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(Packa geAliasingMapper.java:88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAl iasingMapper.java:86) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.jav a:96) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper .java:38) at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper .java:52) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.determineType(AbstractReflectionConverter.java:347) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.doUnmarshal(AbstractReflectionConverter.java:208) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.unmarshal(AbstractReflectionConverter.java:162) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall er.java:82) ... 50 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24 seconds [INFO] Finished at: Wed Mar 25 08:33:07 CET 2009 [INFO] Final Memory: 30M/71M [INFO] ----------------------