You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ha...@jpmchase.com on 2006/02/13 10:21:31 UTC
RE: Maven 2 - Ant - Regular Expressions
Try this:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>ant-install</id>
<phase>install</phase>
<configuration>
<tasks>
<ant antfile="${basedir}/build.xml"="true">
<target name="prepare-portal"/>
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-apache-regexp</groupId>
<artifactId>ant-apache-regexp</artifactId>
<version>1.6.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>jakarta-regexp</groupId>
<artifactId>jakarta-regexp</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
-Hassan
Reply (Restricted by the Administrator) | Show Only this Message
Right. It is in my classpath environment variable so that when I run
ant, it picks up ant-jakarta-regexp. But when maven does the antrun, I
get the error.
I had attempted to make ant-jakarta-regexp a dependency for the antrun
plugin (as you can see in the pom, below (I put it into our local
repository)), but it doesn't make the error go away.
-->John
-----Original Message-----
From: Hassan Sajjad [mailto:hsajjad@...]
Sent: Friday, February 10, 2006 6:42 PM
To: users@...
Subject: Maven 2 - Ant - Regular Expressions
Are you missing a dependency?
The documentation for regexp mapper here
[http://ant.apache.org/manual/CoreTypes/mapper.html] says that you need
"one
of the supported regular expression libraries and the corresponding
ant-[jakarta-oro, jakarta-regexp, apache-oro, apache-regexp].jar" in
your
classpath.
ORIGINAL MESSAGE:
I have an ant task (ant 1.6.5) that uses the regexpmapper. When I run
the task with just ant, it works.
When I add that task using antrun in maven, I get this error:
Embedded error: The following error occurred while executing this line:
/var/home/jmartin/build.xml:80: Could not create type regexpmapper due
to No supported regular expression matcher found
I don't understand where this is coming from.
-->John
My pom has this:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>ant-install</id>
<phase>install</phase>
<configuration>
<tasks>
<ant antfile="${basedir}/build.xml"
inheritRefs="true">
<target name="prepare-portal"/>
</ant>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-apache-regexp</groupId>
<artifactId>ant-apache-regexp</artifactId>
<version>1.6.5</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
« Return to search results
© 2005-2006 Nabble, Inc.
FAQ - Terms of Use - Nabble Support