mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
10.55.2013 185456e9ca3d42a056b1752e5210a2a88f7375a9
opendj3/opendj-ldap-sdk/pom.xml
@@ -37,26 +37,17 @@
    This module includes OpenDJ core APIs for implementing LDAP Directory
    client and server applications.
  </description>
  <packaging>bundle</packaging>
  <packaging>jar</packaging>
  <dependencies>
    <dependency>
      <groupId>org.forgerock.commons</groupId>
      <artifactId>i18n-core</artifactId>
      <groupId>org.forgerock.opendj</groupId>
      <artifactId>opendj-core</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.glassfish.grizzly</groupId>
      <artifactId>grizzly-framework</artifactId>
      <version>${grizzlyFrameworkVersion}</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.forgerock</groupId>
      <artifactId>forgerock-build-tools</artifactId>
      <version>${forgerockBuildToolsVersion}</version>
      <scope>test</scope>
      <groupId>org.forgerock.opendj</groupId>
      <artifactId>opendj-grizzly</artifactId>
      <version>${project.version}</version>
    </dependency>
  </dependencies>
  <properties>
@@ -67,19 +58,26 @@
  </properties>
  <build>
    <plugins>
      <!-- Unpack opendj-core and opendj-grizzly to rebuild an unified jar with bundle -->
      <plugin>
        <groupId>org.forgerock.commons</groupId>
        <artifactId>i18n-maven-plugin</artifactId>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.8</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <id>unpack-dependencies</id>
            <phase>package</phase>
            <goals>
              <goal>generate-messages</goal>
              <goal>unpack-dependencies</goal>
            </goals>
            <configuration>
              <messageFiles>
                <messageFile>com/forgerock/opendj/ldap/core.properties</messageFile>
              </messageFiles>
              <includeArtifactIds>opendj-grizzly, opendj-core</includeArtifactIds>
              <includes>**/*.class,**\/services\/*</includes>
              <excludes>**/*.properties</excludes>
              <outputDirectory>${project.build.directory}/classes</outputDirectory>
              <overWriteReleases>false</overWriteReleases>
              <overWriteSnapshots>true</overWriteSnapshots>
              <excludeTransitive>true</excludeTransitive>
            </configuration>
          </execution>
        </executions>
@@ -88,6 +86,19 @@
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>bundle</goal>
            </goals>
          </execution>
        </executions>
      <configuration>
         <instructions>
            <Include-Resource>META-INF/services=target/classes/META-INF/services</Include-Resource>
         </instructions>
      </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>