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