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