]> git.argeo.org Git - lgpl/argeo-commons.git/blob - pom.xml
Centralize MANIFEST clean
[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 <groupId>org.argeo.commons</groupId>
6 <artifactId>argeo-commons</artifactId>
7 <version>1.1.5-SNAPSHOT</version>
8 <name>Argeo Commons</name>
9 <description>Generic layers integrating free / open source technologies in order to quickly develop custom enterprise systems: security, JCR, user interface, monitoring</description>
10 <packaging>pom</packaging>
11 <properties>
12 <developmentCycle>1.1</developmentCycle>
13 <developmentCycle.startDate>2012-06-19</developmentCycle.startDate>
14 <version.argeo-distribution>1.3.1</version.argeo-distribution>
15 <version.argeo-commons>1.1.5-SNAPSHOT</version.argeo-commons>
16 <!-- distribution -->
17 <site.repoBase>file:///srv/projects/www/commons/site</site.repoBase>
18 <site.urlBase>http://projects.argeo.org/commons/site</site.urlBase>
19 <rpm.release>6</rpm.release>
20 <rpm.stagingRepository>/srv/rpmfactory/argeo-osgi-staging/6/x86_64</rpm.stagingRepository>
21 <!-- encoding, see http://is.gd/mvn_source_encoding -->
22 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23 </properties>
24 <modules>
25 <module>base</module>
26 <module>server</module>
27 <module>security</module>
28 </modules>
29 <organization>
30 <name>Argeo</name>
31 <url>http://www.argeo.org</url>
32 </organization>
33 <url>${site.urlBase}/${developmentCycle}</url>
34 <scm>
35 <connection>scm:svn:https://svn.argeo.org/commons/trunk</connection>
36 <developerConnection>scm:svn:https://svn.argeo.org/commons/trunk
37 </developerConnection>
38 <url>https://svn.argeo.org/commons/trunk</url>
39 </scm>
40 <inceptionYear>2007</inceptionYear>
41 <licenses>
42 <license>
43 <name>Apache 2</name>
44 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
45 <distribution>repo</distribution>
46 <comments><![CDATA[
47 Argeo Commons Enterprise Framework
48
49 Copyright 2011 Mathieu Baudier
50
51 Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
52 you may not use this file except in compliance with the License.
53 You may obtain a copy of the License at
54
55 http://www.apache.org/licenses/LICENSE-2.0
56
57 Unless required by applicable law or agreed to in writing, software
58 distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
59 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
60 See the License for the specific language governing permissions and
61 limitations under the License.
62 ]]>
63 </comments>
64 </license>
65 </licenses>
66 <issueManagement>
67 <system>Bugzilla</system>
68 <url>https://bugzilla.argeo.org</url>
69 </issueManagement>
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 <configuration>
130 <filesets>
131 <fileset>
132 <directory>META-INF</directory>
133 <includes>
134 <include>MANIFEST.MF</include>
135 </includes>
136 </fileset>
137 </filesets>
138 </configuration>
139 </plugin>
140 <plugin>
141 <artifactId>maven-surefire-plugin</artifactId>
142 <version>2.12</version>
143 </plugin>
144 <plugin>
145 <artifactId>maven-jar-plugin</artifactId>
146 <version>2.4</version>
147 <configuration>
148 <archive>
149 <manifestFile>META-INF/MANIFEST.MF</manifestFile>
150 </archive>
151 </configuration>
152 </plugin>
153 <plugin>
154 <artifactId>maven-antrun-plugin</artifactId>
155 <version>1.7</version>
156 </plugin>
157 <plugin>
158 <artifactId>maven-resources-plugin</artifactId>
159 <version>2.5</version>
160 </plugin>
161 <plugin>
162 <artifactId>maven-dependency-plugin</artifactId>
163 <version>2.4</version>
164 </plugin>
165 <plugin>
166 <artifactId>maven-release-plugin</artifactId>
167 <version>2.2.2</version>
168 <configuration>
169 <autoVersionSubmodules>true</autoVersionSubmodules>
170 </configuration>
171 </plugin>
172 <plugin>
173 <artifactId>maven-javadoc-plugin</artifactId>
174 <version>2.8.1</version>
175 </plugin>
176 <!-- Apache -->
177 <plugin>
178 <groupId>org.apache.felix</groupId>
179 <artifactId>maven-bundle-plugin</artifactId>
180 <version>2.3.7</version>
181 <extensions>true</extensions>
182 <configuration>
183 <manifestLocation>META-INF</manifestLocation>
184 <instructions>
185 <Bundle-Version>${project.version}-r${timestamp}</Bundle-Version>
186 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
187 <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
188 </instructions>
189 </configuration>
190 <executions>
191 <execution>
192 <id>bundle-manifest</id>
193 <phase>process-classes</phase>
194 <goals>
195 <goal>manifest</goal>
196 </goals>
197 </execution>
198 </executions>
199 </plugin>
200 <!-- Codehaus -->
201 <plugin>
202 <groupId>org.codehaus.mojo</groupId>
203 <artifactId>buildnumber-maven-plugin</artifactId>
204 <version>1.0</version>
205 </plugin>
206 <plugin>
207 <groupId>org.codehaus.mojo</groupId>
208 <artifactId>rpm-maven-plugin</artifactId>
209 <version>2.1-alpha-1</version>
210 <extensions>true</extensions>
211 <configuration>
212 <version>${project.version}</version>
213 <release>r${timestamp}.el${rpm.release}</release>
214 <distribution>argeo${rpm.release}</distribution>
215 <packager>mbaudier@argeo.org</packager>
216 <group>Applications/System</group>
217 <prefix>/usr</prefix>
218 </configuration>
219 </plugin>
220 <plugin>
221 <groupId>org.codehaus.mojo</groupId>
222 <artifactId>exec-maven-plugin</artifactId>
223 <version>1.2.1</version>
224 </plugin>
225 <!-- Argeo -->
226 <plugin>
227 <groupId>org.argeo.maven.plugins</groupId>
228 <artifactId>maven-argeo-osgi-plugin</artifactId>
229 <version>1.0.33</version>
230 </plugin>
231 <!-- Others -->
232 <plugin>
233 <groupId>com.mycila.maven-license-plugin</groupId>
234 <artifactId>maven-license-plugin</artifactId>
235 <version>1.9.0</version>
236 </plugin>
237 <!-- Site -->
238 <plugin>
239 <artifactId>maven-site-plugin</artifactId>
240 <version>3.0</version>
241 <configuration>
242 <siteDirectory>doc/site</siteDirectory>
243 <generateSitemap>true</generateSitemap>
244 <skip>true</skip>
245 <reportPlugins>
246 <plugin>
247 <groupId>org.apache.maven.plugins</groupId>
248 <artifactId>maven-project-info-reports-plugin</artifactId>
249 <version>2.4</version>
250 <reportSets>
251 <reportSet>
252 <reports>
253 <report>index</report>
254 <report>summary</report>
255 <report>license</report>
256 <report>scm</report>
257 <report>issue-tracking</report>
258 <report>project-team</report>
259 </reports>
260 </reportSet>
261 </reportSets>
262 </plugin>
263 <plugin>
264 <artifactId>maven-javadoc-plugin</artifactId>
265 <version>2.8.1</version>
266 <configuration>
267 <encoding>UTF-8</encoding>
268 <excludePackageNames>*.demo.*:*.internal.*</excludePackageNames>
269 <detectLinks>true</detectLinks>
270 <links>
271 <!-- Java -->
272 <link>http://docs.oracle.com/javase/6/docs/api</link>
273 <!-- OSGi -->
274 <link>http://www.osgi.org/javadoc/r4v42</link>
275 <!-- Spring -->
276 <link>http://static.springsource.org/spring/docs/2.5.x/api</link>
277 <link>http://static.springsource.org/osgi/docs/1.2.x/api</link>
278 <link>http://static.springsource.org/spring-security/site/docs/2.0.x/apidocs</link>
279 <!-- JCR -->
280 <link>http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0</link>
281 <!-- Eclipse -->
282 <link>http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/reference/api</link>
283 </links>
284 </configuration>
285 <reportSets>
286 <reportSet>
287 <id>aggregate</id>
288 <reports>
289 <report>aggregate</report>
290 </reports>
291 </reportSet>
292 </reportSets>
293 </plugin>
294 <plugin>
295 <artifactId>maven-jxr-plugin</artifactId>
296 <version>2.3</version>
297 <configuration>
298 <excludes>
299 <exclude>**/demo/**/*</exclude>
300 <exclude>**/internal/**/*</exclude>
301 </excludes>
302 </configuration>
303 <reportSets>
304 <reportSet>
305 <id>aggregate</id>
306 <reports>
307 <report>aggregate</report>
308 </reports>
309 </reportSet>
310 </reportSets>
311 </plugin>
312 <plugin>
313 <groupId>org.codehaus.mojo</groupId>
314 <artifactId>taglist-maven-plugin</artifactId>
315 <version>2.4</version>
316 <configuration>
317 <aggregate>true</aggregate>
318 <tags>
319 <tag>TODO</tag>
320 <tag>FIXME</tag>
321 </tags>
322 </configuration>
323 </plugin>
324 <plugin>
325 <artifactId>maven-changelog-plugin</artifactId>
326 <version>2.2</version>
327 <configuration>
328 <type>date</type>
329 <dates>
330 <date>${developmentCycle.startDate}</date>
331 </dates>
332 <dateFormat>yyyy-MM-dd</dateFormat>
333 </configuration>
334 </plugin>
335 </reportPlugins>
336 </configuration>
337 </plugin>
338 </plugins>
339 </pluginManagement>
340 <plugins>
341 <plugin>
342 <groupId>org.codehaus.mojo</groupId>
343 <artifactId>buildnumber-maven-plugin</artifactId>
344 <executions>
345 <execution>
346 <phase>generate-resources</phase>
347 <goals>
348 <goal>create-timestamp</goal>
349 </goals>
350 </execution>
351 </executions>
352 <configuration>
353 <doCheck>false</doCheck>
354 <doUpdate>false</doUpdate>
355 <timestampFormat>yyMMdd_HHmm</timestampFormat>
356 </configuration>
357 </plugin>
358 <plugin>
359 <artifactId>maven-clean-plugin</artifactId>
360 <configuration>
361 <filesets>
362 <fileset>
363 <directory>META-INF</directory>
364 <includes>
365 <include>MANIFEST.MF</include>
366 </includes>
367 </fileset>
368 </filesets>
369 </configuration>
370 </plugin>
371 <plugin>
372 <artifactId>maven-javadoc-plugin</artifactId>
373 <configuration>
374 <skip>true</skip>
375 </configuration>
376 </plugin>
377 <plugin>
378 <artifactId>maven-resources-plugin</artifactId>
379 <configuration>
380 <encoding>UTF-8</encoding>
381 </configuration>
382 </plugin>
383 <plugin>
384 <artifactId>maven-site-plugin</artifactId>
385 <inherited>false</inherited>
386 <configuration>
387 <skip>false</skip>
388 </configuration>
389 </plugin>
390 <plugin>
391 <artifactId>maven-release-plugin</artifactId>
392 <configuration>
393 <goals>deploy</goals>
394 <releaseProfiles>rpmbuild,rpmbuild-tp</releaseProfiles>
395 </configuration>
396 </plugin>
397 <plugin>
398 <groupId>com.mycila.maven-license-plugin</groupId>
399 <artifactId>maven-license-plugin</artifactId>
400 <configuration>
401 <header>license-apache2-header.txt</header>
402 <failIfMissing>true</failIfMissing>
403 <aggregate>true</aggregate>
404 <includes>
405 <include>src/**/*.java</include>
406 <include>src/**/*.xml</include>
407 </includes>
408 <excludes>
409 <exclude>**/springutil/**</exclude>
410 <exclude>**/qooxdoo-sdk/**</exclude>
411 </excludes>
412 <useDefaultExcludes>true</useDefaultExcludes>
413 <mapping>
414 <java>SLASHSTAR_STYLE</java>
415 <xml>XML_STYLE</xml>
416 </mapping>
417 </configuration>
418 </plugin>
419 </plugins>
420 </build>
421 <dependencyManagement>
422 <dependencies>
423 <dependency>
424 <groupId>org.argeo.tp</groupId>
425 <artifactId>binaries</artifactId>
426 <version>${version.argeo-distribution}</version>
427 <type>pom</type>
428 <scope>import</scope>
429 </dependency>
430 </dependencies>
431 </dependencyManagement>
432 <repositories>
433 <repository>
434 <id>argeo-tp</id>
435 <url>http://repo.argeo.org/org.argeo.jcr.webapp/public/java/org.argeo.tp-1.3.1</url>
436 <releases>
437 <enabled>true</enabled>
438 <updatePolicy>daily</updatePolicy>
439 <checksumPolicy>warn</checksumPolicy>
440 </releases>
441 </repository>
442 </repositories>
443 <pluginRepositories>
444 <pluginRepository>
445 <id>central</id>
446 <url>http://repo1.maven.org/maven2</url>
447 <releases>
448 <enabled>true</enabled>
449 <updatePolicy>daily</updatePolicy>
450 <checksumPolicy>warn</checksumPolicy>
451 </releases>
452 </pluginRepository>
453 <pluginRepository>
454 <id>argeo</id>
455 <url>http://maven.argeo.org/argeo</url>
456 <releases>
457 <enabled>true</enabled>
458 <updatePolicy>daily</updatePolicy>
459 <checksumPolicy>warn</checksumPolicy>
460 </releases>
461 </pluginRepository>
462 </pluginRepositories>
463 <distributionManagement>
464 <repository>
465 <id>staging</id>
466 <url>dav:https://repo.argeo.org/org.argeo.jcr.webapp/webdav/java/org.argeo.commons-1.1.x</url>
467 <uniqueVersion>false</uniqueVersion>
468 </repository>
469 <site>
470 <id>argeo-commons-site</id>
471 <name>Argeo Commons Site</name>
472 <url>file://${site.repoBase}/${project.version}</url>
473 </site>
474 </distributionManagement>
475 <profiles>
476 <profile>
477 <id>localrepo</id>
478 <distributionManagement>
479 <repository>
480 <id>localrepo</id>
481 <name>Internal Release Repository</name>
482 <url>dav:http://localrepo:7070/org.argeo.jcr.webapp/webdav/java/org.argeo.commons-1.1.x</url>
483 </repository>
484 <snapshotRepository>
485 <id>localrepo.snapshots</id>
486 <name>Internal Snapshot Repository</name>
487 <url>dav:http://localrepo:7070/org.argeo.jcr.webapp/webdav/java/org.argeo.commons-1.1.x</url>
488 </snapshotRepository>
489 </distributionManagement>
490 </profile>
491 <profile>
492 <id>el5</id>
493 <properties>
494 <rpm.release>5</rpm.release>
495 <rpm.stagingRepository>/srv/rpmfactory/argeo-osgi-staging/5/x86_64</rpm.stagingRepository>
496 </properties>
497 </profile>
498 <profile>
499 <id>doc</id>
500 <modules>
501 <module>doc</module>
502 </modules>
503 </profile>
504 </profiles>
505 </project>