Since it repeated several times, I assume this is not just a type in the email:
sourceModication -> sourceModification Even though Maven1 didn't fail on this, it would have ignored it. Cheers, Brett On 6/23/05, Scott Lamb <[EMAIL PROTECTED]> wrote: > maven 1.1-beta-1 doesn't parse my project.xml. It gives me errors > like these: > > > org.apache.maven.MavenException: Unknown error reading project > at org.apache.maven.MavenUtils.getProject(MavenUtils.java:146) > at org.apache.maven.MavenUtils.getProject(MavenUtils.java:99) > ... > --- Nested Exception --- > org.apache.maven.MavenException: Error parsing project.xml 'foo/ > project.xml' > at org.apache.maven.MavenUtils.getNonJellyProject > (MavenUtils.java:189) > at org.apache.maven.MavenUtils.getProject(MavenUtils.java:120) > ... > --- Nested Exception --- > org.codehaus.plexus.util.xml.pull.XmlPullParserException: TEXT must > be immediately followed by END_TAG and not START_TAG (position: > START_TAG seen ...<sourceModication>\n <className>... @268:20) > at org.codehaus.plexus.util.xml.pull.MXParser.nextText > (MXParser.java:1059) > at > org.apache.maven.project.io.xpp3.MavenXpp3Reader.parseBuild > (MavenXpp3Reader.java:153) > at > org.apache.maven.project.io.xpp3.MavenXpp3Reader.parseModel > (MavenXpp3Reader.java:846) > at org.apache.maven.project.io.xpp3.MavenXpp3Reader.read > (MavenXpp3Reader.java:1621) > at org.apache.maven.project.Project.<init>(Project.java:120) > at org.apache.maven.MavenUtils.getNonJellyProject > (MavenUtils.java:185) > at org.apache.maven.MavenUtils.getProject(MavenUtils.java:120) > ... > > > The relevant section of the project.xml is: > > > <build> > <sourceModifications> > <sourceModication> > <className>thisIsAFakeClass</className> > <excludes> > <exclude>**/foo/**</exclude> > <exclude>**/bar/**</exclude> > </excludes> > </sourceModication> > </sourceModifications> > > > Line 268, position 20 is the start of "thisIsAFakeClass". > > Now, silliness aside (I'm not sure why we're always doing a > sourceModification), why isn't this working? It appears consistent > with <http://maven.apache.org/reference/project- > descriptor.html#class_SourceModification> and worked under maven 1.0.2. > > Thanks, > Scott > > -- > Scott Lamb <http://www.slamb.org/> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
