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