Statistics
| Revision:

root / branches / v2_0_0_prep / build / projects / gvsig-standard / gvsig-standard-installer / pom.xml @ 38252

History | View | Annotate | Download (4.93 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
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
    <parent>
9
        <artifactId>gvsig-standard</artifactId>
10
        <groupId>org.gvsig</groupId>
11
        <version>2.0-SNAPSHOT</version>
12
    </parent>
13
    <groupId>org.gvsig</groupId>
14
    <artifactId>gvsig-standard-installer</artifactId>
15
    <version>2.0-SNAPSHOT</version>
16
    <name>gvsig-standard-installer</name>
17
    <packaging>pom</packaging>
18
    <profiles>
19
        <profile>
20
            <id>create-installer</id>
21
            <properties>
22
                <install.build.dir>${project.build.directory}/installjammer</install.build.dir>
23
                <!-- You can set those properties in a profile in your settings.xml 
24
                    file to change the default location -->
25
                <gvsig.install.dir>${basedir}/../../../product</gvsig.install.dir>
26
                <gvsig.native.base.libs.dir>${user.home}/.depman</gvsig.native.base.libs.dir>
27
                <gvsig.native.lini386.libs.dir>${user.home}/.depman/lib</gvsig.native.lini386.libs.dir>
28
                <gvsig.native.wini386.libs.dir>${user.home}/.depman/bin</gvsig.native.wini386.libs.dir>
29
                <appgvsig.install.dir>${gvsig.install.dir}/gvSIG/extensiones/org.gvsig.app</appgvsig.install.dir>
30
            </properties>
31
            <build>
32
                <plugins>
33
                    <plugin>
34
                        <groupId>org.codehaus.mojo</groupId>
35
                        <artifactId>properties-maven-plugin</artifactId>
36
                        <executions>
37
                            <execution>
38
                                <phase>install</phase>
39
                                <goals>
40
                                    <goal>read-project-properties</goal>
41
                                </goals>
42
                                <configuration>
43
                                    <files>
44
                                        <file>${appgvsig.install.dir}/package.info</file>
45
                                    </files>
46
                                </configuration>
47
                            </execution>
48
                        </executions>
49
                    </plugin>
50
                    <plugin>
51
                        <groupId>org.codehaus.mojo</groupId>
52
                        <artifactId>exec-maven-plugin</artifactId>
53
                        <executions>
54
                            <execution>
55
                                <phase>install</phase>
56
                                <goals>
57
                                    <goal>exec</goal>
58
                                </goals>
59
                                <configuration>
60
                                    <!-- Tested with InstallJammer 1.2.15b1 -->
61
                                    <executable>installjammer</executable>
62
                                    <arguments>
63
                                        <argument>--output-dir</argument><argument>${install.build.dir}/output</argument>
64
                                        <!--argument>-DBaseDir ${basedir}/../../product</argument -->
65
                                        <argument>-DBaseDir</argument><argument>${gvsig.install.dir}</argument>
66
                                        <argument>-DBaseNativeLibsDir</argument><argument>${gvsig.native.base.libs.dir}</argument>
67
                                        <argument>-DLini386NativeLibsDir</argument><argument>${gvsig.native.lini386.libs.dir}</argument>
68
                                        <argument>-DWini386NativeLibsDir</argument><argument>${gvsig.native.wini386.libs.dir}</argument>
69
                                        <argument>-DInstallVersion</argument><argument>${gvSIG-version}.${buildNumber}</argument>
70
                                        <argument>-DVersion</argument><argument>${gvSIG-version}</argument>
71
                                        <argument>-DDevelState</argument><argument>${state}</argument>
72
                                        <argument>--build-for-release</argument>
73
                                        <argument>--build-dir</argument><argument>${install.build.dir}</argument>
74
                                        <argument>--build-log-file</argument><argument>${project.build.directory}/build.log</argument>
75
                                        <argument>--verbose</argument>
76
                                        <argument>--build</argument>
77
                                        <argument>${basedir}/src/main/installjammer/${project.artifactId}.mpi</argument>
78
                                    </arguments>
79
                                </configuration>
80
                            </execution>
81
                        </executions>
82
                    </plugin>
83
                </plugins>
84
            </build>
85
        </profile>
86
    </profiles>
87
</project>