Hi,

You need to set a dependency within the plugin, as in

<plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-antrun-plugin</artifactId>
       <dependencies>
<dependency>
           <groupId>ant</groupId>
           <artifactId>ant-trax</artifactId>
           <version>1.6.5</version>
         </dependency>

       <executions>
         .....

Martin.


Will Heger wrote:

I've crisscrossed the archives regarding the ant xslt task.  At onetime it
was necessary to use...
${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apac
he.xalan.processor.TransformerFactoryImpl')}

...there was even an FAQ entry about it.  But I cannot get my xslt tasks
running in M2 and I'm wondering if anyone has a pom.xml example.  I've begun
to pile-in ant dependencies: ant-trax, ant-xslp, etc.  Is this a dependency
issue?

Current error (with trax set as processor):
Embedded error: The following error occurred while executing this line:
C:\development\decoder\src\main\resources\build.xml:6:java.lang.ClassNotFoun
dException:org.apache.tools.ant.taskdefs.optional.TraXLiaison

Error w/o trax set as processor:
    [xslt] DEPRECATED - xalan processor is deprecated. Use trax instead.
    [xslt] DEPRECATED - xslp processor is deprecated. Use trax instead.


build bit from pom.xml:
 <build>
   <plugins>
     <plugin>
       <artifactId>maven-antrun-plugin</artifactId>
       <executions>
         <execution>
           <phase>generate-sources</phase>
           <configuration>
             <tasks>
                    <ant dir="${basedir}/src/main/resources/"/>
             </tasks>
           </configuration>
           <goals>
             <goal>run</goal>
           </goals>
         </execution>
       </executions>
     </plugin>
   </plugins>
 </build>

build file:
<project name="decoder" default="scheme" basedir=".">

 <target name="scheme">
   <!-- SchemeData source files -->
   <xslt basedir="schemes" destdir="schemes" extension=".java"
style="scheme-data.xsl" processor="trax"/>
   <!-- SchemeLibrary source file -->
   <xslt in="scheme-library.xml" out="SchemeLibrary.java"
style="scheme-library.xsl" processor="trax"/>
 </target>

</project>


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





--
Groeten,

   Martin

mailto:[EMAIL PROTECTED]
tel: +31 (0) 20-7988464
mob: +31 (0) 6-21551921



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

Reply via email to