You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2005/10/04 19:21:11 UTC

[jira] Commented: (MAVEN-1705) Maven 1.1-beta2 unable to parse POM

    [ http://jira.codehaus.org/browse/MAVEN-1705?page=comments#action_47790 ] 

Lukas Theussl commented on MAVEN-1705:
--------------------------------------

Remove the <!DOCTYPE project> declaration. See http://maven.apache.org/reference/backwards-compatibility.html

(Note: If you validate your pom against the published xsd, you will have to insert a namespace declaration, see MPPOM-5 )

> Maven 1.1-beta2 unable to parse POM
> -----------------------------------
>
>          Key: MAVEN-1705
>          URL: http://jira.codehaus.org/browse/MAVEN-1705
>      Project: Maven
>         Type: Bug
>   Components: core
>     Versions: 1.1-beta-2
>  Environment: Windows XP SP2, 
> java version "1.4.2_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
> Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
>     Reporter: Martijn Dashorst
>  Attachments: project.zip
>
>
> The project.xml is written by the standard Eclipse WTP 0.7 xml editor. It is saved as unicode UTF-8. Maven 1.0 parsed these files without problems.
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2
> 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)
>         at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
>         at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
>         at org.apache.maven.cli.App.doMain(App.java:498)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         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:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> --- Nested Exception ---
> org.apache.maven.MavenException: Error parsing project.xml 'D:\workspace\finan\ing\finan-persistency-dbmanager\project.x
> ml'
>         at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:189)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:120)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:99)
>         at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
>         at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
>         at org.apache.maven.cli.App.doMain(App.java:498)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         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:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> --- Nested Exception ---
> org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace content allowed before start tag and not \uef
> (position: START_DOCUMENT seen \uef... @1:1)
>         at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1515)
>         at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1391)
>         at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1089)
>         at org.apache.maven.project.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:1018)
>         at org.apache.maven.project.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:1782)
>         at org.apache.maven.project.Project.<init>(Project.java:122)
>         at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:185)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:120)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:99)
>         at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
>         at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
>         at org.apache.maven.cli.App.doMain(App.java:498)
>         at org.apache.maven.cli.App.main(App.java:1258)
>         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:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> You have encountered an unknown error running Maven.
> Please help us to correct this problem by following these simple steps:
> - read the Maven FAQ at http://maven.apache.org/faq.html
> - run the same command again with the '-e' parameter, eg 'maven -e jar'
> - search the maven-user archives for the error at http://www.mail-archive.com/users@maven.apache.org
> - post the output of maven -e to JIRA at ???issueTrackingUrl??? (you must sign up first)
> - run 'maven --info' and post the output as the environment to the bug above
> Total time   : 2 seconds
> Finished at  : Tuesday, October 4, 2005 10:14:25 AM CEST

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org