Statistics
| Revision:

gvsig-tools / org.gvsig.maven.base / trunk / org.gvsig.maven.base / org.gvsig.maven.base.jni.pom / pom.xml @ 786

History | View | Annotate | Download (2.8 KB)

1
<?xml version="1.0" encoding="ISO-8859-1"?>
2

    
3
<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/xsd/maven-4.0.0.xsd">
4
        <modelVersion>4.0.0</modelVersion>
5
        <artifactId>org.gvsig.maven.base.jni.pom</artifactId>
6
        <packaging>pom</packaging>
7
        <name>org.gvsig.maven.base.jni.pom</name>
8
        <parent>
9
                <groupId>org.gvsig</groupId>
10
                <artifactId>org.gvsig.maven.base.pom</artifactId>
11
                <version>1.0.9-SNAPSHOT</version>
12
        </parent>        
13
                
14
        <description>
15
                Base POM for all JNI projects. This pom knows how to
16
                build and made an native libraries for GvSIG.
17
        </description>
18
        <profiles>
19
                <profile>
20
                        <id>jni-devel</id>
21
                        <activation>
22
                                <property>
23
                                        <name>jni-devel</name>
24
                                </property>
25
                        </activation>
26
                        <properties>
27
                                <compileTarget>native</compileTarget>
28
                                <numProc>2</numProc>
29
                                <depman-ant>${base.tools.path}/ant/depman-ant.xml</depman-ant>
30
                        </properties>
31
                        <build>
32
                                <plugins>
33
                                        <plugin>
34
                                                <groupId>org.apache.maven.plugins</groupId>
35
                                                <artifactId>maven-antrun-plugin</artifactId>
36
                                                <executions>
37
                                                        <execution>
38
                                                                <id>compile-native</id>
39
                                                                <phase>compile</phase>
40
                                                                <configuration>
41
                                                                        <tasks>
42
                                                                                <property name="numProc" value="${numProc}" />
43
                                                                                <property name="project.build.directory" value="${project.build.directory}" />
44
                                                                                <ant antfile="${depman-ant}" target="${compileTarget}" />
45
                                                                        </tasks>
46
                                                                </configuration>
47
                                                                <goals>
48
                                                                        <goal>run</goal>
49
                                                                </goals>
50
                                                        </execution>
51
                                                        <execution>
52
                                                                <id>native-eclipse</id>
53
                                                                <phase>generate-sources</phase>
54
                                                                <configuration>
55
                                                                        <tasks>
56
                                                                                <property name="numProc" value="${numProc}" />
57
                                                                                <property name="project.build.directory" value="${project.build.directory}" />
58
                                                                                <ant antfile="${depman-ant}" target="${compileTarget}-eclipse" />
59
                                                                        </tasks>
60
                                                                </configuration>
61
                                                                <goals>
62
                                                                        <goal>run</goal>
63
                                                                </goals>
64
                                                        </execution>
65
                                                </executions>
66
                                        </plugin>
67
                                        <plugin>
68
                                                <artifactId>maven-assembly-plugin
69
                                                </artifactId>
70
                                                <configuration>
71
                                                        <descriptors>
72
                                                                <descriptor>${base.tools.path}/assembly/native.xml</descriptor>
73
                                                        </descriptors>
74
                                                        <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
75
                                                </configuration>
76
                                                <executions>
77
                                                        <execution>
78
                                                                <id>package-native</id>
79
                                                                <!--
80
                                                                        this is used for inheritance merges
81
                                                                -->
82
                                                                <phase>package</phase>
83
                                                                <!--
84
                                                                        append to the packaging phase.
85
                                                                -->
86
                                                                <goals>
87
                                                                        <goal>attached</goal><!-- goals == mojos -->
88
                                                                </goals>
89
                                                        </execution>
90
                                                </executions>
91
                                        </plugin>
92
                                </plugins>
93
                        </build>
94
                </profile>
95
        </profiles>
96
</project>