Statistics
| Revision:

root / branches / v2_0_0_prep / org.gvsig.maven.base / org.gvsig.maven.base.jni.pom / pom.xml @ 32058

History | View | Annotate | Download (3.11 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"
4
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
6

    
7
        <modelVersion>4.0.0</modelVersion>
8
        <groupId>org.gvsig</groupId>
9
        <artifactId>org.gvsig.maven.base.jni.pom</artifactId>
10
        <packaging>pom</packaging>
11
        <version>2.0-SNAPSHOT</version>
12
        <name>org.gvsig.maven.base.jni.pom</name>
13
        <parent>
14
                <groupId>org.gvsig</groupId>
15
                <artifactId>org.gvsig.maven.base.pom</artifactId>
16
                <version>2.0-SNAPSHOT</version>
17
        </parent>        
18
        <distributionManagement>
19
                <site>
20
                        <id>gvsig-repository</id>
21
                        <url>${site-repository}/</url>
22
                </site>
23
        </distributionManagement>
24

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