]> git.argeo.org Git - lgpl/argeo-commons.git/blob - pom.xml
Prepare next development cycle
[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" 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.argeo.commons</groupId>
5 <artifactId>argeo-commons</artifactId>
6 <version>2.1.41-SNAPSHOT</version>
7 <name>Argeo Commons</name>
8 <packaging>pom</packaging>
9 <properties>
10 <version.argeo-commons>2.1.41-SNAPSHOT</version.argeo-commons>
11 <developmentCycle.argeo-commons>2.1</developmentCycle.argeo-commons>
12 <developmentCycle.argeo-commons.startDate>2012-12-19</developmentCycle.argeo-commons.startDate>
13 <version.argeo-distribution>2.1.14</version.argeo-distribution>
14 <!-- RPM -->
15 <argeo.rpm.release>7</argeo.rpm.release>
16 <argeo.rpm.stagingRepository>/srv/rpmfactory/argeo-osgi-2-staging/7/x86_64</argeo.rpm.stagingRepository>
17 <!-- encoding, see http://is.gd/mvn_source_encoding -->
18 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19 </properties>
20 <modules>
21 <!-- Base -->
22 <module>org.argeo.util</module>
23 <module>org.argeo.osgi.boot</module>
24 <module>org.argeo.server.jcr</module>
25 <!-- Security -->
26 <module>org.argeo.security.core</module>
27 <module>org.argeo.security.jackrabbit</module>
28 <!-- Eclipse -->
29 <module>org.argeo.eclipse.ui</module>
30 <module>org.argeo.eclipse.ui.rap</module>
31 <!-- CMS -->
32 <module>org.argeo.cms</module>
33 <!-- Workbench -->
34 <module>org.argeo.eclipse.ui.workbench</module>
35 <module>org.argeo.eclipse.ui.workbench.rap</module>
36 <module>org.argeo.security.ui</module>
37 <module>org.argeo.security.ui.admin</module>
38 <module>org.argeo.security.ui.rap</module>
39 <!-- Distribution -->
40 <module>dep</module>
41 <module>dist</module>
42 </modules>
43 <scm>
44 <connection>scm:svn:https://svn.argeo.org/commons/trunk</connection>
45 <developerConnection>scm:svn:https://svn.argeo.org/commons/trunk</developerConnection>
46 <url>https://svn.argeo.org/commons/trunk</url>
47 </scm>
48 <inceptionYear>2007</inceptionYear>
49 <licenses>
50 <license>
51 <name>Apache 2</name>
52 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
53 <distribution>repo</distribution>
54 <comments><![CDATA[
55 Argeo Commons Enterprise Framework
56
57 Copyright (C) 2007-2012 Argeo GmbH
58
59 Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
60 you may not use this file except in compliance with the License.
61 You may obtain a copy of the License at
62
63 http://www.apache.org/licenses/LICENSE-2.0
64
65 Unless required by applicable law or agreed to in writing, software
66 distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
67 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68 See the License for the specific language governing permissions and
69 limitations under the License.
70 ]]>
71 </comments>
72 </license>
73 </licenses>
74 <build>
75 <extensions>
76 <extension>
77 <groupId>org.apache.maven.wagon</groupId>
78 <artifactId>wagon-webdav-jackrabbit</artifactId>
79 <version>2.10</version>
80 </extension>
81 </extensions>
82 <sourceDirectory>src</sourceDirectory>
83 <testSourceDirectory>ext/test</testSourceDirectory>
84 <resources>
85 <resource>
86 <directory>src</directory>
87 <includes>
88 <include>**</include>
89 </includes>
90 <excludes>
91 <exclude>**/*.java</exclude>
92 </excludes>
93 </resource>
94 <resource>
95 <directory>.</directory>
96 <includes>
97 <include>**</include>
98 </includes>
99 <excludes>
100 <exclude>.*</exclude>
101 <exclude>.*/**</exclude>
102 <exclude>src/**</exclude>
103 <exclude>ext/**</exclude>
104 <exclude>target/**</exclude>
105 <exclude>bin/**</exclude>
106 <exclude>pom.xml</exclude>
107 <exclude>build.properties</exclude>
108 <exclude>*.bnd</exclude>
109 <exclude>*.target</exclude>
110 </excludes>
111 </resource>
112 </resources>
113 <testResources>
114 <testResource>
115 <directory>ext/test</directory>
116 <includes>
117 <include>**</include>
118 </includes>
119 <excludes>
120 <exclude>**/*.java</exclude>
121 </excludes>
122 </testResource>
123 </testResources>
124 <pluginManagement>
125 <plugins>
126 <!-- Maven -->
127 <plugin>
128 <artifactId>maven-compiler-plugin</artifactId>
129 <version>3.3</version>
130 <configuration>
131 <source>1.8</source>
132 <target>1.8</target>
133 <compilerId>eclipse</compilerId>
134 <!-- Required for compliance level, see http://jira.codehaus.org/browse/PLXCOMP-231 -->
135 <optimize>true</optimize>
136 <!-- Hack to work around issues with generated annotations : -->
137 <generatedSourcesDirectory>target/classes</generatedSourcesDirectory>
138 <generatedTestSourcesDirectory>target/test-classes</generatedTestSourcesDirectory>
139 </configuration>
140 <dependencies>
141 <dependency>
142 <groupId>org.codehaus.plexus</groupId>
143 <artifactId>plexus-compiler-eclipse</artifactId>
144 <version>2.6</version>
145 </dependency>
146 </dependencies>
147 </plugin>
148 <plugin>
149 <artifactId>maven-source-plugin</artifactId>
150 <version>2.4</version>
151 <executions>
152 <execution>
153 <id>attach-sources</id>
154 <phase>package</phase>
155 <goals>
156 <goal>jar</goal>
157 </goals>
158 </execution>
159 </executions>
160 <configuration>
161 <excludes>
162 <!-- Prevents source jars to contain misleading data -->
163 <exclude>plugin.xml</exclude>
164 <exclude>META-INF/MANIFEST.MF</exclude>
165 </excludes>
166 </configuration>
167 </plugin>
168 <plugin>
169 <artifactId>maven-clean-plugin</artifactId>
170 <version>2.6.1</version>
171 <configuration>
172 <filesets>
173 <fileset>
174 <directory>META-INF</directory>
175 <includes>
176 <include>MANIFEST.MF</include>
177 </includes>
178 </fileset>
179 </filesets>
180 </configuration>
181 </plugin>
182 <plugin>
183 <artifactId>maven-surefire-plugin</artifactId>
184 <version>2.18</version>
185 </plugin>
186 <plugin>
187 <artifactId>maven-jar-plugin</artifactId>
188 <version>2.5</version>
189 <configuration>
190 <archive>
191 <manifestFile>META-INF/MANIFEST.MF</manifestFile>
192 </archive>
193 </configuration>
194 </plugin>
195 <plugin>
196 <artifactId>maven-antrun-plugin</artifactId>
197 <version>1.8</version>
198 </plugin>
199 <plugin>
200 <artifactId>maven-resources-plugin</artifactId>
201 <version>2.7</version>
202 </plugin>
203 <plugin>
204 <artifactId>maven-dependency-plugin</artifactId>
205 <version>2.9</version>
206 </plugin>
207 <plugin>
208 <artifactId>maven-release-plugin</artifactId>
209 <version>2.5.1</version>
210 <configuration>
211 <autoVersionSubmodules>true</autoVersionSubmodules>
212 </configuration>
213 </plugin>
214 <plugin>
215 <artifactId>maven-javadoc-plugin</artifactId>
216 <version>2.10.1</version>
217 </plugin>
218 <!-- Apache -->
219 <plugin>
220 <groupId>org.apache.felix</groupId>
221 <artifactId>maven-bundle-plugin</artifactId>
222 <version>2.3.7</version>
223 <extensions>true</extensions>
224 <configuration>
225 <manifestLocation>META-INF</manifestLocation>
226 <instructions>
227 <_include>bnd.bnd</_include>
228 <Bundle-Version>${project.version}-r${tstamp}</Bundle-Version>
229 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
230 <Bundle-RequiredExecutionEnvironment>JavaSE-1.8</Bundle-RequiredExecutionEnvironment>
231 <_removeheaders>Bnd-LastModified,Build-Jdk,Built-By,Tool,Created-By</_removeheaders>
232 <!-- SLC specific instructions -->
233 <SLC-Category>${project.groupId}</SLC-Category>
234 </instructions>
235 </configuration>
236 <executions>
237 <execution>
238 <id>bundle-manifest</id>
239 <phase>process-classes</phase>
240 <goals>
241 <goal>manifest</goal>
242 </goals>
243 </execution>
244 </executions>
245 </plugin>
246 <!-- Codehaus -->
247 <plugin>
248 <groupId>org.codehaus.mojo</groupId>
249 <artifactId>rpm-maven-plugin</artifactId>
250 <version>2.1.4</version>
251 <!-- <version>2.1-alpha-1</version> -->
252 <extensions>true</extensions>
253 <configuration>
254 <version>${project.version}</version>
255 <distribution>argeo${argeo.rpm.release}</distribution>
256 <group>Applications/System</group>
257 <prefix>/usr</prefix>
258 </configuration>
259 </plugin>
260 <plugin>
261 <groupId>org.codehaus.mojo</groupId>
262 <artifactId>exec-maven-plugin</artifactId>
263 <version>1.3.2</version>
264 </plugin>
265 <!-- Argeo -->
266 <plugin>
267 <groupId>org.argeo.maven.plugins</groupId>
268 <artifactId>maven-argeo-osgi-plugin</artifactId>
269 <version>1.1.5</version>
270 </plugin>
271 <!-- Site -->
272 <plugin>
273 <artifactId>maven-site-plugin</artifactId>
274 <version>3.4</version>
275 <configuration>
276 <siteDirectory>doc/site</siteDirectory>
277 <generateSitemap>true</generateSitemap>
278 <skip>true</skip>
279 <reportPlugins>
280 <plugin>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-project-info-reports-plugin</artifactId>
283 <version>2.8.1</version>
284 <reportSets>
285 <reportSet>
286 <reports>
287 <report>index</report>
288 <report>summary</report>
289 <report>license</report>
290 <report>scm</report>
291 </reports>
292 </reportSet>
293 </reportSets>
294 </plugin>
295 <plugin>
296 <artifactId>maven-javadoc-plugin</artifactId>
297 <version>2.10.3</version>
298 <configuration>
299 <failOnError>false</failOnError>
300 <encoding>UTF-8</encoding>
301 <excludePackageNames>*.demo.*:*.internal.*</excludePackageNames>
302 <detectLinks>true</detectLinks>
303 <links>
304 <!-- Java -->
305 <link>http://docs.oracle.com/javase/6/docs/api</link>
306 <!-- OSGi -->
307 <link>http://www.osgi.org/javadoc/r4v42</link>
308 <!-- Spring -->
309 <link>http://static.springsource.org/spring/docs/2.5.x/api</link>
310 <link>http://static.springsource.org/osgi/docs/1.2.x/api</link>
311 <link>http://static.springsource.org/spring-security/site/docs/2.0.x/apidocs</link>
312 <!-- JCR -->
313 <link>http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0</link>
314 <!-- Eclipse -->
315 <link>http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/reference/api</link>
316 </links>
317 </configuration>
318 <reportSets>
319 <reportSet>
320 <id>aggregate</id>
321 <reports>
322 <report>aggregate</report>
323 </reports>
324 </reportSet>
325 </reportSets>
326 </plugin>
327 <plugin>
328 <artifactId>maven-jxr-plugin</artifactId>
329 <version>2.5</version>
330 <configuration>
331 <excludes>
332 <exclude>**/demo/**/*</exclude>
333 <exclude>**/internal/**/*</exclude>
334 </excludes>
335 </configuration>
336 <reportSets>
337 <reportSet>
338 <id>aggregate</id>
339 <reports>
340 <report>aggregate</report>
341 </reports>
342 </reportSet>
343 </reportSets>
344 </plugin>
345 </reportPlugins>
346 </configuration>
347 </plugin>
348 </plugins>
349 </pluginManagement>
350 <plugins>
351 <plugin>
352 <artifactId>maven-clean-plugin</artifactId>
353 <configuration>
354 <filesets>
355 <fileset>
356 <directory>META-INF</directory>
357 <includes>
358 <include>MANIFEST.MF</include>
359 </includes>
360 </fileset>
361 </filesets>
362 </configuration>
363 </plugin>
364 <plugin>
365 <artifactId>maven-javadoc-plugin</artifactId>
366 <configuration>
367 <skip>true</skip>
368 </configuration>
369 </plugin>
370 <plugin>
371 <artifactId>maven-resources-plugin</artifactId>
372 <configuration>
373 <encoding>UTF-8</encoding>
374 </configuration>
375 </plugin>
376 <plugin>
377 <artifactId>maven-site-plugin</artifactId>
378 <inherited>false</inherited>
379 <configuration>
380 <skip>false</skip>
381 </configuration>
382 </plugin>
383 <plugin>
384 <artifactId>maven-release-plugin</artifactId>
385 <configuration>
386 <goals>deploy</goals>
387 <releaseProfiles>rpmbuild,rpmbuild-tp</releaseProfiles>
388 </configuration>
389 </plugin>
390 <plugin>
391 <groupId>org.apache.felix</groupId>
392 <artifactId>maven-bundle-plugin</artifactId>
393 </plugin>
394 </plugins>
395 </build>
396 <dependencies>
397 <dependency>
398 <groupId>org.argeo.tp</groupId>
399 <artifactId>argeo-tp</artifactId>
400 <version>${version.argeo-distribution}</version>
401 <scope>provided</scope>
402 </dependency>
403 </dependencies>
404 <dependencyManagement>
405 <dependencies>
406 <dependency>
407 <groupId>org.argeo.tp</groupId>
408 <artifactId>argeo-tp</artifactId>
409 <version>${version.argeo-distribution}</version>
410 <type>pom</type>
411 <scope>import</scope>
412 </dependency>
413 </dependencies>
414 </dependencyManagement>
415 <repositories>
416 <repository>
417 <id>argeo</id>
418 <url>http://forge.argeo.org/data/public/java/argeo-2.1/</url>
419 <releases>
420 <enabled>true</enabled>
421 <updatePolicy>daily</updatePolicy>
422 <checksumPolicy>warn</checksumPolicy>
423 </releases>
424 </repository>
425 <repository>
426 <id>central</id>
427 <url>http://repo1.maven.org/maven2</url>
428 <releases>
429 <enabled>false</enabled>
430 </releases>
431 <snapshots>
432 <enabled>false</enabled>
433 </snapshots>
434 </repository>
435 </repositories>
436 <pluginRepositories>
437 <pluginRepository>
438 <id>central</id>
439 <url>http://repo1.maven.org/maven2</url>
440 <releases>
441 <enabled>true</enabled>
442 <updatePolicy>daily</updatePolicy>
443 <checksumPolicy>warn</checksumPolicy>
444 </releases>
445 </pluginRepository>
446 <pluginRepository>
447 <id>argeo-maven-plugins</id>
448 <url>http://repo.argeo.org/data/public/java/argeo-maven-1.1</url>
449 <releases>
450 <enabled>true</enabled>
451 <updatePolicy>daily</updatePolicy>
452 <checksumPolicy>warn</checksumPolicy>
453 </releases>
454 </pluginRepository>
455 </pluginRepositories>
456 <distributionManagement>
457 <repository>
458 <id>staging</id>
459 <url>dav:https://forge.argeo.org/data/files/java/argeo-${developmentCycle.argeo-commons}</url>
460 <uniqueVersion>false</uniqueVersion>
461 </repository>
462 </distributionManagement>
463 <profiles>
464 <profile>
465 <id>localrepo</id>
466 <repositories>
467 <repository>
468 <id>argeo</id>
469 <url>http://localhost:7070/data/public/java/argeo-${developmentCycle.argeo-commons}</url>
470 <releases>
471 <enabled>true</enabled>
472 <updatePolicy>daily</updatePolicy>
473 <checksumPolicy>warn</checksumPolicy>
474 </releases>
475 </repository>
476 </repositories>
477 <distributionManagement>
478 <repository>
479 <id>staging</id>
480 <url>dav:http://localhost:7070/data/files/java/argeo-${developmentCycle.argeo-commons}</url>
481 </repository>
482 <site>
483 <id>staging</id>
484 <url>dav:http://localhost:7070/data/files/docs/argeo-${developmentCycle.argeo-commons}</url>
485 </site>
486 </distributionManagement>
487 </profile>
488 <profile>
489 <id>rpmbuild</id>
490 <build>
491 <plugins>
492 <plugin>
493 <artifactId>maven-antrun-plugin</artifactId>
494 <executions>
495 <execution>
496 <phase>install</phase>
497 <goals>
498 <goal>run</goal>
499 </goals>
500 <configuration>
501 <target>
502 <copy todir="${argeo.rpm.stagingRepository}" quiet="true" failonerror="false">
503 <fileset dir="${project.build.directory}/rpm" includes="*/RPMS/**/*.rpm" />
504 <flattenmapper />
505 </copy>
506 </target>
507 </configuration>
508 </execution>
509 </executions>
510 </plugin>
511 </plugins>
512 </build>
513 </profile>
514 <profile>
515 <id>rpmbuild-tp</id>
516 <build>
517 <plugins>
518 <plugin>
519 <artifactId>maven-antrun-plugin</artifactId>
520 <executions>
521 <execution>
522 <phase>install</phase>
523 <goals>
524 <goal>run</goal>
525 </goals>
526 <configuration>
527 <target>
528 <copy todir="${argeo.rpm.stagingRepository}" quiet="true" failonerror="false">
529 <fileset dir="${project.build.directory}/rpm" includes="*/RPMS/**/*.rpm" />
530 <flattenmapper />
531 </copy>
532 </target>
533 </configuration>
534 </execution>
535 </executions>
536 </plugin>
537 </plugins>
538 </build>
539 </profile>
540 </profiles>
541 </project>