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