Try this:
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.0/version
executions
execution
idant-install/id
phaseinstall/phase
configuration
tasks
ant antfile=${basedir}/build.xml=true
target name=prepare-portal/
/ant
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
dependencies
dependency
groupIdant-apache-regexp/groupId
artifactIdant-apache-regexp/artifactId
version1.6.5/version
scoperuntime/scope
/dependency
dependency
groupIdjakarta-regexp/groupId
artifactIdjakarta-regexp/artifactId
version1.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:[EMAIL PROTECTED]
Sent: Friday, February 10, 2006 6:42 PM
To: [EMAIL PROTECTED]
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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.0/version
executions
execution
idant-install/id
phaseinstall/phase
configuration
tasks
ant antfile=${basedir}/build.xml
inheritRefs=true
target name=prepare-portal/
/ant
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
dependencies
dependency
groupIdant-apache-regexp/groupId
artifactIdant-apache-regexp/artifactId
version1.6.5/version
scoperuntime/scope
/dependency
/dependencies
/plugin
/plugins
/build
-
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]
« Return to search results
© 2005-2006 Nabble, Inc.
FAQ - Terms of Use - Nabble Support