It seems like if I have one pom with modules that  also has an ant task, if one 
of the modules has an ant task, then the  parent's ant task doesn't notice 
dependencies (resulting in not being  able to recognize regular expressions, 
say).
  
  I stripped down to an example with one parent pom.xml with a build.xml, and 
one module pom.xml file with a build.xml file. 
  
  - pom.xml
  - build.xml
  + -- tmp
       |- pom.xml
       |- build.xml
  
  The parent uses an anttask that uses the regexp filter.  When I  mvn install, 
I get this on the execution of the parent's ant task.
  
  Embedded error: The following error occurred while executing this line:
  C:\Views\tmp\build.xml:56: Could not create type regexpmapper due to No 
supported regular exp
  ression matcher found
  
  HOWEVER, if I comment out the tmp module, all works fine.
  
  
  
  the parent pom.xml looks like:
  
      <packaging>pom</packaging>
      <modules>
           <module>tmp</module> 
      </modules> 
      <build>
  
          <plugins>
              <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                  <version>1.1</version>
                  <executions>
                      <execution>
                            <id>ant-install</id>
                            <phase>install</phase>
                            <configuration>
                                <tasks>
                                    <ant antfile="build.xml"  
inheritRefs="true">
                                        <target  name="test-reg"/>
                                    </ant>
                                </tasks>
                            </configuration>
                          <goals>
                                <goal>run</goal>
                          </goals>
                      </execution>
                  </executions>
          <dependencies>
              <dependency>
                  <groupId>regexp</groupId>
                  <artifactId>regexp</artifactId>
                  <version>1.3</version>
                  <scope>runtime</scope>
              </dependency>
          </dependencies>
  
              </plugin>
          </plugins>
      </build>
  
  the tmp module pom.xml looks like:
  
      <artifactId>tmp</artifactId>
      <packaging>jar</packaging>
      <version>1.0</version>
      
      <build>
          <plugins>
               <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
                  <version>1.1</version>
                   <executions>
                          <execution>
                            <phase>process-classes</phase>
                            <configuration>
                                  <tasks>                                       
      
                                    <ant target="test"  inheritRefs="true"
                                         antfile="build.xml"/>
                                  </tasks>
                            </configuration>
                            <goals>
                                  <goal>run</goal>
                            </goals>
                          </execution>
                  </executions>
              </plugin>
          </plugins>
          <resources>
              <resource>
                   <directory>src/main/resources</directory>
              </resource>
              <resource>
                    <directory>src/generated/resources</directory>
              </resource>
          </resources>
      </build>
      
      <dependencies>
          
          <dependency>
              <groupId>regexp</groupId>
              <artifactId>regexp</artifactId>
              <version>1.3</version>
              <scope>runtime</scope>
          </dependency>
      </dependencies>
    
  
  

                
---------------------------------
Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with voicemail 

Reply via email to