On Mon, 29 May 2006, Chandrika wrote: > > hi....as u expect i had hand modified it....i have the proper typo and > <artifactId> in my pom....there are no syntax/typo or missing tag > errors...but, let me know invoking antrun really runs the build.xml???? > also, is there any other tasks that i can try for debugging the problem? or > any other goal i can try to run...could u give a simple example that invokes > the antrun plugin???
Sure.. pom.xml: ----------- <project xmlns="http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>testing</groupId> <artifactId>testantrun</artifactId> <packaging>war</packaging> <version>0.1-SNAPSHOT</version> <name>TestAntRun</name> <build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>compile</phase> <configuration> <tasks> <echo message="Hello world from pom.xml!"/> <ant antfile="build.xml" target="test" inheritAll="true"> <property name="warFile" value="${project.build.directory}/${project.build.finalName}.war"/> </ant> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> ---------- build.xml: ------------ <project name="Test"> <target name="test"> <echo>Hello world, from build.xml file! (warFile: ${warFile})</echo> </target> </project> ------------ Output from 'mvn compile': [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building TestAntRun [INFO] task-segment: [compile] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [echo] Hello world from pom.xml! test: [echo] Hello world, from build.xml file! (warFile: /vol/home/forge/work/sandbox/m2test/antrun/test/target/testantrun-0.1-SNAPSHOT.war) [INFO] Executed tasks [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Tue May 30 07:39:35 CEST 2006 [INFO] Final Memory: 4M/7M [INFO] ------------------------------------------------------------------------ but if I were you i'd link the ant task to the 'package' phase, so it can operate on the .war file. -- Kenney > > Thanks > Chandrika > -- > View this message in context: > http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4621311 > Sent from the Maven - Users forum at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]