• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

maven calling an ant target

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried to call an ant target from maven after the install part of the life cycle using eclipse but am having little success. Does anybody have any example they could send.

I have tried to follow the maven example but does not work.
http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html

Cheers
Charlie
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
what exactly would you like to reach? Call an Ant Target inside an configured POM ? Or did i misunderstand something ? May be you can give a little output ? Error messages etc. ?
Kind regards
Karl Heinz Marbaise
 
Charles Simms
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct I just want maven to call the ant target “hello” after maven has called install in the life cycle.

I have created a simple plugin, trying to call my ant and mojos script, it is failiing to bind these to my POM and getting the error:

Maven cannot calculate your build plan, given the following information:
Tasks:

- install
Current project:
Group-Id: com.smart421.ppb
Artifact-Id: E-Commerce
Version: 1.0-SNAPSHOT
From file: C:\Projects\E-Commerce\pom.xml
Error message: Mojo: hello does not exist in plugin: org.apache.maven.plugins:maven-plugin-plugin:2.3.
Root error message: Mojo: hello does not exist in plugin: org.apache.maven.plugins:maven-plugin-plugin:2.3

Cheers
Charlie
 
Charles Simms
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is part of my pom file:

<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>hello</id>
<phase>install</phase>
<goals>
</goals>
<configuration><tasks>hello</tasks></configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>

It is not calling my ant target. Where should I put my ant script?

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic