You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by A Leg <ha...@yahoo.com> on 2004/10/19 11:09:43 UTC

Problem Compiling

Hi

Any help welcome :
Error parsing project.xml 
'/home/rcs/Master/extern/java/jakarta/jakarta-velocity/project.xml'

I download this morning from CVS

and when It type maven I get:


{orion:rcs} maven
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-SNAPSHOT

org.apache.maven.MavenException: Unknown error reading project
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:145)
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:98)
        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)
--- Nested Exception ---
org.apache.maven.MavenException: Error parsing project.xml 
'/home/rcs/Master/extern/java/jakarta/jakarta-velocity/project.xml'
        at 
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:188)
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:119)
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:98)
        at 
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
        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)
--- Nested Exception ---
org.xmlpull.v1.XmlPullParserException: TEXT must be immediately followed 
by END_TAG and not START_TAG (position: START_TAG seen 
...<includes>\n        <include>... @202:18)
        at org.xmlpull.mxp1.MXParser.nextText(MXParser.java:1031)
        at 
org.apache.maven.project.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:749)
        at org.apache.maven.project.Project.<init>(Project.java:131)
        at 
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:184)
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:119)
        at org.apache.maven.MavenUtils.getProject(MavenUtils.java:98)
        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)

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://nagoya.apache.org/eyebrowse/SummarizeList?listName=users@maven.apache.org
- post the output of maven -e to JIRA at
http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up 
first)
- run 'maven --info' and post the output as the environment to the bug above


Total time: 3 seconds
Finished at: Tue Oct 19 12:01:07 EEST 2004

Andre

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Solved : Re: Problem Compiling

Posted by A Leg <ha...@yahoo.com>.
Excuses

We must go in the build directory.

Excuse  me it is not very usal but it works.

Thank's

Andre


Thank's Shinobu

README.txt say :
To build Velocity's jar, change directory into the build/ directory and
simply type :

ant jar :-)

But :

{orion:rcs} ant jar
Buildfile: build.xml does not exist!
Build failed :-(

So ant need a build.xml file ;-)

And download from CVS does not provide it.
provide project.xml for maven, but buggy.

Any solution ?

Andre

Shinobu Kawai wrote:

>Hi Andre,
>
>  
>
>>But it is no build.xml file
>>only a project.xml for maven
>>    
>>
>You may not see the build.xml file, but I think you can see the
>README.txt file.  ;)
>
>Best regards,
>-- Shinobu Kawai
>
>  
>


Re: Problem Compiling

Posted by A Leg <ha...@yahoo.com>.
Thank's Shinobu

README.txt say :
To build Velocity's jar, change directory into the build/ directory and
simply type :

ant jar :-)

But :

{orion:rcs} ant jar
Buildfile: build.xml does not exist!
Build failed :-(

So ant need a build.xml file ;-)

And download from CVS does not provide it.
provide project.xml for maven, but buggy.

Any solution ?

Andre

Shinobu Kawai wrote:

>Hi Andre,
>
>  
>
>>But it is no build.xml file
>>only a project.xml for maven
>>    
>>
>You may not see the build.xml file, but I think you can see the
>README.txt file.  ;)
>
>Best regards,
>-- Shinobu Kawai
>
>  
>


Re: Problem Compiling

Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Andre,

> But it is no build.xml file
> only a project.xml for maven
You may not see the build.xml file, but I think you can see the
README.txt file.  ;)

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai <sh...@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Problem Compiling

Posted by A Leg <ha...@yahoo.com>.
Hi Shinobu

But it is no build.xml file
only a project.xml for maven

Andre

Shinobu Kawai wrote:

>Hi Andre,
>
>  
>
>>Any help welcome :
>>Error parsing project.xml
>>'/home/rcs/Master/extern/java/jakarta/jakarta-velocity/project.xml'
>>
>>I download this morning from CVS
>>
>>and when It type maven I get:
>>    
>>
>
>## snip
>
>Try using Ant.  I don't think Maven is completely supported yet.
>  http://www.mail-archive.com/velocity-dev@jakarta.apache.org/msg07993.html
>
>Best regards,
>-- Shinobu Kawai
>
>  
>


Re: Problem Compiling

Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Andre,

> Any help welcome :
> Error parsing project.xml
> '/home/rcs/Master/extern/java/jakarta/jakarta-velocity/project.xml'
> 
> I download this morning from CVS
> 
> and when It type maven I get:

## snip

Try using Ant.  I don't think Maven is completely supported yet.
  http://www.mail-archive.com/velocity-dev@jakarta.apache.org/msg07993.html

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai <sh...@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Problem Compiling

Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Andre,

> Any help welcome :
> Error parsing project.xml
> '/home/rcs/Master/extern/java/jakarta/jakarta-velocity/project.xml'
> 
> I download this morning from CVS
> 
> and when It type maven I get:
I forgot I did this before.  :)
  http://www.mail-archive.com/velocity-dev@jakarta.apache.org/msg10534.html

At least it works with Maven 1.0.

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai <sh...@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org