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