|
3 | 3 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
4 | 4 |
|
5 | 5 | Copyright (c) 2010-2015 ForgeRock AS. All rights reserved. |
| 6 | + Portions Copyright 2017 Wren Security. |
6 | 7 |
|
7 | 8 | The contents of this file are subject to the terms |
8 | 9 | of the Common Development and Distribution License |
|
24 | 25 | --> |
25 | 26 | <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"> |
26 | 27 | <modelVersion>4.0.0</modelVersion> |
| 28 | + |
27 | 29 | <parent> |
28 | 30 | <groupId>org.forgerock.openicf.framework</groupId> |
29 | 31 | <artifactId>framework</artifactId> |
30 | 32 | <version>1.5.2.0</version> |
31 | 33 | </parent> |
| 34 | + |
32 | 35 | <groupId>org.forgerock.openicf.connectors</groupId> |
33 | 36 | <artifactId>connectors-parent</artifactId> |
34 | 37 | <packaging>pom</packaging> |
35 | | - <name>OpenICF Connectors</name> |
| 38 | + |
| 39 | + <name>Wren:ICF - Connector Bundles - Parent</name> |
36 | 40 | <description> |
37 | | - This pom module is the parent for all connector bundles. It defines the dependencies on framework, building the |
38 | | - connector bundle and common reporting for connectors. |
39 | | - This is not multi module project, it does not aggregate the connectors, it is just common parent. |
| 41 | + This is the parent POM for all connector bundles. It specifies the common framework |
| 42 | + dependencies, and defines the standard process that is used to build connector bundles. |
40 | 43 | </description> |
41 | | - <distributionManagement> |
42 | | - <site> |
43 | | - <id>forgerock.org</id> |
44 | | - <url>${siteDistributionURL}/connectors/</url> |
45 | | - </site> |
46 | | - </distributionManagement> |
47 | | - <!-- mvn help:effective-pom |
48 | | - mvn archetype:create-from-project |
49 | | - mvn help:active-profiles |
50 | | - --> |
| 44 | + |
51 | 45 | <properties> |
52 | 46 | <!-- |
53 | 47 | These are the properties needed in manifest file of the bundle, |
|
72 | 66 | <openicf.osgi.import.framework.version> |
73 | 67 | version="[$(version;==;${project.framework.version}),$(version;+;${project.framework.version}))" |
74 | 68 | </openicf.osgi.import.framework.version> |
| 69 | + |
75 | 70 | <openicf.osgi.import.strict.version> |
76 | 71 | version="[$(version;===;${project.framework.version}),$(version;=+;${project.framework.version}))" |
77 | 72 | </openicf.osgi.import.strict.version> |
|
87 | 82 | ${openicf.osgi.import.additional}, |
88 | 83 | * |
89 | 84 | </openicf.osgi.import.pkg> |
| 85 | + |
90 | 86 | <openicf.osgi.import>${openicf.osgi.import.pkg}</openicf.osgi.import> |
91 | 87 |
|
92 | 88 | <openicf.osgi.private /> |
|
107 | 103 | <openicf.osgi.activator /> |
108 | 104 | <openicf.osgi.dynamic.import /> |
109 | 105 | <openicf.osgi.include.resource>{maven-resources}</openicf.osgi.include.resource> |
| 106 | + |
110 | 107 | <openicf.osgi.import.default.version> |
111 | 108 | [$(version;==;$(@)),$(version;=+;$(@))) |
112 | 109 | </openicf.osgi.import.default.version> |
| 110 | + |
113 | 111 | <openicf.osgi.remove.headers> |
114 | 112 | Ignore-Package,Include-Resource,Private-Package,Bundle-DocURL,Embedded-Artifacts,Embed-Dependency,Built-By, |
115 | 113 | Build-Jdk,Tool |
116 | 114 | </openicf.osgi.remove.headers> |
| 115 | + |
117 | 116 | <openicf.osgi.failok>false</openicf.osgi.failok> |
118 | 117 | <openicf.osgi.export.service /> |
119 | 118 | <openicf.osgi.import.service /> |
120 | 119 | <openicf.osgi.embed /> |
121 | | - <!-- If we release this project, we need to include the ForgeRock binary license --> |
122 | | - <include.binary.license> |
123 | | - ${project.build.directory}/maven-shared-archive-resources/legal-notices |
124 | | - </include.binary.license> |
125 | | - |
126 | 120 | </properties> |
127 | 121 |
|
128 | 122 | <dependencyManagement> |
|
140 | 134 | <version>${project.framework.version}</version> |
141 | 135 | <scope>test</scope> |
142 | 136 | </dependency> |
| 137 | + |
143 | 138 | <dependency> |
144 | 139 | <groupId>org.forgerock.openicf.framework</groupId> |
145 | 140 | <artifactId>connector-test-common</artifactId> |
146 | 141 | <version>${project.framework.version}</version> |
147 | 142 | <scope>test</scope> |
148 | 143 | </dependency> |
| 144 | + |
149 | 145 | <dependency> |
150 | 146 | <groupId>org.forgerock.openicf.framework</groupId> |
151 | 147 | <artifactId>connector-framework</artifactId> |
|
161 | 157 | <testResource> |
162 | 158 | <directory>${project.basedir}/src/test/config</directory> |
163 | 159 | </testResource> |
| 160 | + |
164 | 161 | <testResource> |
165 | 162 | <directory>${privateConfigPath}</directory> |
| 163 | + |
166 | 164 | <excludes> |
167 | 165 | <exclude>lib/**</exclude> |
168 | 166 | <exclude>**/target/**</exclude> |
169 | 167 | </excludes> |
170 | 168 | </testResource> |
| 169 | + |
171 | 170 | <!--testResource> |
172 | 171 | <directory>src/test/java</directory> |
173 | 172 | <excludes> |
|
184 | 183 | <plugin> |
185 | 184 | <groupId>org.apache.maven.plugins</groupId> |
186 | 185 | <artifactId>maven-javadoc-plugin</artifactId> |
| 186 | + |
187 | 187 | <configuration> |
188 | 188 | <links> |
189 | 189 | <link>http://download.oracle.com/javase/8/docs/api/</link> |
|
192 | 192 | </links> |
193 | 193 | </configuration> |
194 | 194 | </plugin> |
| 195 | + |
195 | 196 | <plugin> |
196 | 197 | <groupId>org.apache.maven.plugins</groupId> |
197 | 198 | <artifactId>maven-site-plugin</artifactId> |
| 199 | + |
198 | 200 | <configuration> |
199 | 201 | <stagingSiteURL> |
200 | 202 | ${siteDistributionURL}/connectors/${project.artifactId}-${project.version} |
201 | 203 | </stagingSiteURL> |
202 | 204 | </configuration> |
| 205 | + |
203 | 206 | <dependencies> |
204 | 207 | <dependency> |
205 | 208 | <groupId>org.forgerock.maven.plugins</groupId> |
|
208 | 211 | </dependency> |
209 | 212 | </dependencies> |
210 | 213 | </plugin> |
| 214 | + |
211 | 215 | <plugin> |
212 | 216 | <groupId>org.apache.maven.plugins</groupId> |
213 | 217 | <artifactId>maven-scm-plugin</artifactId> |
| 218 | + |
214 | 219 | <configuration> |
215 | 220 | <tag>${project.version}</tag> |
216 | | - <message>[ForgeRock Connector Release] ${project.name}</message> |
| 221 | + <message>[Wren Security Connector Release] ${project.name}</message> |
217 | 222 | </configuration> |
218 | 223 | </plugin> |
219 | 224 |
|
220 | | - |
221 | 225 | <!--<plugins>--> |
222 | 226 | <plugin> |
223 | 227 | <groupId>org.apache.felix</groupId> |
224 | 228 | <artifactId>maven-bundle-plugin</artifactId> |
225 | 229 | <extensions>true</extensions> |
| 230 | + |
226 | 231 | <configuration> |
227 | 232 | <excludeDependencies>${openicf.osgi.exclude.dependencies}</excludeDependencies> |
| 233 | + |
228 | 234 | <instructions> |
229 | 235 | <!-- Required immutable instructions --> |
230 | 236 | <Embed-Directory>lib</Embed-Directory> |
231 | 237 | <Embed-Transitive>true</Embed-Transitive> |
232 | 238 |
|
233 | | - <!-- OpenICF Headers --> |
| 239 | + <!-- Wren:ICF Headers --> |
234 | 240 | <ConnectorBundle-FrameworkVersion> |
235 | 241 | ${ConnectorBundle-FrameworkVersion} |
236 | 242 | </ConnectorBundle-FrameworkVersion> |
237 | 243 | <ConnectorBundle-Name>${ConnectorBundle-Name}</ConnectorBundle-Name> |
238 | 244 | <ConnectorBundle-Version>${ConnectorBundle-Version}</ConnectorBundle-Version> |
239 | 245 |
|
240 | | - |
241 | 246 | <!-- OSGi Headers --> |
242 | 247 | <Bundle-Name>${project.name}</Bundle-Name> |
243 | 248 | <Bundle-SymbolicName>${openicf.osgi.symbolic.name}</Bundle-SymbolicName> |
|
254 | 259 | <Import-Service>${openicf.osgi.import.service}</Import-Service> |
255 | 260 | <Embed-Dependency>${openicf.osgi.embed}</Embed-Dependency> |
256 | 261 |
|
257 | | - |
258 | 262 | <!-- Implementation Entries --> |
259 | 263 | <Implementation-Title>${project.name}</Implementation-Title> |
260 | 264 | <Implementation-Version>${project.version}</Implementation-Version> |
|
268 | 272 | <plugin> |
269 | 273 | <groupId>org.apache.maven.plugins</groupId> |
270 | 274 | <artifactId>maven-remote-resources-plugin</artifactId> |
| 275 | + |
271 | 276 | <executions> |
272 | 277 | <execution> |
273 | 278 | <goals> |
274 | 279 | <goal>process</goal> |
275 | 280 | </goals> |
| 281 | + |
276 | 282 | <configuration> |
277 | 283 | <resourceBundles> |
278 | 284 | <resourceBundle>${licenseResourceBundle}</resourceBundle> |
|
281 | 287 | </execution> |
282 | 288 | </executions> |
283 | 289 | </plugin> |
| 290 | + |
284 | 291 | <plugin> |
285 | 292 | <groupId>org.apache.maven.plugins</groupId> |
286 | 293 | <artifactId>maven-jar-plugin</artifactId> |
287 | | - <executions> |
288 | 294 |
|
| 295 | + <executions> |
289 | 296 | <!-- Attach also test-jar --> |
290 | 297 | <execution> |
291 | 298 | <id>package-test</id> |
| 299 | + <phase>package</phase> |
| 300 | + |
| 301 | + <goals> |
| 302 | + <goal>test-jar</goal> |
| 303 | + </goals> |
| 304 | + |
292 | 305 | <configuration> |
293 | 306 | <excludes> |
294 | 307 | <exclude>${connectorName}/**</exclude> |
295 | 308 | </excludes> |
296 | 309 | </configuration> |
297 | | - <phase>package</phase> |
298 | | - <goals> |
299 | | - <goal>test-jar</goal> |
300 | | - </goals> |
301 | 310 | </execution> |
302 | 311 |
|
303 | 312 | <!-- Attach public test config --> |
304 | 313 | <execution> |
305 | 314 | <id>package-publictestconfig</id> |
306 | 315 | <phase>package</phase> |
| 316 | + |
307 | 317 | <goals> |
308 | 318 | <goal>jar</goal> |
309 | 319 | </goals> |
| 320 | + |
310 | 321 | <configuration> |
311 | 322 | <classesDirectory>${project.build.testOutputDirectory}</classesDirectory> |
312 | 323 | <classifier>publictestconfig</classifier> |
| 324 | + |
313 | 325 | <includes> |
314 | 326 | <include>${connectorName}/**</include> |
315 | 327 | </includes> |
| 328 | + |
316 | 329 | <excludes> |
317 | 330 | <exclude>**/config-private/**</exclude> |
318 | 331 | </excludes> |
|
324 | 337 | <plugin> |
325 | 338 | <groupId>org.apache.maven.plugins</groupId> |
326 | 339 | <artifactId>maven-surefire-plugin</artifactId> |
| 340 | + |
327 | 341 | <configuration> |
328 | 342 | <systemPropertyVariables> |
329 | 343 | <bundleJar>${project.build.directory}/${project.build.finalName}.jar</bundleJar> |
|
334 | 348 | </systemPropertyVariables> |
335 | 349 | </configuration> |
336 | 350 | </plugin> |
| 351 | + |
337 | 352 | <plugin> |
338 | 353 | <groupId>org.forgerock.maven.plugins</groupId> |
339 | 354 | <artifactId>openicf-maven-plugin</artifactId> |
|
342 | 357 | </plugins> |
343 | 358 | </pluginManagement> |
344 | 359 | </build> |
| 360 | + |
345 | 361 | <reporting> |
346 | 362 | <plugins> |
347 | 363 | <plugin> |
348 | 364 | <groupId>org.forgerock.maven.plugins</groupId> |
349 | 365 | <artifactId>openicf-maven-plugin</artifactId> |
350 | 366 | <version>${openicf.maven.plugin.version}</version> |
351 | 367 | </plugin> |
| 368 | + |
352 | 369 | <plugin> |
353 | 370 | <groupId>org.apache.maven.plugins</groupId> |
354 | 371 | <artifactId>maven-javadoc-plugin</artifactId> |
| 372 | + |
355 | 373 | <configuration> |
356 | 374 | <links> |
357 | 375 | <link>http://download.oracle.com/javase/8/docs/api/</link> |
|
364 | 382 | </reporting> |
365 | 383 |
|
366 | 384 | <!-- Profiles--> |
367 | | - |
368 | 385 | <profiles> |
369 | 386 | <profile> |
370 | 387 | <id>generate-docbook</id> |
| 388 | + |
371 | 389 | <build> |
372 | 390 | <plugins> |
373 | 391 | <plugin> |
374 | 392 | <groupId>org.forgerock.maven.plugins</groupId> |
375 | 393 | <artifactId>openicf-maven-plugin</artifactId> |
| 394 | + |
376 | 395 | <executions> |
377 | 396 | <execution> |
378 | 397 | <goals> |
|
381 | 400 | </execution> |
382 | 401 | </executions> |
383 | 402 | </plugin> |
| 403 | + |
384 | 404 | <plugin> |
385 | 405 | <groupId>org.forgerock.commons</groupId> |
386 | 406 | <artifactId>forgerock-doc-maven-plugin</artifactId> |
387 | 407 | <inherited>true</inherited> |
| 408 | + |
388 | 409 | <configuration> |
389 | | - <projectName>OpenICF</projectName> |
| 410 | + <projectName>Wren:ICF</projectName> |
390 | 411 | <googleAnalyticsId>${googleAnalyticsAccountId}</googleAnalyticsId> |
391 | 412 | <projectVersion>${docTargetVersion}</projectVersion> |
392 | 413 | <releaseVersion>${docTargetVersion}</releaseVersion> |
393 | 414 | <docbkxSourceDirectory>${project.build.directory}/openicf-docbkx</docbkxSourceDirectory> |
394 | 415 | <projectVersion>${docTargetVersion}</projectVersion> |
395 | 416 | </configuration> |
| 417 | + |
396 | 418 | <executions> |
397 | 419 | <execution> |
398 | 420 | <id>pre-process-doc</id> |
399 | 421 | <phase>pre-site</phase> |
| 422 | + |
400 | 423 | <goals> |
401 | 424 | <goal>process</goal> |
402 | 425 | </goals> |
403 | 426 | </execution> |
| 427 | + |
404 | 428 | <execution> |
405 | 429 | <id>build-doc</id> |
406 | 430 | <phase>pre-site</phase> |
| 431 | + |
407 | 432 | <goals> |
408 | 433 | <goal>build</goal> |
409 | 434 | </goals> |
410 | 435 | </execution> |
| 436 | + |
411 | 437 | <execution> |
412 | 438 | <id>layout-site</id> |
413 | 439 | <phase>site</phase> |
| 440 | + |
414 | 441 | <goals> |
415 | 442 | <goal>site</goal> |
416 | 443 | </goals> |
417 | 444 | </execution> |
| 445 | + |
418 | 446 | <execution> |
419 | 447 | <id>layout-release</id> |
420 | 448 | <phase>site</phase> |
| 449 | + |
421 | 450 | <goals> |
422 | 451 | <goal>release</goal> |
423 | 452 | </goals> |
|
0 commit comments