OK the IT test1 works, I now use it as a base to test if I can load antlr
task.  It fails not able to load antlr task
It seems like antrun is not able to find the entry into the antlr ant task.
Your help is greatly appreciated

here is the pom
============


<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.apache.maven.plugins.antrun</groupId>
  <artifactId>test1</artifactId>
  <version>1.0-SNAPSHOT</version>
  <name>Test for compile and plugin classpath references</name>
  <description>Ensure that maven.compile.classpath and
maven.plugin.classpath referencies are set</description>

  <dependencies>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.1</version>
        <executions>
          <execution>
            <id>compile</id>
            <phase>compile</phase>
            <configuration>
              <sourceRoot>target/generated/src/main/java</sourceRoot>
              <tasks>
                <path id="classpath">
                  <path refid="maven.compile.classpath"/>
                  <path refid="maven.plugin.classpath"/>
                </path>
                <ant antfile="${basedir}/build.xml" inheritRefs="true">
                  <target name="test"/>
                </ant>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>

          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>ant</groupId>
            <artifactId>ant-nodeps</artifactId>
            <version>1.6.5</version>
          </dependency>
          <dependency>
            <groupId>antlr</groupId>
            <artifactId>antlrall</artifactId>
            <version>2.7.4</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>

</project>

Here is build.xml

=============

<?xml version="1.0"?>
<project name="test1">

    <target name="test">

      <antlr target="${main.dir}/org/exolab/jms/selector/parser/Selector.g"
           outputdirectory="${parser.dir}">
        <classpath refid="classpath"/>
      </antlr>


    </target>

</project>



-D




On 1/5/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
>
> Check the src/it/test1 in the plugin sources, that works for me.
> BTW antlr 2.7.4 jar is not in the repo
>
>
> On 1/5/06, dan tran <[EMAIL PROTECTED]> wrote:
> > Yes I am using 1.1 plugin
> >
> > -D
> >
> >
> > On 1/5/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > >
> > > Are you using the 1.1 plugin?
> > >
> > > On 1/4/06, dan tran <[EMAIL PROTECTED]> wrote:
> > > > ok, have my plugin's configuration as
> > > >
> > > >
> > > >             <configuration>
> > > >               <tasks>
> > > >                  <ant inheritRefs="true">
> > > >                    <property name="build.dir" value="${
> > > > project.build.directory}"/>
> > > >                  </ant>
> > > >               </tasks>
> > > >             </configuration
> > > >
> > > > and have my build.xml to reference maven.plugin.classpath, but got
> error
> > > >
> > > > Embedded error: The following error occurred while executing this
> line:
> > > > M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:249: The
> > > > following er
> > > > ror occurred while executing this line:
> > > > M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:279:
> > > Reference
> > > > maven.
> > > > plugin.classpath not found.
> > > >
> > > >
> > > > Suggestion on how to trouble shoot this issue is greatly
> appreciated.
> > > >
> > > > -Dan
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On 1/4/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > You need to use the plugin classpath in your build.xml and call
> <ant>
> > > > > with inheritRefs="true"
> > > > >
> > > > > <classpath refid="maven.plugin.classpath"/>
> > > > >
> > > > > On 1/4/06, dan tran <[EMAIL PROTECTED]> wrote:
> > > > > > Folks,
> > > > > >
> > > > > > Here is my build :
> > > > > >
> > > > > >
> > > > > >       <plugin>
> > > > > >         <artifactId>maven-antrun-plugin</artifactId>
> > > > > >         <version>1.1-SNAPSHOT</version>
> > > > > >         <dependencies>
> > > > > >           <dependency>
> > > > > >             <groupId>ant</groupId>
> > > > > >             <artifactId>ant-nodeps</artifactId>
> > > > > >             <version>1.6.5</version>
> > > > > >           </dependency>
> > > > > >           <dependency>
> > > > > >             <groupId>antlr</groupId>
> > > > > >             <artifactId>antlr</artifactId>
> > > > > >             <version>2.7.4</version>
> > > > > >           </dependency>
> > > > > >         </dependencies>
> > > > > >
> > > > > >         <executions>
> > > > > >           <execution>
> > > > > >             <phase>compile</phase>
> > > > > >             <configuration>
> > > > > >               <tasks>
> > > > > >                  <ant>
> > > > > >                    <property name="build.dir" value="${
> > > > > > project.build.directory}"/>
> > > > > >                  </ant>
> > > > > >
> > > > > >               </tasks>
> > > > > >             </configuration>
> > > > > >             <goals>
> > > > > >               <goal>run</goal>
> > > > > >             </goals>
> > > > > >           </execution>
> > > > > >         </executions>
> > > > > >       </plugin>
> > > > > >
> > > > > >
> > > > > >
> > > > > > and antrun complains
> > > > > >
> > > > > > Embedded error: The following error occurred while executing
> this
> > > line:
> > > > > > M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:299:
> > > Could
> > > > > not
> > > > > > create
> > > > > >  task or type of type: antlr.
> > > > > >
> > > > > > Ant could not find the task or a class this task relies upon.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Any suggestions?
> > > > > >
> > > > > > 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