Hi. I'm new to Maven, and just written my first plugin successfully (it
analyzes dependencies). But --
I'm now trying to use the jelly-regexp plugin to add some features to
it, and I'm getting an error I don't understand. I was hoping someone
here might have a quick answer for me.
My understanding is that I'm supposed to be able to use the tags by
making the plugin a dependency in my project.xml. So in project.xml I
have:
<dependency>
<groupId>commons-jelly</groupId>
<artifactId>commons-jelly-tags-regexp</artifactId>
<version>1.0</version>
<url>http://jakarta.apache.org/commons/jelly/libs/regexp</url>
<properties>
<classloader>root.maven</classloader>
</properties>
</dependency>
I can see this download fine when I build with plugin:install for the
first time.
Then I import the tags in plugin.jelly as:
<project [... stuff deleted ...] xmlns:rgx="jelly:regexp">
And then I try to use the "match" tag:
<j:set var="foo" value="somerandomstring"/>
<rgx:match expr="somerandomstring" text="${foo}" var="found_a_match" />
But I get an error that some class is missing:
Underlying exception: java.lang.ClassNotFoundException: regexp
java.lang.ClassNotFoundException: regexp
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
[mountainous stack trace deleted]
Shouldn't the plugin simply carry with it the class library it needs, or
cause the appropriate libraries to be downloaded?
Hope I'm missing something obvious here. Any and all help appreciated!
--Chris