Hi Dave, look to my peace of pom.xml and the file with the mvn command.
I have already tried put the jaxb-xjc.jar on the ANT_HOME\lib
directory.. But nothing.

        <build>
                <plugins>
                        <plugin>
        
<artifactId>maven-antrun-plugin</artifactId>
                                <version>1.1</version>
                                <executions>
                                        <execution>
        
<id>generate-sources</id>
        
<phase>generate-sources</phase>
                                                <configuration>
                                                        <tasks>
        
<property name="src.loc" value="./src" />
        
<property name="classpath-maven2" value="maven.dependency.classpath" />

                                                                <target
name="x">
        
<xjc
        
schema="${src.loc}/main/resources/TestScript.xsd"
        
target="src/main/java/"
        
package="com.avaya.automation.testscripts" />
        
</target>
                                                                
                                                                <taskdef
name = "xjc" classname="com.sun.tools.xjc.XJCTask" classpath refid=/>

                                                                <!--
another way, but calling the build.xml
        
<ant antfile="${basedir}/build.xml"
        
inheritRefs="true">
        
<target name="x" />
        
</ant>
                                                                -->
                                                        </tasks>
                                                </configuration>
                                                <goals>
                                                        <goal>run</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build> 

-----Original Message-----
From: Dave Syer [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 10:07 AM
To: [email protected]
Subject: RE: pom dependences on the antrun plugin




Melo, Alexandre (Alexandre) wrote:
> 
> No, I think the order is ok, if I inverte the order, look what is 
> happen..
> 

Hmm.  That's funny because I use this pattern quite a lot and I have had
issues, but they always went away when the taskdef was nested (this is
because otherwise Ant will try to create the target before the task is
defined, if they are at the same level).  Is your task definitely on the
classpath with the reference you used?

--
View this message in context:
http://www.nabble.com/pom-dependences-on-the-antrun-plugin-tf2822307s177
.html#a7928402
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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