OPENDJ-2825 Fix OEM Archive build
Fix OEM bootstrap.jar and bootstrap-client.jar generation
(opendj jars were still in camel case and in bootstrap-client there was a dependency on jul-to-slf4j jar).
Try to factorize code as much as possible to avoid such issues in future.
| | |
| | | ${product.name.lowercase}/lib/opendj-je-backend.jar, |
| | | ${product.name.lowercase}/legal-notices/THIRDPARTYREADME.txt |
| | | </oem.file.exclusion.list> |
| | | <product.locales>ca_ES,es,de,fr,ja,ko,pl,zh_CN,zh_TW</product.locales> |
| | | <product.archive.name>${product.name.lowercase}-oem-${project.version}</product.archive.name> |
| | | </properties> |
| | | |
| | |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | |
| | | <!-- Override scope for org.slf4j:slf4j-jdk14 to have it in the bootstrap-client.jar --> |
| | | <dependency> |
| | | <groupId>org.slf4j</groupId> |
| | | <artifactId>slf4j-jdk14</artifactId> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | | <plugins> |
| | | <!-- Generates bootstrap.jar and bootstrap-client.jar for OEM archive edition --> |
| | | <plugin> |
| | | <groupId>org.forgerock.opendj</groupId> |
| | | <artifactId>opendj-maven-plugin</artifactId> |
| | | <version>${project.version}</version> |
| | | <configuration> |
| | | <productJarName>${product.name}</productJarName> |
| | | <supportedLocales>${product.locales}</supportedLocales> |
| | | </configuration> |
| | | |
| | | <executions> |
| | | <execution> |
| | | <id>generate-bootstrap-manifest</id> |
| | | <goals> |
| | | <goal>generate-manifest</goal> |
| | | </goals> |
| | | <configuration> |
| | | <classPathProperty>classpath.bootstrap</classPathProperty> |
| | | <excludes> |
| | | <exclude>org.slf4j:slf4j-jdk14</exclude> |
| | | <exclude>org.forgerock.opendj:opendj-server-legacy</exclude> |
| | | </excludes> |
| | | <additionalJars> |
| | | <additionalJar>opendj-slf4j-adapter.jar</additionalJar> |
| | | </additionalJars> |
| | | </configuration> |
| | | </execution> |
| | | |
| | | <execution> |
| | | <id>generate-bootstrap-client-manifest</id> |
| | | <goals> |
| | | <goal>generate-manifest</goal> |
| | | </goals> |
| | | <configuration> |
| | | <classPathProperty>classpath.bootstrap-client</classPathProperty> |
| | | <excludes> |
| | | <exclude>org.forgerock.opendj:opendj-server-legacy</exclude> |
| | | </excludes> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | |
| | | <plugin> |
| | |
| | | <docWikiUrl>http://opendj.forgerock.org/docs.html</docWikiUrl> |
| | | <docGuideRefUrl>http://opendj.forgerock.org/opendj-server-legacy/doc/bootstrap/admin-guide/</docGuideRefUrl> |
| | | <docGuideAdminUrl>http://opendj.forgerock.org/opendj-server-legacy/doc/bootstrap/admin-guide/</docGuideAdminUrl> |
| | | <locales>ca_ES,es,de,fr,ja,ko,pl,zh_CN,zh_TW</locales> |
| | | |
| | | <!-- Other properties --> |
| | | <maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format> |
| | |
| | | <plugin> |
| | | <groupId>org.forgerock.opendj</groupId> |
| | | <artifactId>opendj-maven-plugin</artifactId> |
| | | |
| | | <executions> |
| | | <execution> |
| | | <id>generate-bootstrap-manifest</id> |
| | |
| | | <goal>generate-manifest</goal> |
| | | </goals> |
| | | <configuration> |
| | | <classPathProperty>classpath.bootstrap</classPathProperty> |
| | | <productJarName>${product.name.lowercase}</productJarName> |
| | | <supportedLocales>${locales}</supportedLocales> |
| | | <excludes> |
| | | <exclude>org.slf4j:slf4j-jdk14</exclude> |
| | | </excludes> |
| | | <additionalJars> |
| | | <additionalJar>opendj-slf4j-adapter.jar</additionalJar> |
| | | <additionalJar>opendj-je-backend.jar</additionalJar> |
| | | </additionalJars> |
| | | </configuration> |
| | | </execution> |
| | | |
| | | <execution> |
| | | <id>generate-bootstrap-client-manifest</id> |
| | | <goals> |
| | | <goal>generate-manifest</goal> |
| | | </goals> |
| | | <configuration> |
| | | <classPathProperty>classpath.bootstrap-client</classPathProperty> |
| | | <productJarName>${product.name.lowercase}</productJarName> |
| | | <supportedLocales>${locales}</supportedLocales> |
| | | <excludes> |
| | | <exclude>org.slf4j:jul-to-slf4j</exclude> |
| | | </excludes> |
| | | <additionalJars> |
| | | <additionalJar>opendj-je-backend.jar</additionalJar> |
| | | </additionalJars> |
| | |
| | | <properties> |
| | | <product.name>OpenDJ</product.name> |
| | | <product.name.lowercase>opendj</product.name.lowercase> |
| | | <product.locales>ca_ES,es,de,fr,ja,ko,pl,zh_CN,zh_TW</product.locales> |
| | | <localized.jars.classifier>i18n</localized.jars.classifier> |
| | | |
| | | <site.distribution.url> |
| | |
| | | <groupId>org.forgerock.opendj</groupId> |
| | | <artifactId>opendj-maven-plugin</artifactId> |
| | | <version>${project.version}</version> |
| | | <!-- bootstrap and bootstrap-clinet MANIFEST.MF files generation. --> |
| | | <configuration> |
| | | <productJarName>${product.name.lowercase}</productJarName> |
| | | <supportedLocales>${product.locales}</supportedLocales> |
| | | </configuration> |
| | | |
| | | <executions> |
| | | <execution> |
| | | <id>generate-bootstrap-manifest</id> |
| | | <goals> |
| | | <goal>generate-manifest</goal> |
| | | </goals> |
| | | <configuration> |
| | | <classPathProperty>classpath.bootstrap</classPathProperty> |
| | | <excludes> |
| | | <exclude>org.slf4j:slf4j-jdk14</exclude> |
| | | <exclude>org.forgerock.opendj:opendj-server-legacy</exclude> |
| | | </excludes> |
| | | <additionalJars> |
| | | <additionalJar>opendj-slf4j-adapter.jar</additionalJar> |
| | | </additionalJars> |
| | | </configuration> |
| | | </execution> |
| | | |
| | | <execution> |
| | | <id>generate-bootstrap-client-manifest</id> |
| | | <goals> |
| | | <goal>generate-manifest</goal> |
| | | </goals> |
| | | <configuration> |
| | | <classPathProperty>classpath.bootstrap-client</classPathProperty> |
| | | <excludes> |
| | | <exclude>org.slf4j:jul-to-slf4j</exclude> |
| | | <exclude>org.forgerock.opendj:opendj-server-legacy</exclude> |
| | | </excludes> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | |
| | | <plugin> |