]> git.argeo.org Git - lgpl/argeo-commons.git/blob - pom.xml
Add release profiles
[lgpl/argeo-commons.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <groupId>org.argeo</groupId>
7 <artifactId>parent</artifactId>
8 <version>1.2.0</version>
9 </parent>
10 <groupId>org.argeo.commons</groupId>
11 <artifactId>argeo-commons</artifactId>
12 <version>0.3.4-SNAPSHOT</version>
13 <name>Argeo Commons</name>
14 <description>Generic layers integrating free / open source technologies in order to quickly develop custom enterprise systems: security, JCR, user interface, monitoring</description>
15 <packaging>pom</packaging>
16 <properties>
17 <developmentCycle>0.3</developmentCycle>
18 <developmentCycle.startDate>2011-03-24</developmentCycle.startDate>
19 <version.argeo-distribution>1.1.7</version.argeo-distribution>
20 <version.argeo-commons>0.3.4-SNAPSHOT</version.argeo-commons>
21 <!-- distribution -->
22 <site.repoBase>file:///srv/projects/www/commons/site</site.repoBase>
23 <site.urlBase>http://projects.argeo.org/commons/site</site.urlBase>
24 <rpm.release>6</rpm.release>
25 <rpm.stagingRepository>/srv/rpmfactory/argeo-osgi-staging/6/x86_64</rpm.stagingRepository>
26 <!-- encoding, see http://is.gd/mvn_source_encoding -->
27 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
28 </properties>
29 <modules>
30 <module>basic</module>
31 <module>osgi</module>
32 <module>server</module>
33 <module>eclipse</module>
34 <module>security</module>
35 <module>demo</module>
36 </modules>
37 <url>${site.urlBase}/${developmentCycle}</url>
38 <scm>
39 <connection>scm:svn:https://svn.argeo.org/commons/trunk</connection>
40 <developerConnection>scm:svn:https://svn.argeo.org/commons/trunk
41 </developerConnection>
42 <url>https://svn.argeo.org/commons/trunk</url>
43 </scm>
44 <inceptionYear>2007</inceptionYear>
45 <licenses>
46 <license>
47 <name>Apache 2</name>
48 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
49 <distribution>repo</distribution>
50 <comments><![CDATA[
51 Argeo Commons Enterprise Framework
52
53 Copyright 2011 Mathieu Baudier
54
55 Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
56 you may not use this file except in compliance with the License.
57 You may obtain a copy of the License at
58
59 http://www.apache.org/licenses/LICENSE-2.0
60
61 Unless required by applicable law or agreed to in writing, software
62 distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
63 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
64 See the License for the specific language governing permissions and
65 limitations under the License.
66 ]]>
67 </comments>
68 </license>
69 </licenses>
70 <developers>
71 <developer>
72 <id>mbaudier</id>
73 <name>Mathieu Baudier</name>
74 <email><![CDATA[http://mailhide.recaptcha.net/d?k=01EM7GpnvY3k8woQ2tnnZLUA==&c=crsNpHjhOBDPswHG6HD_gXaqymhC69wmBf7wlagcSHw=]]></email>
75 <organization>Argeo</organization>
76 <organizationUrl>http://www.argeo.org</organizationUrl>
77 <roles>
78 <role>architect</role>
79 <role>developer</role>
80 <role>QA</role>
81 </roles>
82 </developer>
83 <developer>
84 <id>bsinou</id>
85 <name>Bruno Sinou</name>
86 <email><![CDATA[http://www.google.com/recaptcha/mailhide/d?k=01SZoYvDnJzcw0KOR7M7u6Qg==&c=SVgEjXA_Uu9ZrNzLES92w1ght6puLFiVpoNUddCfSU8=]]></email>
87 <organization>Argeo</organization>
88 <organizationUrl>http://www.argeo.org</organizationUrl>
89 <roles>
90 <role>developer</role>
91 </roles>
92 </developer>
93 </developers>
94 <build>
95 <extensions>
96 <extension>
97 <groupId>org.apache.maven.wagon</groupId>
98 <artifactId>wagon-webdav-jackrabbit</artifactId>
99 <version>2.2</version>
100 </extension>
101 </extensions>
102 <pluginManagement>
103 <plugins>
104 <!-- Maven -->
105 <plugin>
106 <artifactId>maven-compiler-plugin</artifactId>
107 <version>2.3.2</version>
108 <configuration>
109 <source>1.6</source>
110 <target>1.6</target>
111 </configuration>
112 </plugin>
113 <plugin>
114 <artifactId>maven-source-plugin</artifactId>
115 <version>2.1.2</version>
116 <executions>
117 <execution>
118 <id>attach-sources</id>
119 <phase>package</phase>
120 <goals>
121 <goal>jar</goal>
122 </goals>
123 </execution>
124 </executions>
125 </plugin>
126 <plugin>
127 <artifactId>maven-clean-plugin</artifactId>
128 <version>2.4.1</version>
129 </plugin>
130 <plugin>
131 <artifactId>maven-surefire-plugin</artifactId>
132 <version>2.12</version>
133 </plugin>
134 <plugin>
135 <artifactId>maven-jar-plugin</artifactId>
136 <version>2.4</version>
137 <configuration>
138 <archive>
139 <manifestFile>META-INF/MANIFEST.MF</manifestFile>
140 </archive>
141 </configuration>
142 </plugin>
143 <plugin>
144 <artifactId>maven-antrun-plugin</artifactId>
145 <version>1.7</version>
146 </plugin>
147 <plugin>
148 <artifactId>maven-resources-plugin</artifactId>
149 <version>2.5</version>
150 </plugin>
151 <plugin>
152 <artifactId>maven-release-plugin</artifactId>
153 <version>2.2.2</version>
154 </plugin>
155 <!-- Apache -->
156 <plugin>
157 <groupId>org.apache.felix</groupId>
158 <artifactId>maven-bundle-plugin</artifactId>
159 <version>2.3.7</version>
160 <extensions>true</extensions>
161 <configuration>
162 <manifestLocation>META-INF</manifestLocation>
163 <instructions>
164 <Bundle-Version>${project.version}-r${timestamp}</Bundle-Version>
165 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
166 <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
167 </instructions>
168 </configuration>
169 <executions>
170 <execution>
171 <id>bundle-manifest</id>
172 <phase>process-classes</phase>
173 <goals>
174 <goal>manifest</goal>
175 </goals>
176 </execution>
177 </executions>
178 </plugin>
179 <!-- Codehaus -->
180 <plugin>
181 <groupId>org.codehaus.mojo</groupId>
182 <artifactId>buildnumber-maven-plugin</artifactId>
183 <version>1.0</version>
184 </plugin>
185 <plugin>
186 <groupId>org.codehaus.mojo</groupId>
187 <artifactId>rpm-maven-plugin</artifactId>
188 <version>2.1-alpha-1</version>
189 <extensions>true</extensions>
190 <configuration>
191 <version>${project.version}</version>
192 <release>r${timestamp}.el${rpm.release}</release>
193 <distribution>argeo${rpm.release}</distribution>
194 <packager>mbaudier@argeo.org</packager>
195 <group>Applications/System</group>
196 <prefix>/usr</prefix>
197 </configuration>
198 </plugin>
199 <plugin>
200 <groupId>org.codehaus.mojo</groupId>
201 <artifactId>exec-maven-plugin</artifactId>
202 <version>1.2.1</version>
203 </plugin>
204 <!-- Argeo -->
205 <plugin>
206 <groupId>org.argeo.maven.plugins</groupId>
207 <artifactId>maven-argeo-osgi-plugin</artifactId>
208 <version>1.0.33</version>
209 </plugin>
210 <!-- Others -->
211 <plugin>
212 <groupId>com.mycila.maven-license-plugin</groupId>
213 <artifactId>maven-license-plugin</artifactId>
214 <version>1.9.0</version>
215 </plugin>
216 <!-- Site -->
217 <plugin>
218 <artifactId>maven-site-plugin</artifactId>
219 <version>3.0</version>
220 <configuration>
221 <siteDirectory>doc/site</siteDirectory>
222 <generateSitemap>true</generateSitemap>
223 <skip>true</skip>
224 <reportPlugins>
225 <plugin>
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-project-info-reports-plugin</artifactId>
228 <version>2.4</version>
229 <reportSets>
230 <reportSet>
231 <reports>
232 <report>index</report>
233 <report>summary</report>
234 <report>license</report>
235 <report>scm</report>
236 <report>issue-tracking</report>
237 <report>project-team</report>
238 </reports>
239 </reportSet>
240 </reportSets>
241 </plugin>
242 <plugin>
243 <artifactId>maven-javadoc-plugin</artifactId>
244 <version>2.8.1</version>
245 <configuration>
246 <encoding>UTF-8</encoding>
247 <excludePackageNames>*.demo.*:*.internal.*</excludePackageNames>
248 <detectLinks>true</detectLinks>
249 <links>
250 <!-- OSGi -->
251 <link>http://www.osgi.org/javadoc/r4v42</link>
252 <!-- Spring -->
253 <link>http://static.springsource.org/spring/docs/2.5.x/api</link>
254 <link>http://static.springsource.org/osgi/docs/1.2.x/api</link>
255 <link>http://static.springsource.org/spring-security/site/docs/2.0.x/apidocs</link>
256 <!-- JCR -->
257 <link>http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0</link>
258 <!-- Eclipse -->
259 <link>http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/reference/api</link>
260 </links>
261 </configuration>
262 <reportSets>
263 <reportSet>
264 <id>aggregate</id>
265 <reports>
266 <report>aggregate</report>
267 </reports>
268 </reportSet>
269 </reportSets>
270 </plugin>
271 <plugin>
272 <artifactId>maven-jxr-plugin</artifactId>
273 <version>2.3</version>
274 <configuration>
275 <excludes>
276 <exclude>**/demo/**/*</exclude>
277 <exclude>**/internal/**/*</exclude>
278 </excludes>
279 </configuration>
280 <reportSets>
281 <reportSet>
282 <id>aggregate</id>
283 <reports>
284 <report>aggregate</report>
285 </reports>
286 </reportSet>
287 </reportSets>
288 </plugin>
289 <plugin>
290 <groupId>org.codehaus.mojo</groupId>
291 <artifactId>taglist-maven-plugin</artifactId>
292 <version>2.4</version>
293 <configuration>
294 <aggregate>true</aggregate>
295 <tags>
296 <tag>TODO</tag>
297 <tag>FIXME</tag>
298 </tags>
299 </configuration>
300 </plugin>
301 <plugin>
302 <artifactId>maven-changelog-plugin</artifactId>
303 <version>2.2</version>
304 <configuration>
305 <type>date</type>
306 <dates>
307 <date>${developmentCycle.startDate}</date>
308 </dates>
309 <dateFormat>yyyy-MM-dd</dateFormat>
310 </configuration>
311 </plugin>
312 <!-- <plugin> -->
313 <!-- <artifactId>maven-pmd-plugin</artifactId> -->
314 <!-- <version>2.7.1</version> -->
315 <!-- <configuration> -->
316 <!-- <linkXref>true</linkXref> -->
317 <!-- <targetJdk>1.6</targetJdk> -->
318 <!-- <aggregate>true</aggregate> -->
319 <!-- <excludes> -->
320 <!-- <exclude>**/springutil/*.java</exclude> -->
321 <!-- <exclude>**/demo/**/*.java</exclude> -->
322 <!-- <exclude>**/internal/**/*.java</exclude> -->
323 <!-- </excludes> -->
324 <!-- </configuration> -->
325 <!-- </plugin> -->
326 </reportPlugins>
327 </configuration>
328 </plugin>
329 </plugins>
330 </pluginManagement>
331 <plugins>
332 <plugin>
333 <groupId>org.codehaus.mojo</groupId>
334 <artifactId>buildnumber-maven-plugin</artifactId>
335 <executions>
336 <execution>
337 <phase>generate-resources</phase>
338 <goals>
339 <goal>create-timestamp</goal>
340 </goals>
341 </execution>
342 </executions>
343 <configuration>
344 <doCheck>false</doCheck>
345 <doUpdate>false</doUpdate>
346 <timestampFormat>yyMMdd_HHmm</timestampFormat>
347 </configuration>
348 </plugin>
349 <plugin>
350 <artifactId>maven-resources-plugin</artifactId>
351 <configuration>
352 <encoding>UTF-8</encoding>
353 </configuration>
354 </plugin>
355 <plugin>
356 <artifactId>maven-site-plugin</artifactId>
357 <inherited>false</inherited>
358 <configuration>
359 <skip>false</skip>
360 </configuration>
361 </plugin>
362 <plugin>
363 <artifactId>maven-release-plugin</artifactId>
364 <configuration>
365 <releaseProfiles>rpmbuild,rpmbuild-tp,el5</releaseProfiles>
366 </configuration>
367 </plugin>
368 </plugins>
369 <!-- NOTE: This is just a vision for the future, it's not yet implemented:
370 see MNG-2216 -->
371 <!-- <sourceEncoding>UTF-8</sourceEncoding> -->
372 </build>
373 <dependencyManagement>
374 <dependencies>
375 <dependency>
376 <groupId>org.argeo.dep</groupId>
377 <artifactId>versions-all</artifactId>
378 <version>${version.argeo-distribution}</version>
379 <type>pom</type>
380 <scope>import</scope>
381 </dependency>
382 </dependencies>
383 </dependencyManagement>
384 <repositories>
385 <repository>
386 <id>argeo</id>
387 <url>http://maven.argeo.org/argeo</url>
388 <releases>
389 <enabled>true</enabled>
390 <updatePolicy>daily</updatePolicy>
391 <checksumPolicy>fail</checksumPolicy>
392 </releases>
393 <snapshots>
394 <enabled>false</enabled>
395 <updatePolicy>never</updatePolicy>
396 <checksumPolicy>fail</checksumPolicy>
397 </snapshots>
398 </repository>
399 </repositories>
400 <distributionManagement>
401 <site>
402 <id>argeo-commons-site</id>
403 <name>Argeo Commons Site</name>
404 <url>file://${site.repoBase}/${developmentCycle}/</url>
405 </site>
406 </distributionManagement>
407 <profiles>
408 <profile>
409 <id>release</id>
410 <distributionManagement>
411 <site>
412 <id>argeo-commons-site</id>
413 <name>Argeo Commons Site</name>
414 <url>file://${site.repoBase}/${project.version}</url>
415 </site>
416 </distributionManagement>
417 </profile>
418 <profile>
419 <id>localrepo</id>
420 <distributionManagement>
421 <repository>
422 <id>localrepo</id>
423 <name>Internal Release Repository</name>
424 <url>dav:http://localrepo:7080/org.argeo.jcr.webapp/webdav/node/main/repo
425 </url>
426 </repository>
427 <snapshotRepository>
428 <id>localrepo.snapshots</id>
429 <name>Internal Snapshot Repository</name>
430 <url>dav:http://localrepo:7080/org.argeo.jcr.webapp/webdav/node/main/repo
431 </url>
432 </snapshotRepository>
433 </distributionManagement>
434 </profile>
435 <profile>
436 <id>full</id>
437 <modules>
438 <module>doc</module>
439 <module>sandbox</module>
440 </modules>
441 </profile>
442 <profile>
443 <id>el5</id>
444 <properties>
445 <rpm.release>5</rpm.release>
446 <rpm.stagingRepository>/srv/rpmfactory/argeo-osgi-staging/5/x86_64
447 </rpm.stagingRepository>
448 </properties>
449 </profile>
450 </profiles>
451 </project>