Hi Siegfried,

In fact I use only regexp mapper.

I found a solution by adding these following dependencies :

<plugin>
   <artifactId>maven-antrun-plugin</artifactId>
   ...  
   <dependencies>
     <dependency>
       <groupId>ant</groupId>
       <artifactId>ant-apache-regexp</artifactId>
       <version>1.6.5</version>
     </dependency>
       <groupId>jakarta-regexp</groupId>
       <artifactId>jakarta-regexp>/artifactId>
       <version>1.4</version>
     </dependency>
   </dependencies>
</plugin>


This work correctly. I haven't test your solution yet but if the ant-no-deps 
artifact has these both jars it will work !

Thank you for your response !

Elid



-----Original Message-----
From:   Siegfried Goeschl [mailto:[EMAIL PROTECTED]
Sent:   Wed 10/25/2006 2:07 PM
To:     Maven Users List
Cc:     
Subject:        Re: [m2/ant] How to add jar to Ant root classpath with AntRun 
plugin ?

Hi Elid,

the message "no supported regular expression matcher found" is my all 
time favourite regarding Maven2 ... :-)

+) what type of regexp engine your would like to use - JDK, oro or 
regexp - you probably don't need three of them

+) you definitely need "ant-nodeps" in your dependencies, e.g

<plugin>
   <artifactId>maven-antrun-plugin</artifactId>
   ...  
   <dependencies>
     <dependency>
       <groupId>ant</groupId>
       <artifactId>ant-nodeps</artifactId>
       <version>1.6.5</version>
     </dependency>
   </dependencies>
</plugin>

+) Thanks to Mark Struberg for finding that out ... :-)

Cheers,

Siegfried Goeschl

Elid OR wrote:
> Hi,
> 
> I would like to use "mapper regexp" with ant but we must add 
> ant-apache-jarkarta.jar and ant-apache-jarkata-oro into the ant classpath.
> 
> I'v tried to add them to the antrun plugin classpath like this :
> 
>         <plugin>
>            <groupId>org.apache.maven.plugins</groupId>
>            <artifactId>maven-antrun-plugin</artifactId>
>            <executions>
>               <execution>
>                  <id>ant-install</id>
>                  <phase>generate-sources/phase>
>                  <configuration>
>                     <tasks>
>                        <ant antfile="${basedir}/build.xml"="true">
>                           <target name="ejbdoclet"/>
>                        </ant>
>                     </tasks>
>                  </configuration>
>                  <goals>
>                     <goal>run</goal>
>                  </goals>
>               </execution>
>            </executions>
>            <dependencies>
>               <dependency>
>                 <groupId>ant</groupId>
>                 <artifactId>ant-apache-regexp</artifactId>
>                 <version>1.6.5</version>
>               </dependency>
>               <dependency>
>                 <groupId>ant</groupId>
>                 <artifactId>ant-apache-oro</artifactId>
>                 <version>1.6.5</version>
>               </dependency>
>            </dependencies>
>         </plugin>
> 
> But this doesn't work.
> 
> When I run I'm get the following ant error "no supported regular expression 
> matcher found".
> 
> Thanks.
> 
> 
> 
> ---------------------------------------------------------------------
> 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]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to