Florian, let me know if this example pom helps? This pom ================
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance> " xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 <http://maven.apache.org/POM/4.0.0> http://maven.apache.org/maven-v4_0_0.xsd <http://maven.apache.org/maven-v4_0_0.xsd> "> <modelVersion>4.0.0</modelVersion> <groupId>maven-scratch</groupId> <artifactId>maven-scratch</artifactId> <packaging>pom</packaging> <version>0.0.1</version> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>foobar</id> <phase>validate</phase> <configuration> <tasks> <property name="compile_classpath" refid="maven.compile.classpath" /> <property name="runtime_classpath" refid="maven.runtime.classpath" /> <property name="test_classpath" refid="maven.test.classpath" /> <property name="plugin_classpath" refid="maven.plugin.classpath" /> <script language="javascript"> <![CDATA[ echo = project.createTask("echo"); echo.setMessage(compile_classpath); echo.perform(); echo = project.createTask("echo"); echo.setMessage(runtime_classpath); echo.perform(); echo = project.createTask("echo"); echo.setMessage(test_classpath); echo.perform(); echo = project.createTask("echo"); echo.setMessage(plugin_classpath); echo.perform(); ]]> </script> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>ant</groupId> <artifactId>ant-apache-bsf</artifactId> <version>1.6.5</version> </dependency> <dependency> <groupId>bsf</groupId> <artifactId>bsf</artifactId> <version>2.4.0</version> </dependency> <dependency> <groupId>rhino</groupId> <artifactId>js</artifactId> <version>1.6R6</version> </dependency> </dependencies> </plugin> </plugins> </build> </project> Yields: ================ C:\Workspaces\Maven\maven-scratch>mvn validate [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ ---- [INFO] Building Unnamed - maven-scratch:maven-scratch:pom:0.0.1 [INFO] task-segment: [validate] [INFO] ------------------------------------------------------------------------ ---- [INFO] [antrun:run {execution: foobar}] [echo] C:\Workspaces\Maven\maven-scratch\target\classes [echo] C:\Workspaces\Maven\maven-scratch\target\classes [echo] C:\Workspaces\Maven\maven-scratch\target\classes;C:\Workspaces\Maven\mav en-scratch\target\test-classes [echo] C:\Documents and Settings\ABCXYZ\.m2\repository\ant\ant-launcher\1.6.5\ant-launcher-1.6.5 .jar;C:\Documents an d Settings\ABCXYZ\.m2\repository\ant\ant-apache-bsf\1.6.5\ant-apache-bsf-1 .6.5.jar;C:\Documents and Settings\ABCXYZ\.m2\ repository\ant\ant\1.6.5\ant-1.6.5.jar;C:\Documents and Settings\ABCXYZ\.m2\repository\org\codehaus\plexus\plexus-utils\1 .1\plexus-utils-1.1.jar;C:\Documents and Settings\ABCXYZ\.m2\repository\rhino\js\1.6R6\js-1.6R6.jar;C:\Documents and Sett ings\ABCXYZ\.m2\repository\org\apache\maven\shared\maven-ant\1.0-SNAPSHO T\maven-ant-1.0-SNAPSHOT.jar;C:\Documents and Set tings\ABCXYZ\.m2\repository\commons-logging\commons-logging\1.0.4\common s-logging-1.0.4.jar;C:\Documents and Settings\CP6 5214\.m2\repository\bsf\bsf\2.4.0\bsf-2.4.0.jar;C:\ASF\maven-2.0.7\lib\m aven-core-2.0.7-uber.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 seconds [INFO] Finished at: Mon Aug 20 12:44:10 EDT 2007 [INFO] Final Memory: 3M/11M [INFO] ------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
