Statistics
| Revision:

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

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