maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter (JIRA)" <j...@codehaus.org>
Subject [jira] (MNG-3556) XML entity not supported in Maven 2
Date Thu, 29 Mar 2012 03:04:03 GMT

    [ https://jira.codehaus.org/browse/MNG-3556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=295335#comment-295335
] 

Brett Porter commented on MNG-3556:
-----------------------------------

Matt: combination of lack of parser support at the time in conjunction with the decision not
to use it. My only thought at this stage some years later might be tool support. Regardless,
it would be far better to focus on shipping support for more concise formats or ways to compose
the model of other external fragments in a generic fashion rather than relying on XML tooling
specifically.
                
> XML entity not supported in Maven 2
> -----------------------------------
>
>                 Key: MNG-3556
>                 URL: https://jira.codehaus.org/browse/MNG-3556
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: General
>            Reporter: Dan Fabulich
>         Attachments: pom.xml
>
>
> The attached XML file defines and uses an XML entity called "&amp;blah;".  It validates
in FF and in other XML parsers, but when I attempt to load it up in Maven, I get the fellowing
exception:
> {code}
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
> Project ID: unknown
> POM Location: C:\blah\pom.xml
> Reason: Parse error reading POM. Reason: could not resolve entity named 'blah' (position:
START_TAG seen ...</version>\r\n  <name>&blah;... @11:15)  for project unknown
at C:\blah\pom.xml
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. Reason: could
not resolve entity named 'blah' (position: START_TAG seen ...</version>\r\n  <name>&blah;...
@11:15)  for project unknown at C:\blah\pom.xml
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:376)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:289)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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: org.apache.maven.project.InvalidProjectModelException: Parse error reading
POM. Reason: could not resolve entity named 'blah' (position: START_TAG seen ...</version>\r\n
 <name>&blah;... @11:15)  for project unknown at C:\blah\pom.xml
>         at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1416)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1377)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:474)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:197)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:548)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:458)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:362)
>         ... 11 more
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: could not resolve
entity named 'blah' (position: START_TAG seen ...</version>\r\n  <name>&blah;...
@11:15)
>         at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1282)
>         at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093)
>         at org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:1058)
>         at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2050)
>         at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:4422)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1412)
>         ... 17 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Apr 28 14:43:06 PDT 2008
> [INFO] Final Memory: 1M/4M
> [INFO] ------------------------------------------------------------------------
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message