Statistics
| Revision:

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

History | View | Annotate | Download (2.92 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

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

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