Start gant from maven pom.xml

By neokrates, written on June 1, 2010

gant   snippet

Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
Ad
Poll
  • Which virtualization is used on your Enterprise?

    • We don't use virtulization (90%, 9 Votes)
    • VM Ware (10%, 1 Votes)
    • Virtual Box (0%, 0 Votes)
    • Parallels (0%, 0 Votes)
    • coLinux (0%, 0 Votes)
    • Xen (0%, 0 Votes)
    • OpenVZ (0%, 0 Votes)
    • Something else (0%, 0 Votes)

    Total Voters: 10

    Vote

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

Software:

[v] Java 1.5 or higher
[v] Maven 2.1.*

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<project xmlns="http://maven.apache.org/POM/4.0.0"; 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">;
  <modelVersion>4.0.0</modelVersion>
  <groupId>my.group</groupId>
  <artifactId>my.id</artifactId>
  <name>Build with gant from maven</name>
  <version>1.1-SNAPSHOT</version>
 
<build>
<plugins>
<plugin> 
<artifactId>maven-antrun-plugin</artifactId> 
<version>1.3</version> 
<executions> 
<execution> 
<id>start-runme-task-with-gant</id> 
<phase>pre-integration-test</phase> 
<configuration> 
<tasks> 
<taskdef name="gant" classname="org.codehaus.gant.ant.Gant" /> 
       <gant file="build.gant" target="runme"> 
<definition name="myProperty" value="${myValue}" /> 
</gant> 
</tasks> 
</configuration> 
<goals> 
<goal>run</goal> 
</goals> 
</execution> 
</executions> 
<dependencies> 
<dependency> 
<groupId>org.codehaus.gant</groupId> 
<artifactId>gant_groovy1.7</artifactId> 
<version>1.9.0</version> 
</dependency> 
<dependency> 
<groupId>org.codehaus.groovy</groupId> 
<artifactId>groovy-all</artifactId> 
<version>1.7.0</version> 
</dependency> 
</dependencies> 
</plugin>
</plugins>
</build> 
</project>
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)
0 votes 'YES'  0 votes 'NO'
TAGS
No tags for this post.
RELATED
Pages
Posts
    nope :(
SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

Leave a Reply