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