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