ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <>
Subject Re: Missing class for regex
Date Mon, 01 Dec 2008 02:23:22 GMT
Chris wrote:
> I'm trying to use the <propertyregex> task from ant-contrib. It works 
> fine when I call my ant build script directly, but when I call it 
> indirectly within a Maven/Eclipse environment, I get this error message:
> build.xml:67: No supported regular expression matcher found: 
> java.lang.ClassNotFoundException: 
> I'm guessing that this is a classpath problem, and Maven isn't 
> automatically including all the libs it needs, so I need to include them 
>  manually. No problem -- I found the jar that contains the class, 
> ant-nodeps.jar, and put it on the classpath. (And confirmed that it's 
> there.)
> Still getting the same error, though. What's wrong?

Figured it out. The trick is to add the dependency to the plugin, not to 
the main dependencies section of the pom file. It needs "plugin" scope. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message