Hello guys,
I have recently installed Maven 1.0.2 and have also setup the sample
project as specified in 'Ten minute Test' available at
http://maven.apache.org/start/ten-minute-test.html. Using command 'maven
java:compile' I am able to compile the sample project successfully. But
when I try to build a Jar using command 'maven jar', I get following error
on the console :
C:\sample-echo>maven jar
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
java.lang.NoClassDefFoundError:
org/apache/velocity/exception/ResourceNotFoundEx
ception
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at
org.apache.commons.jelly.tags.velocity.VelocityTagLibrary.class$(Velo
cityTagLibrary.java:67)
at
org.apache.commons.jelly.tags.velocity.VelocityTagLibrary.<init>(Velo
cityTagLibrary.java:71)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:262)
at
org.apache.commons.jelly.JellyContext.getTagLibrary(JellyContext.java
:432)
at
org.apache.maven.jelly.MavenJellyContext.getTagLibrary(MavenJellyCont
ext.java:171)
at
org.apache.commons.jelly.JellyContext.getTagLibrary(JellyContext.java
:415)
at
org.apache.maven.jelly.MavenJellyContext.getTagLibrary(MavenJellyCont
ext.java:171)
at
org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:10
33)
at
org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser.java
:647)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:299)
at
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:222)
at
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:180)
at
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:146)
at
org.apache.maven.plugin.PluginManager.loadScript(PluginManager.java:1
109)
at
org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:11
35)
at
org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(
PluginManager.java:770)
at
org.apache.maven.plugin.PluginManager.prepAttainGoal(PluginManager.ja
va:725)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
656)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at java.lang.reflect.Method.invoke(Native Method)
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/[EMAIL PROTECTED]
- 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: 2 seconds
Finished at: Thu Aug 04 11:13:38 IST 2005
Please advise.
Regards,
Nehal
************************************************************
HSBC Software Development (India) Pvt Ltd
HSBC Center, Riverside, West Avenue,
25-B Raheja Woods, Kalyani Nagar, Pune 411006.
Telephone: +91 20 26683000
Fax: +91 20 26681030
************************************************************
-----------------------------------------
************************************************************************
This e-mail is confidential. It may also be legally privileged. If you are
not the addressee you may not copy, forward, disclose or use any part of
it. If you have received this message in error, please delete it and all
copies from your system and notify the sender immediately by return
e-mail. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.
************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]