]> git.argeo.org Git - lgpl/argeo-commons.git/blob - pom.xml
6b4ef25db41ab12b01721f4037387a07cfbb273b
[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.40-SNAPSHOT</version>
7 <name>Argeo Commons</name>
8 <packaging>pom</packaging>
9 <properties>
10 <version.argeo-commons>2.1.39</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.12</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-tp</id>
418 <url>http://forge.argeo.org/data/public/java/argeo-tp-2.1/</url>
419 <releases>
420 <enabled>true</enabled>
421 <updatePolicy>daily</updatePolicy>
422 <checksumPolicy>warn</checksumPolicy>
423 </releases>
424 </repository>
425 </repositories>
426 <pluginRepositories>
427 <pluginRepository>
428 <id>central</id>
429 <url>http://repo1.maven.org/maven2</url>
430 <releases>
431 <enabled>true</enabled>
432 <updatePolicy>daily</updatePolicy>
433 <checksumPolicy>warn</checksumPolicy>
434 </releases>
435 </pluginRepository>
436 <pluginRepository>
437 <id>argeo-maven-plugins</id>
438 <url>http://repo.argeo.org/data/public/java/argeo-maven-1.1</url>
439 <releases>
440 <enabled>true</enabled>
441 <updatePolicy>daily</updatePolicy>
442 <checksumPolicy>warn</checksumPolicy>
443 </releases>
444 </pluginRepository>
445 </pluginRepositories>
446 <distributionManagement>
447 <repository>
448 <id>staging</id>
449 <url>dav:https://repo.argeo.org/data/files/java/argeo-commons-${developmentCycle.argeo-commons}</url>
450 <uniqueVersion>false</uniqueVersion>
451 </repository>
452 </distributionManagement>
453 <profiles>
454 <profile>
455 <id>localrepo</id>
456 <repositories>
457 <repository>
458 <id>argeo-tp</id>
459 <url>http://localhost:7070/data/public/java/argeo-${developmentCycle.argeo-commons}</url>
460 <releases>
461 <enabled>true</enabled>
462 <updatePolicy>daily</updatePolicy>
463 <checksumPolicy>warn</checksumPolicy>
464 </releases>
465 </repository>
466 <!-- <repository> -->
467 <!-- <id>staging</id> -->
468 <!-- <url>dav:http://localhost:7070/data/files/java/argeo-${developmentCycle.argeo-commons}</url> -->
469 <!-- <releases> -->
470 <!-- <enabled>true</enabled> -->
471 <!-- <updatePolicy>daily</updatePolicy> -->
472 <!-- <checksumPolicy>warn</checksumPolicy> -->
473 <!-- </releases> -->
474 <!-- </repository> -->
475 </repositories>
476 <distributionManagement>
477 <repository>
478 <id>staging</id>
479 <url>dav:http://localhost:7070/data/files/java/argeo-${developmentCycle.argeo-commons}</url>
480 </repository>
481 <site>
482 <id>staging</id>
483 <url>dav:http://localhost:7070/data/files/docs/argeo-${developmentCycle.argeo-commons}</url>
484 </site>
485 </distributionManagement>
486 </profile>
487 <profile>
488 <id>rpmbuild</id>
489 <build>
490 <plugins>
491 <plugin>
492 <artifactId>maven-antrun-plugin</artifactId>
493 <executions>
494 <execution>
495 <phase>install</phase>
496 <goals>
497 <goal>run</goal>
498 </goals>
499 <configuration>
500 <target>
501 <copy todir="${argeo.rpm.stagingRepository}" quiet="true" failonerror="false">
502 <fileset dir="${project.build.directory}/rpm" includes="*/RPMS/**/*.rpm" />
503 <flattenmapper />
504 </copy>
505 </target>
506 </configuration>
507 </execution>
508 </executions>
509 </plugin>
510 </plugins>
511 </build>
512 </profile>
513 <profile>
514 <id>rpmbuild-tp</id>
515 <build>
516 <plugins>
517 <plugin>
518 <artifactId>maven-antrun-plugin</artifactId>
519 <executions>
520 <execution>
521 <phase>install</phase>
522 <goals>
523 <goal>run</goal>
524 </goals>
525 <configuration>
526 <target>
527 <copy todir="${argeo.rpm.stagingRepository}" quiet="true" failonerror="false">
528 <fileset dir="${project.build.directory}/rpm" includes="*/RPMS/**/*.rpm" />
529 <flattenmapper />
530 </copy>
531 </target>
532 </configuration>
533 </execution>
534 </executions>
535 </plugin>
536 </plugins>
537 </build>
538 </profile>
539 </profiles>
540 </project>