You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Philipp Gasser <ph...@gmx.net> on 2005/05/06 14:13:19 UTC

Error parsing project.xml

Hello everybody,

today I tried to make a java-update (1.4.1 -> 1.4.2). With this update i got
some errors within my maven-projects:

org.apache.maven.MavenException: Error parsing project.xml
'C:\CVSData\ddp\common-project.xml'
        at
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:208)
        at
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:232)
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
        at
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
        at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
        at org.apache.maven.cli.App.doMain(App.java:473)
        at org.apache.maven.cli.App.main(App.java:1215)
        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)



I have got a bigger multiproject.

Maven: Version 1.0
Java Version WORKING: 1.4.1_07
Java Version Produces this ERROR: 1.4.2_08

SubProject - project.xml:
--------------------------
<?xml version="1.0"?>
<!DOCTYPE project [
  <!ENTITY % index SYSTEM "file:index.ent"> %index;
]>


<project>
  <extend>${basedir}/../../../common-project.xml</extend>

  <name>converter API</name>

  <groupId>&ddp-id;</groupId>
  <id>&convertor-api-id;</id>
  <currentVersion>&convertor-api-version;</currentVersion>
  
  <description>
........


Multiproject - commons-project.xml
------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE project [
  <!ENTITY % index SYSTEM "versions.ent"> %index;
]>

<project>

  <pomVersion>3</pomVersion>
........


I have no idea how to find the bad situation, within these
project.xml-files.

Any idea???

Thanks
Phil

-- 
+++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++
Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

-- 
+++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++
Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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


Re: Error parsing project.xml

Posted by Kenney Westerhof <fo...@neonics.com>.
On Fri, 6 May 2005, Philipp Gasser wrote:

It might have something to do with the ENTITY definition. POMs should be
contained in 1 file, using several files (like entity files) is
discouraged, I believe.

Either don't use &entities; (fill in the real values) or try to define
the entities in the project file itself, see if that helps.

Greetings,

	Kenney Westerhof

> Hello everybody,
>
> today I tried to make a java-update (1.4.1 -> 1.4.2). With this update i got
> some errors within my maven-projects:
>
> org.apache.maven.MavenException: Error parsing project.xml
> 'C:\CVSData\ddp\common-project.xml'
>         at
> org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:208)
>         at
> org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:232)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
>         at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
>         at
> org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
>         at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
>         at org.apache.maven.cli.App.doMain(App.java:473)
>         at org.apache.maven.cli.App.main(App.java:1215)
>         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)
>
>
>
> I have got a bigger multiproject.
>
> Maven: Version 1.0
> Java Version WORKING: 1.4.1_07
> Java Version Produces this ERROR: 1.4.2_08
>
> SubProject - project.xml:
> --------------------------
> <?xml version="1.0"?>
> <!DOCTYPE project [
>   <!ENTITY % index SYSTEM "file:index.ent"> %index;
> ]>
>
>
> <project>
>   <extend>${basedir}/../../../common-project.xml</extend>
>
>   <name>converter API</name>
>
>   <groupId>&ddp-id;</groupId>
>   <id>&convertor-api-id;</id>
>   <currentVersion>&convertor-api-version;</currentVersion>
>
>   <description>
> ........
>
>
> Multiproject - commons-project.xml
> ------------------------------------
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE project [
>   <!ENTITY % index SYSTEM "versions.ent"> %index;
> ]>
>
> <project>
>
>   <pomVersion>3</pomVersion>
> ........
>
>
> I have no idea how to find the bad situation, within these
> project.xml-files.
>
> Any idea???
>
> Thanks
> Phil
>
> --
> +++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++
> Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
>
> --
> +++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++
> Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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