Ok. Could you send full stack trace, which appears when you don't use those dependencies.
On Wed, 2004-03-31 at 14:07, KR�LIK Vladim�r wrote: > > -----Original Message----- > > From: Arto Pastinen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, March 31, 2004 11:13 AM > ... > > I think that you must at least jaxen to your project.xml. I don't know > > that saxpath. > > If your plugin doesn't need those, it is still possible, that > > some other > > element in your plugin needs those. Like jelly, or and, or something > > else. > Please, look at the example HelloWorld below. > There are only <ant:echo/>, no java src. > Why are needed dependencies to jaxen and saxpath ? > > I tryed to add dependencies to HelloWorld plugin : ( both are needed ) > <dependencies> > <dependency> > <groupId>jaxen</groupId> > <artifactId>jaxen-core</artifactId> > <version>1.0-FCS</version> > </dependency> > <dependency> > <groupId>saxpath</groupId> > <artifactId>saxpath</artifactId> > <version>1.0-FCS</version> > </dependency> > </dependencies> > and then all work's fine. But I've question : > All plugins must have dependecies to jaxen and saxpath ? > I looked for some and they haven't that dependecies :-(. > > for example : > http://maven.apache.org/reference/plugins/jar/dependencies.html > http://maven.apache.org/reference/plugins/test/dependencies.html > http://maven.apache.org/reference/plugins/clean/dependencies.html > > > > > > On Wed, 2004-03-31 at 12:01, KR�LIK Vladim�r wrote: > > > > -----Original Message----- > > > > From: Brett Porter [mailto:[EMAIL PROTECTED] > > > > Sent: Wednesday, March 31, 2004 1:47 AM > > > ... > > > > Are jaxen and saxpath listed as dependencies in your > > > > project.xml? > > > No, they aren't. I don't need that jars in my plugin. > > > I reproduced this bug wih simple HelloWorld plugin without > > any dependencies. > > > > > > > Can you send that section to the list if so? > > > All three files from HelloWorld-plugin are below. > > > > > > ======================= > > > project.xml > > > ======================= > > > <?xml version="1.0" encoding="ISO-8859-1"?> > > > <project> > > > <pomVersion>3</pomVersion> > > > <id>maven-hello-plugin</id> > > > <name>Maven Hello World Plug-in</name> > > > <currentVersion>1.0.0-SNAPSHOT</currentVersion> > > > <dependencies /> > > > <build> > > > <resources> > > > <resource> > > > <directory>${basedir}</directory> > > > <includes> > > > <include>plugin.jelly</include> > > > <include>plugin.properties</include> > > > <include>project.xml</include> > > > </includes> > > > </resource> > > > </resources> > > > </build> > > > </project> > > > ======================= > > > plugin.jelly > > > ======================= > > > <?xml version="1.0" encoding="ISO-8859-1"?> > > > <project xmlns:ant="jelly:ant" > > > > <goal description="Hello World" name="hello:world"> > > > <ant:echo>Hello, ${maven.hello.world}</ant:echo> > > > </goal> > > > </project> > > > ======================= > > > plugin.properties > > > ======================= > > > maven.hello.world=World > > > > > > > > > > > > > > Thanks, > > > > Brett > > > > > > > > > -----Original Message----- > > > > > From: KR�LIK Vladim�r [mailto:[EMAIL PROTECTED] > > > > > Sent: Wednesday, 31 March 2004 2:59 AM > > > > > To: Maven Users MailingList (E-mail) > > > > > Subject: NoClassDefFoundError for org/jaxen/JaxenException > > > > > and org/saxpath/SAXPathException > > > > > > > > > > > > > > > Hello all, > > > > > > > > > > i've problem with instalation of maven-1.0-rc2. > > > > > I've installed maven into new directory structures ( empty > > > > > ${maven.home.local} ). Environment : > > > > > maven-1.0-rc2 > > > > > jdk 1.4.2_03 > > > > > M$ Windows 2000 SP 4 > > > > > cygwin > > > > > > > > > > When I try install my own plugin ( by using "maven > > > > > plugin:install" ),then I get : <<skipped>> Caused by: > > > > > java.lang.NoClassDefFoundError: org/jaxen/JaxenException > > > > > at java.lang.Class.forName0(Native Method) > > > > > at java.lang.Class.forName(Class.java:141) > > > > > at > > > > > org.apache.commons.jelly.tags.xml.XMLTagLibrary.class$(XMLTagL > > > > > ibrary.java:82) > > > > > <<skipped>> > > > > > > > > > > after "cp jaxen-core-1.0-FCS.jar $MAVEN_HOME/lib" : > > > > > > > > > > <<skipped>> > > > > > Caused by: java.lang.NoClassDefFoundError: > > > > > org/saxpath/SAXPathException > > > > > <<skipped java.lang>>> > > > > > at > > > > > org.apache.commons.jelly.tags.xml.XMLTagLibrary.class$(XMLTagL > > > > > ibrary.java:82) > > > > > <<skipped>> > > > > > > > > > > after "cp saxpath-1.0-FCS.jar $MAVEN_HOME/lib" > > > > > > > > > > it works fine. > > > > > > > > > > Is this bug ? > > > > > Should be saxpath.jar and jaxen.jar in maven distribution ? > > > > > > > > > > thank's for answers. > > > > > > > > > > vlk > > > > > > > > > > > > > > > Vladimir Kralik > > > > > ASSET Soft a.s. > > > > > Banska Bystrica > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
