On Mon, 29 May 2006, Chandrika wrote:

Hi,

First, you've got a typo in the </configuration> tag ('confiiguration')
so I doubt you're getting a 'build successful'.

Next, you're missing the plugin definition; you need
<artifactId>maven-antrun-plugin</artifactId> in the <plugin> tag.

Finally, I assume your pom.xml contains a <project> tag
around the <build> tag, and your build.xml contains a <project> tag around the
<target> tag?

If all the above are fixed, then it should work just fine.
My guess is that you've hand-modified your original pom and build.xml in
pasting to this E-Mail, so something else might be wrong.

-- Kenney

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

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

Reply via email to