svn-gvsig-desktop / tags / v2_0_0_Build_2003 / build / extension-pom / pom.xml @ 40245
History | View | Annotate | Download (5.44 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>2.0-SNAPSHOT</version> |
8 |
<name>extension-base-pom</name> |
9 |
<parent>
|
10 |
<groupId>org.gvsig</groupId> |
11 |
<artifactId>gvsig-basepoms</artifactId> |
12 |
<version>2.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>org.slf4j</groupId> |
26 |
<artifactId>slf4j-api</artifactId> |
27 |
<version>1.5.5</version> |
28 |
</dependency>
|
29 |
<dependency>
|
30 |
<groupId>org.slf4j</groupId> |
31 |
<artifactId>slf4j-log4j12</artifactId> |
32 |
<version>1.5.5</version> |
33 |
<scope>test</scope> |
34 |
</dependency>
|
35 |
</dependencies>
|
36 |
<properties>
|
37 |
<config>config</config> |
38 |
<plugin-name> ${project.groupId}.${project.artifactId}</plugin-name> |
39 |
<temporaly-build> ${project.build.directory}/${plugin-name}
|
40 |
</temporaly-build>
|
41 |
<extension-lib-dir> ${extension-dir}/${plugin-name}/lib
|
42 |
</extension-lib-dir>
|
43 |
<build-dir>${basedir}/..</build-dir> |
44 |
<extension-ant-base-dir> ${build-dir}/extension-pom
|
45 |
</extension-ant-base-dir>
|
46 |
<extension-distribution-file>dist.xml</extension-distribution-file> |
47 |
<library-dir>lib</library-dir> |
48 |
</properties>
|
49 |
<profiles>
|
50 |
<profile>
|
51 |
<id>install-extension</id> |
52 |
<activation>
|
53 |
<property>
|
54 |
<name>install-extension</name> |
55 |
</property>
|
56 |
</activation>
|
57 |
<build>
|
58 |
<plugins>
|
59 |
<plugin>
|
60 |
<artifactId>maven-assembly-plugin
|
61 |
</artifactId>
|
62 |
<configuration>
|
63 |
<descriptors>
|
64 |
<descriptor> ${extension-distribution-file}</descriptor> |
65 |
</descriptors>
|
66 |
<outputDirectory> ${extension-distribution-output-directory}
|
67 |
</outputDirectory>
|
68 |
<finalName> ${distribution-final-name}</finalName> |
69 |
<appendAssemblyId>true</appendAssemblyId> |
70 |
<ignoreDirFormatExtensions> true</ignoreDirFormatExtensions> |
71 |
</configuration>
|
72 |
<executions>
|
73 |
<execution>
|
74 |
<id>make-assembly</id> |
75 |
<!--
|
76 |
this is used for inheritance merges
|
77 |
-->
|
78 |
<phase>package</phase> |
79 |
<!--
|
80 |
append to the packaging phase.
|
81 |
-->
|
82 |
<goals>
|
83 |
<goal>attached</goal><!-- goals == mojos --> |
84 |
</goals>
|
85 |
</execution>
|
86 |
</executions>
|
87 |
</plugin>
|
88 |
<plugin>
|
89 |
<artifactId>maven-antrun-plugin</artifactId> |
90 |
<executions>
|
91 |
<execution>
|
92 |
<id>copy-to-andami</id> |
93 |
<phase>install</phase> |
94 |
<configuration>
|
95 |
<tasks>
|
96 |
<property name="project.build.directory" value="${project.build.directory}" /> |
97 |
<property name="project.artifactId" value="${project.artifactId}" /> |
98 |
<property name="project.version" value="${project.version}" /> |
99 |
<property name="project.packaging" value="${project.packaging}" /> |
100 |
<property name="temporaly-build" value="${temporaly-build}" /> |
101 |
<property name="plugin-name" value="${plugin-name}" /> |
102 |
<property name="config" value="${config}" /> |
103 |
<property name="extension-dir" value="${extension-dir}" /> |
104 |
<property name="library-dir" value="${library-dir}" /> |
105 |
<property name="distribution-final-name" value="${distribution-final-name}" /> |
106 |
<ant antfile="${extension-ant-base-dir}/build.xml" |
107 |
inheritRefs="true" /> |
108 |
</tasks>
|
109 |
</configuration>
|
110 |
<goals>
|
111 |
<goal>run</goal> |
112 |
</goals>
|
113 |
</execution>
|
114 |
</executions>
|
115 |
</plugin>
|
116 |
</plugins>
|
117 |
</build>
|
118 |
</profile>
|
119 |
<profile>
|
120 |
<id>generate-installers</id> |
121 |
<activation>
|
122 |
<property>
|
123 |
<name>generate-install</name> |
124 |
</property>
|
125 |
</activation>
|
126 |
<build>
|
127 |
<plugins>
|
128 |
<plugin>
|
129 |
<artifactId>maven-assembly-plugin</artifactId> |
130 |
<configuration>
|
131 |
<descriptors>
|
132 |
<descriptor>
|
133 |
${distribution-win32-descriptor} |
134 |
</descriptor>
|
135 |
<descriptor>
|
136 |
${distribution-linux32-descriptor} |
137 |
</descriptor>
|
138 |
<!-- descriptor>
|
139 |
${distribution-mac-descriptor
|
140 |
</descriptor-->
|
141 |
<!--descriptor>
|
142 |
/distribution/source-distribution.xml
|
143 |
</descriptor-->
|
144 |
</descriptors>
|
145 |
<outputDirectory>
|
146 |
${distribution-output-directory} |
147 |
</outputDirectory>
|
148 |
<finalName>
|
149 |
${distribution-final-name} |
150 |
</finalName>
|
151 |
<appendAssemblyId>true</appendAssemblyId> |
152 |
<ignoreDirFormatExtensions>
|
153 |
true |
154 |
</ignoreDirFormatExtensions>
|
155 |
</configuration>
|
156 |
<executions>
|
157 |
<execution>
|
158 |
<id>make-assembly</id><!-- this is used for inheritance merges --> |
159 |
<phase>package</phase><!-- append to the packaging phase. --> |
160 |
<goals>
|
161 |
<goal>attached</goal><!-- goals == mojos --> |
162 |
</goals>
|
163 |
</execution>
|
164 |
</executions>
|
165 |
</plugin>
|
166 |
</plugins>
|
167 |
</build>
|
168 |
</profile>
|
169 |
</profiles>
|
170 |
</project>
|