root / branches / v2_0_0_prep / build / extension-pom / pom.xml @ 23397
History | View | Annotate | Download (5.23 KB)
1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|---|
2 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
3 |
<modelVersion>4.0.0</modelVersion> |
4 |
<groupId>org.gvsig</groupId> |
5 |
<artifactId>gvsig-extension-base-pom</artifactId> |
6 |
<packaging>pom</packaging> |
7 |
<version>1.0-SNAPSHOT</version> |
8 |
<name>extension-base-pom</name> |
9 |
<parent>
|
10 |
<groupId>org.gvsig</groupId> |
11 |
<artifactId>gvsig-basepoms</artifactId> |
12 |
<version>1.0-SNAPSHOT</version> |
13 |
</parent>
|
14 |
<description> Base POM for all GvSIG extension projects. This pom knows
|
15 |
how to build and made an extension for GvSIG. The property |
16 |
"gvsig-path" must be set up correctly.</description>
|
17 |
<dependencies>
|
18 |
<dependency>
|
19 |
<groupId>junit</groupId> |
20 |
<artifactId>junit</artifactId> |
21 |
<version>3.8.1</version> |
22 |
<scope>test</scope> |
23 |
</dependency>
|
24 |
<dependency>
|
25 |
<groupId>log4j</groupId> |
26 |
<artifactId>log4j</artifactId> |
27 |
<version>1.2.8</version> |
28 |
</dependency>
|
29 |
</dependencies>
|
30 |
<properties>
|
31 |
<config>config</config> |
32 |
<plugin-name> ${project.groupId}.${project.artifactId}</plugin-name> |
33 |
<temporaly-build> ${project.build.directory}/${plugin-name}
|
34 |
</temporaly-build>
|
35 |
<extension-lib-dir> ${extension-dir}/${plugin-name}/lib
|
36 |
</extension-lib-dir>
|
37 |
<build-dir>${basedir}/..</build-dir> |
38 |
<extension-ant-base-dir> ${build-dir}/extension-pom
|
39 |
</extension-ant-base-dir>
|
40 |
<extension-distribution-file>dist.xml</extension-distribution-file> |
41 |
<library-dir>lib</library-dir> |
42 |
</properties>
|
43 |
<profiles>
|
44 |
<profile>
|
45 |
<id>install-extension</id> |
46 |
<activation>
|
47 |
<property>
|
48 |
<name>install-extension</name> |
49 |
</property>
|
50 |
</activation>
|
51 |
<build>
|
52 |
<plugins>
|
53 |
<plugin>
|
54 |
<artifactId>maven-assembly-plugin
|
55 |
</artifactId>
|
56 |
<configuration>
|
57 |
<descriptors>
|
58 |
<descriptor> ${extension-distribution-file}</descriptor> |
59 |
</descriptors>
|
60 |
<outputDirectory> ${extension-distribution-output-directory}
|
61 |
</outputDirectory>
|
62 |
<finalName> ${distribution-final-name}</finalName> |
63 |
<appendAssemblyId>true</appendAssemblyId> |
64 |
<ignoreDirFormatExtensions> true</ignoreDirFormatExtensions> |
65 |
</configuration>
|
66 |
<executions>
|
67 |
<execution>
|
68 |
<id>make-assembly</id> |
69 |
<!--
|
70 |
this is used for inheritance merges
|
71 |
-->
|
72 |
<phase>package</phase> |
73 |
<!--
|
74 |
append to the packaging phase.
|
75 |
-->
|
76 |
<goals>
|
77 |
<goal>attached</goal><!-- goals == mojos --> |
78 |
</goals>
|
79 |
</execution>
|
80 |
</executions>
|
81 |
</plugin>
|
82 |
<plugin>
|
83 |
<artifactId>maven-antrun-plugin</artifactId> |
84 |
<executions>
|
85 |
<execution>
|
86 |
<id>copy-to-andami</id> |
87 |
<phase>install</phase> |
88 |
<configuration>
|
89 |
<tasks>
|
90 |
<property name="project.build.directory" value="${project.build.directory}" /> |
91 |
<property name="project.artifactId" value="${project.artifactId}" /> |
92 |
<property name="project.version" value="${project.version}" /> |
93 |
<property name="project.packaging" value="${project.packaging}" /> |
94 |
<property name="temporaly-build" value="${temporaly-build}" /> |
95 |
<property name="plugin-name" value="${plugin-name}" /> |
96 |
<property name="config" value="${config}" /> |
97 |
<property name="extension-dir" value="${extension-dir}" /> |
98 |
<property name="library-dir" value="${library-dir}" /> |
99 |
<property name="distribution-final-name" value="${distribution-final-name}" /> |
100 |
<ant antfile="${extension-ant-base-dir}/build.xml" |
101 |
inheritRefs="true" /> |
102 |
</tasks>
|
103 |
</configuration>
|
104 |
<goals>
|
105 |
<goal>run</goal> |
106 |
</goals>
|
107 |
</execution>
|
108 |
</executions>
|
109 |
</plugin>
|
110 |
</plugins>
|
111 |
</build>
|
112 |
</profile>
|
113 |
<profile>
|
114 |
<id>generate-installers</id> |
115 |
<activation>
|
116 |
<property>
|
117 |
<name>generate-install</name> |
118 |
</property>
|
119 |
</activation>
|
120 |
<build>
|
121 |
<plugins>
|
122 |
<plugin>
|
123 |
<artifactId>maven-assembly-plugin</artifactId> |
124 |
<configuration>
|
125 |
<descriptors>
|
126 |
<descriptor>
|
127 |
${distribution-win32-descriptor} |
128 |
</descriptor>
|
129 |
<descriptor>
|
130 |
${distribution-linux32-descriptor} |
131 |
</descriptor>
|
132 |
<!-- descriptor>
|
133 |
${distribution-mac-descriptor
|
134 |
</descriptor-->
|
135 |
<!--descriptor>
|
136 |
/distribution/source-distribution.xml
|
137 |
</descriptor-->
|
138 |
</descriptors>
|
139 |
<outputDirectory>
|
140 |
${distribution-output-directory} |
141 |
</outputDirectory>
|
142 |
<finalName>
|
143 |
${distribution-final-name} |
144 |
</finalName>
|
145 |
<appendAssemblyId>true</appendAssemblyId> |
146 |
<ignoreDirFormatExtensions>
|
147 |
true |
148 |
</ignoreDirFormatExtensions>
|
149 |
</configuration>
|
150 |
<executions>
|
151 |
<execution>
|
152 |
<id>make-assembly</id><!-- this is used for inheritance merges --> |
153 |
<phase>package</phase><!-- append to the packaging phase. --> |
154 |
<goals>
|
155 |
<goal>attached</goal><!-- goals == mojos --> |
156 |
</goals>
|
157 |
</execution>
|
158 |
</executions>
|
159 |
</plugin>
|
160 |
</plugins>
|
161 |
</build>
|
162 |
</profile>
|
163 |
</profiles>
|
164 |
</project>
|