MWAR-187 On Wed, Mar 25, 2009 at 9:40 AM, Stephane Nicoll <stephane.nic...@gmail.com>wrote:
> Is there a Jira issue for this? If not, can you create one? > > Thanks, > Stéphane > > On Wed, Mar 25, 2009 at 8:36 AM, nicolas de loof > <nicolas.del...@gmail.com>wrote: > > > Hi > > here is a more detailled trace building the webapp with 2.1-beta-1 : > > > > > > <plugins> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-war-plugin</artifactId> > > <version>2.1-beta-1</version> > > <configuration> > > <warName>bios-pdc</warName> > > </configuration> > > </plugin> > > > > Let me know any other usefull info I could provide > > mvn package -V -e -X > > + Error stacktraces are turned on. > > Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100) > > Java version: 1.6.0_11 > > Java home: D:\platina\java\jdk6\jre > > Default locale: fr_FR, platform encoding: Cp1252 > > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > > [INFO] Scanning for projects... > > > > (...) > > > > [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.mavensess...@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] > > ------------------------------------------------------------------------ > > > > > > On Tue, Mar 24, 2009 at 8:13 PM, Dennis Lundberg <denn...@apache.org> > > wrote: > > > > > Can you please provide more information, version environment etc. Also > a > > > stacktrace or debug log. > > > > > > One of my personal webapps builds fine using Maven 2.1.0 and Maven WAR > > > Plugin 2.1-beta-1. > > > > > > >mvn --version > > > > > > Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100) > > > Java version: 1.4.2_18 > > > Java home: C:\Program\Java\jdk1.4.2_18\jre > > > Default locale: sv_SE, platform encoding: Cp1252 > > > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > > > > > > nicolas de loof wrote: > > > > Hi, > > > > my build doesn't work anymore with Maven 2.1.0. > > > > The maven-war-plugin in version 2.1-* fails with : > > > > > > > > [INFO] Packaging webapp > > > > [INFO] > > > > > > ------------------------------------------------------------------------ > > > > [ERROR] FATAL ERROR > > > > [INFO] > > > > > > ------------------------------------------------------------------------ > > > > [INFO] modelEncoding : modelEncoding : modelEncoding : modelEncoding > > > > ---- Debugging information ---- > > > > message : modelEncoding : modelEncoding > > > > cause-exception : > > > > com.thoughtworks.xstream.mapper.CannotResolveClassException > > > > 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 > > > > ------------------------------- > > > > > > > > using plugin version 2.0.2 fixes this. > > > > > > > > > > > > > -- > > > Dennis Lundberg > > > > > > No virus found in this outgoing message. > > > Checked by AVG - www.avg.com > > > Version: 8.5.283 / Virus Database: 270.11.26/2020 - Release Date: > > 03/24/09 > > > 09:19:00 > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > > > For additional commands, e-mail: dev-h...@maven.apache.org > > > > > > > > > -- > Large Systems Suck: This rule is 100% transitive. If you build one, you > suck" -- S.Yegge >