Start gant from maven pom.xml

By neokrates, written on June 1, 2010

gant   snippet

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 10 views
Rate it
Ad
Poll
  • Would you buy digitally protected media or software?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

Software:

✔ Java 1.5 or higher

✔ 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>
Be Sociable, Share!
 
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
SOCIAL
Be Sociable, Share!

Leave a Reply