forked from ops4j/org.ops4j.pax.useradmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
568 lines (504 loc) · 22.2 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
<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">
<modelVersion>4.0.0</modelVersion>
<!-- Parent: OPS4J master pom
-->
<parent>
<artifactId>master</artifactId>
<groupId>org.ops4j</groupId>
<version>2.0.0</version>
</parent>
<!-- Project coordinates - cannot be or serve as global property values
since they are set for each module independently.
-->
<groupId>org.ops4j.pax</groupId>
<artifactId>useradmin</artifactId>
<!-- Note:
- modules should not have a version entry to simplify maintainance.
- internal cross-referencing of versions should be done using ${project.version}
-->
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- Property definition and defaults - can be overridden via commandline or profile
-->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
<!-- The top-level project name.
Note: used for source-management and build configuration (i.e. the root-directory
name and the root-package name of all modules)
-->
<topProject.name>useradmin</topProject.name>
<!-- The top-level project name prefix.
Note: used for source-management and build configuration (i.e. naming of modules, ...)
-->
<topProject.prefix>pax</topProject.prefix>
<!-- The top-level project ID as used in system integration.
Note: to be used by referring toolchains (i.e. continuous builds, issue management, ...)
to identify this project
-->
<topProject.id>PAXUSERADMIN</topProject.id>
<!-- The JDK we're developing for -->
<target.jdk.version>1.5</target.jdk.version>
<!-- The directory to which the generated site is deployed.
Note: relative paths matter on site:deploy
If the URL of the generated site to deploy is a relative file URL, then the dashboard-plugin
creates invalid internal links for the cobertura overview->detail links. E.g. use the following
property to reproduce the problem:
<site.deploy.dir>file://${project.build.directory}/website/</site.deploy.dir>
Unfortunately ${project.build.directory} resolves to a relative path - not an absolute one. Try it
and check the cobertura reports to verify this behaviour.
-->
<site.deploy.dir>file:///tmp/sites/${topProject.name}/</site.deploy.dir>
<!-- Globally managed versions
-->
<osgi.spec.version>4.2.0</osgi.spec.version>
<junit.version>4.4</junit.version>
<easymock.version>2.4</easymock.version>
</properties>
<!-- More project info ...
-->
<name>${project.groupId}.${project.artifactId}</name>
<description>
Pax UserAdmin - An extendible implementation of the OSGi UserAdmin service based on version ${osgi.spec.version}
of the specs.
</description>
<inceptionYear>2009</inceptionYear>
<url>http://www.ops4j.org/projects/pax/${topProject.name}/</url>
<!-- Standard modules
-->
<modules>
<!-- TODO:
<module>${topProject.prefix}-useradmin-provider-rdbms</module>
<module>${topProject.prefix}-useradmin-webservice-api</module>
<module>${topProject.prefix}-useradmin-provider-file</module>
-->
<module>${topProject.prefix}-${topProject.name}-service</module>
<module>${topProject.prefix}-${topProject.name}-provider-preferences</module>
<module>${topProject.prefix}-${topProject.name}-provider-ldap</module>
<module>${topProject.prefix}-${topProject.name}-command</module>
</modules>
<!-- Profiles to tailor custom executions
-->
<profiles>
<!-- Include integration tests
-->
<profile>
<id>integration-test</id>
<modules>
<module>${topProject.prefix}-${topProject.name}-itest</module>
</modules>
</profile>
<!-- Use CI infrastructure
-->
<profile>
<id>continuous-integration</id>
<properties>
<site.deploy.dir>scp://www.ops4j.org/var/http/www.ops4j.org/projects/pax/${topProject.name}/</site.deploy.dir>
</properties>
</profile>
</profiles>
<!-- Developer information
-->
<developers>
<developer>
<id>mkuespert</id>
<name>Matthias Kuespert</name>
<email>mkuespert@googlemail.com</email>
<organization>MK Software</organization>
<organizationUrl>http://www.kuespert-web.de</organizationUrl>
<roles>
<role>Developer</role>
</roles>
<timezone>UTC+1</timezone>
</developer>
</developers>
<!-- SCM configuration - used for releases
-->
<scm>
<connection>scm:svn:https://scm.ops4j.org/repos/ops4j/projects/pax/${topProject.name}</connection>
<developerConnection>scm:svn:https://scm.ops4j.org/repos/ops4j/projects/pax/${topProject.name}
</developerConnection>
</scm>
<!-- CI configuration - used for automated builds
-->
<ciManagement>
<url>http://ci.ops4j.org/browse/${topProject.id}</url>
</ciManagement>
<!-- Deployment configuration
-->
<distributionManagement>
<site>
<id>${topProject.name}-website</id>
<url>${site.deploy.dir}</url>
</site>
</distributionManagement>
<!-- Issue management configuration
-->
<issueManagement>
<system>Jira</system>
<url>http://issues.ops4j.org/browse/${topProject.id}</url>
</issueManagement>
<!-- Global dependency management (version, scope, ...)
-->
<dependencyManagement>
<dependencies>
<!-- OSGi dependencies
-->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>${osgi.spec.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
<version>${osgi.spec.version}</version>
<scope>provided</scope>
</dependency>
<!-- Unit testing dependencies
-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>${easymock.version}</version>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
<version>${easymock.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- Global dependency configuration
-->
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<!-- Report configuration
Note: module reports are NOT aggregated and are stored in the respective subdirectories. Report
aggregation is done only via the dashboard report.
However, this approach leads to other problems:
- Some reports (e.g. surefire, PMD, CPD) remain on the main site but contain invalid data.
This is solved by not using the reports reference in site.xml and instead providing a custom
report section (see src/site/site.xml#Generated Reports and corresponding *-reports.apt files)
- There is no global entry to source/test-source xref site
TODO: howto run the xref generation twice?
-->
<reporting>
<plugins>
<!-- Source cross-reference configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version>
<configuration>
<!-- Note: setting aggregate to true will break the links from the dashbord reports -->
<aggregate>false</aggregate>
</configuration>
</plugin>
<!-- Cobertura report configuration
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<!--
Note 1: versioning is crucial here: otherwise different cobertura versions
used here and in the dashboard-plugin may lead to incompatible classes
-->
<version>2.2</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>2.4</version>
</plugin>
<!-- PMD/CPD configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.6</version>
<configuration>
<targetJdk>${target.jdk.version}</targetJdk>
<!-- Note: setting aggregate to true will break the links from the dashbord reports -->
<aggregate>false</aggregate>
<!-- NOT_WORKING_AS_EXPECTED xrefLocation>${project.reporting.outputDirectory}/../xref</xrefLocation -->
</configuration>
</plugin>
<!-- Javadoc configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<!-- aggregate is deprecated: see http://maven.apache.org/plugins/maven-javadoc-plugin/examples/aggregate.html -->
<aggregate>true</aggregate>
<detectLinks>true</detectLinks>
<links>
<link>http://www.osgi.org/javadoc/r4v42/</link>
</links>
<groups>
<group>
<title>UserAdmin Service</title>
<packages>org.ops4j.pax.${topProject.name}.service*</packages>
</group>
<group>
<title>LDAP Provider</title>
<packages>org.ops4j.pax.${topProject.name}.provider.ldap*</packages>
</group>
<group>
<title>PreferencesService Provider</title>
<packages>org.ops4j.pax.${topProject.name}.provider.preferences*</packages>
</group>
<group>
<title>Shell Command</title>
<packages>org.ops4j.pax.${topProject.name}.command*</packages>
</group>
</groups>
</configuration>
</plugin>
<!-- Changelog configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.2</version>
<!-- Note: due to a bug in 2.2 the 'clean' goal MUST be called before creating the report - otherwise
you'll get a 'unexpected end of file' error -->
<configuration>
<!-- Ensure Xml file generation to have results picked up by the dashboard plugin -->
<xmlOutput>true</xmlOutput>
</configuration>
</plugin>
<!-- Checkstyle configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.3</version>
<configuration>
<!-- TODO: configLocation>${settings.localRepository}/path /to/checkstyle.config</configLocation -->
<!-- TODO: enableRulesSummary>false</enableRulesSummary -->
<!-- NOT_WORKING_AS_EXPECTED xrefLocation>${project.reporting.outputDirectory}/../xref</xrefLocation -->
</configuration>
</plugin>
<!-- Surefire report configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.12</version>
<configuration>
<!-- Note: setting aggregate to true will break the links from the dashbord reports -->
<aggregate>false</aggregate>
<!-- NOT_WORKING_AS_EXPECTED xrefLocation>${project.reporting.outputDirectory}/../xref</xrefLocation -->
</configuration>
</plugin>
<!-- Changes report configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changes-plugin</artifactId>
<version>2.6</version>
<configuration>
<onlyCurrentVersion>true</onlyCurrentVersion>
<resolutionIds>Unresolved,Fixed,Won't Fix,Duplicate,Incomplete,Cannot Reproduce</resolutionIds>
<statusIds>Open,In Progress,Reopened,Resolved,Closed</statusIds>
<typeIds></typeIds>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>jira-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<!-- Codehaus dashboard plugin configuration
Note: according to the doc this MUST be the last reporting plugin entry
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dashboard-maven-plugin</artifactId>
<version>1.0.0-beta-1</version>
</plugin>
</plugins>
</reporting>
<!-- Build configuration
-->
<build>
<!-- Resource handling
-->
<resources>
<resource>
<directory>src/resources</directory>
</resource>
<!-- additional resource entries, useful when building Eclipse RCP applications
-->
<resource>
<directory>.</directory>
<includes>
<include>plugin.xml</include>
<include>plugin.properties</include>
<include>icons/**</include>
</includes>
</resource>
</resources>
<!-- plugin version management and global configuration
-->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
</plugin>
<!-- Checkstyle configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.3</version>
<configuration>
<!-- TODO: configLocation>${settings.localRepository}/path /to/checkstyle.config</configLocation -->
<!-- TODO: enableRulesSummary>false</enableRulesSummary -->
<!-- NOT_WORKING_AS_EXPECTED xrefLocation>${project.reporting.outputDirectory}/../xref</xrefLocation -->
</configuration>
</plugin>
<!-- Surefire configuration
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx1024m</argLine>
</configuration>
<version>2.12</version>
</plugin>
<!-- Site plugin
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.0.1</version>
<inherited>true</inherited>
<configuration>
<!-- only one to have only one run -->
<locales>en</locales>
</configuration>
</plugin>
<!-- Felix bundle plugin / Bnd version and configuration
-->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.0.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<!--
| assume public classes are in the top package, and private classes are under ".internal"
-->
<Export-Package>
!${bundle.namespace}.internal.*,${bundle.namespace}.*;version="${project.version}"
</Export-Package>
<Private-Package>${bundle.namespace}.internal.*</Private-Package>
<!--
| each module can override these defaults in their osgi.bnd file
-->
<_include>-osgi.bnd</_include>
</instructions>
</configuration>
</plugin>
<!-- License management plugin
see: http://code.google.com/p/maven-license-plugin/wiki/Configuration#Plugin_info_on_maven_website
Usage:
- run "mvn license:check -P integration-test" to check all headers
- run "mvn license:remove -P integration-test" to remove existing header from all modules
- run "mvn license:format -P integration-test" to create/update the header in all modules
Note:
-not to be automated: this plugin manipulates the source code!
-->
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<header>
http://scm.ops4j.org/repos/ops4j/projects/pax/${topProject.name}/src/etc/license-header.txt
</header>
<quiet>false</quiet>
<includes>
<include>**/*.java</include>
</includes>
<excludes>
<exclude>**/*.apt</exclude>
<exclude>**/*.css</exclude>
<exclude>**/*.ldif</exclude>
<exclude>**/*.log</exclude>
<exclude>**/*.permissions</exclude>
<exclude>**/*.sh</exclude>
<exclude>**/*.xml</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<!-- Plugins which run for all modules.
-->
<plugins>
<!-- License management
Note: not bound to any lifecycle ... must be called explicitly
-->
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
</plugin>
<!-- Source Xref generation
Note: this configuration is only used when called explicitly - the configuration
used when called during the site lifecycle is in the reports section.
When called explicitly the plugin will create an aggregated report to be
used in the main menu on the project site.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version>
<configuration>
<aggregate>true</aggregate>
</configuration>
</plugin>
</plugins>
</build>
</project>