The following comment has been added to this issue:
Author: Vladimir Kralik
Created: Tue, 6 Apr 2004 1:05 PM
Body:
I tryed maven-eclipse-plugin and got another exception :
java.lang.ClassNotFoundException: org.apache.commons.jelly.tags.xml.XMLTagLibrary
It's because maven-eclipse-plugin doesn't contain dependecy to commons-jelly-tags-xml.
http://maven.apache.org/reference/plugins/eclipse/dependencies.html
Then I ( again ) looked on dependencies for maven-plugin-plugin and saw dependency on
commons-jelly-tags-xml.
but not on jaxen and saxpath.
http://maven.apache.org/reference/plugins/plugin/dependencies.html
So question :
Should all maven plugins, which use <jelly:xml>, define dependecy to
commons-jelly-tags-xml, jaxen and saxpath ?
Or this jars will be in future version of maven-distribution ?
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1216&page=comments#action_18265
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1216
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1216
Summary: NoClassDefFoundError for org/jaxen/JaxenException and
org/saxpath/SAXPathException
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: 1 hour
Time Spent: Unknown
Remaining: 1 hour
Project: maven
Components:
jelly/ant integration
Fix Fors:
1.0-rc3
Versions:
1.0-rc2
Assignee:
Reporter: Vladimir Kralik
Created: Thu, 1 Apr 2004 9:51 AM
Updated: Tue, 6 Apr 2004 1:05 PM
Environment: maven-1.0-rc2
jdk 1.4.2_03
M$ Windows 2000 SP 4
cygwin
Description:
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$(XMLTagLibrary.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$(XMLTagLibrary.java:82)
<<skipped>>
after "cp saxpath-1.0-FCS.jar $MAVEN_HOME/lib"
it works fine.
jaxen and saxpath are not listed as dependecies in my plugin.
I use very simple Hello World plugin ( see below )
I thing that problem is in jelly-integration, because jelly
(org.apache.commons.jelly.tags.xml.ForEachTag) requires org.jaxen.JaxenException and
dom4j (org.dom4j.xpath.XPathPattern) requieres org.saxpath.SAXPathException.
=======================
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
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]