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