Hi, running mvn compile invokes maven's style of compilation which results in creating maven's directory structure as target/classes etc...im ok to have my pjt to follow the structure...but, i need my war file to get deployed directly in my app-server...for which im using ant build scripts...however,maven's install does it in local_repository... if maven cannot invoke ant's build script, what is the purpose of the plugin antrun:run??? 'compile' is the phase under which im trying the goal 'run'...i tried a simple project....say, Sample...under sample i have pom.xml and build.xml...my build script echoes 'hello world'... my pom.xml follows as <build> <plugins> <plugin> <executions> <execution> <phase>compile</phase> <configuration> <tasks> <ant inherit='true' antfile="build.xml" target='prepare'/> </tasks> </confiiguration> <goals> <goal>run</goal> </goals> </execution> </execution> </plugin> </plugins> </build>
My build.xml is as follows <target name='prepare'> <echo>Hello world</echo> </target> Running mvn antrun:run from project's root directory gives the o/p as build successful...but, it is not running my build script...my echo is not seen in output.... any one could really help me on how to execute ant's build script with maven??? Thanks in advance Chandrika -- View this message in context: http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4621068 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]