You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan Franke (JIRA)" <ji...@codehaus.org> on 2008/12/09 11:29:20 UTC
[jira] Commented: (MANTRUN-84) Taskdef classpath not reolved
[ http://jira.codehaus.org/browse/MANTRUN-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=157375#action_157375 ]
Stefan Franke commented on MANTRUN-84:
--------------------------------------
you have to add the additional jars to the ant-run-plugin classpath by specifying dependencies inside the plugin usage:
{code}
<plugin>
<artifactId>maven-antrun-plugin>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.7.1</version>
</dependency>
<!-- if u plan to use regular expressions and such stuff: -->
<dependency>
<groupId>ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.7.1</version>
</dependency>
<!-- if u plan to use <if> and such stuff: -->
<dependency>
<groupId>ant</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b2</version>
</dependency>
</dependencies>
...
{code}
> Taskdef classpath not reolved
> -----------------------------
>
> Key: MANTRUN-84
> URL: http://jira.codehaus.org/browse/MANTRUN-84
> Project: Maven 2.x Antrun Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: Maven version: 2.0.7
> Java version: 1.6.0_05
> OS name: "windows xp" version: "5.1" arch: "x86"
> Apache Ant version 1.7.0 compiled on December 13 2006
> Reporter: Daniel Frey
> Attachments: test.zip
>
>
> Trying to run an antrun tast ReplaceRegExp that relies on ant-optional and a regular expression parser using Java 1.6. I have included a ZIP with the relevant files for a testcase as follows:
> 0. Running with JDK 1.6 and Maven 2.0.7
> 1. The pom.xml contains an antrun task that tries to replace some values in a given file.
> 2. Running the test with "mvn package" fails with the error "No supported regular expression matcher found".
> 3. Decommenting the property line in pom.xml does lead to another error "ClassNotFoundException: org.apache.tools.ant.util.regexp.JakartaOroRegexp"
> On the other hand running the same task in ant 1.7 runs perfectly (as long as the property line is not decommented).
> Please try to reproduce the error.
> Thanks
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira