From 34e8c1af48059a794a58c2acabc6f28c69ee1219 Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Tue, 10 Nov 2015 16:43:38 +0000
Subject: [PATCH] OPENDJ-2388 Remove package resources

---
 opendj-server-legacy/pom.xml |  866 ---------------------------------------------------------
 1 files changed, 0 insertions(+), 866 deletions(-)

diff --git a/opendj-server-legacy/pom.xml b/opendj-server-legacy/pom.xml
index a9e818e..47cfabb 100644
--- a/opendj-server-legacy/pom.xml
+++ b/opendj-server-legacy/pom.xml
@@ -1599,392 +1599,6 @@
     </profile>
 
     <profile>
-      <!-- Build man pages -->
-      <id>man-pages</id>
-
-      <build>
-        <plugins>
-          <plugin>
-            <groupId>org.forgerock.opendj</groupId>
-            <artifactId>opendj-doc-maven-plugin</artifactId>
-            <executions>
-              <execution>
-                <id>generate-man-pages</id>
-                <goals>
-                  <goal>generate-refentry</goal>
-                </goals>
-                <phase>process-classes</phase>
-                <configuration>
-                  <outputDir>${project.build.directory}/docbkx-sources/man-pages</outputDir>
-                  <tools>
-                    <tool>
-                     <name>backup</name>
-                     <application>org.opends.server.tools.BackUpDB</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-1.xml</trailingSectionPath>
-                       <trailingSectionPath>backup-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>base64</name>
-                     <application>org.opends.server.util.Base64</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>base64-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>control-panel</name>
-                     <application>org.opends.guitools.controlpanel.ControlPanelLauncher</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>control-panel-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>create-rc-script</name>
-                     <application>org.opends.server.tools.CreateRCScript</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>create-rc-script-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                      <name>backendstat</name>
-                      <application>org.opends.server.backends.pluggable.BackendStat</application>
-                      <trailingSectionPaths>
-                        <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                        <trailingSectionPath>backendstat-examples.xml</trailingSectionPath>
-                      </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>dbtest</name>
-                     <application>org.opends.server.backends.jeb.DBTest</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>dbtest-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                     <!-- If no dbtest tool is provided, use this setting
-                     <enabled>false</enabled>
-                     -->
-                    </tool>
-
-                    <tool>
-                     <name>dsconfig</name>
-                     <application>org.forgerock.opendj.config.dsconfig.DSConfig</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>dsconfig-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>dsjavaproperties</name>
-                     <application>org.opends.server.tools.JavaPropertiesTool</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>dsjavaproperties-files.xml</trailingSectionPath>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>dsjavaproperties-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>dsreplication</name>
-                     <application>org.opends.server.tools.dsreplication.ReplicationCliMain</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>dsreplication-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>encode-password</name>
-                     <application>org.opends.server.tools.EncodePassword</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-5-6-other.xml</trailingSectionPath>
-                       <trailingSectionPath>encode-password-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>export-ldif</name>
-                     <application>org.opends.server.tools.ExportLDIF</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>export-ldif-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>import-ldif</name>
-                     <application>org.opends.server.tools.ImportLDIF</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>export-ldif-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>ldapcompare</name>
-                     <application>org.opends.server.tools.LDAPCompare</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>ldapcompare-exit-codes.xml</trailingSectionPath>
-                       <trailingSectionPath>files.xml</trailingSectionPath>
-                       <trailingSectionPath>ldapcompare-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>ldapdelete</name>
-                     <application>org.opends.server.tools.LDAPDelete</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-ldap-89.xml</trailingSectionPath>
-                       <trailingSectionPath>files.xml</trailingSectionPath>
-                       <trailingSectionPath>ldapdelete-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>ldapmodify</name>
-                     <application>org.opends.server.tools.LDAPModify</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-ldap-89.xml</trailingSectionPath>
-                       <trailingSectionPath>files.xml</trailingSectionPath>
-                       <trailingSectionPath>ldapmodify-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>ldappasswordmodify</name>
-                     <application>org.opends.server.tools.LDAPPasswordModify</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-ldap-89.xml</trailingSectionPath>
-                       <trailingSectionPath>files.xml</trailingSectionPath>
-                       <trailingSectionPath>ldappasswordmodify-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>ldapsearch</name>
-                     <application>org.opends.server.tools.LDAPSearch</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>filters.xml</trailingSectionPath>
-                       <trailingSectionPath>attributes.xml</trailingSectionPath>
-                       <trailingSectionPath>exit-codes-0-ldap-89.xml</trailingSectionPath>
-                       <trailingSectionPath>files.xml</trailingSectionPath>
-                       <trailingSectionPath>ldapsearch-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>ldif-diff</name>
-                     <application>org.opends.server.tools.LDIFDiff</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-5-6-other.xml</trailingSectionPath>
-                       <trailingSectionPath>ldif-diff-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>ldifmodify</name>
-                     <application>org.opends.server.tools.LDIFModify</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>ldifmodify-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>ldifsearch</name>
-                     <application>org.opends.server.tools.LDIFSearch</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>ldifsearch-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>list-backends</name>
-                     <application>org.opends.server.tools.ListBackends</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>list-backends-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>make-ldif</name>
-                     <application>org.opends.server.tools.makeldif.MakeLDIF</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>make-ldif-examples.xml</trailingSectionPath>
-                       <trailingSectionPath>make-ldif-see-also.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>manage-account</name>
-                     <application>org.opends.server.tools.ManageAccount</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-89.xml</trailingSectionPath>
-                       <trailingSectionPath>manage-account-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>manage-tasks</name>
-                     <application>org.opends.server.tools.ManageTasks</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>manage-tasks-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>rebuild-index</name>
-                     <application>org.opends.server.tools.RebuildIndex</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>rebuild-index-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>restore</name>
-                     <application>org.opends.server.tools.RestoreDB</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>restore-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>setup</name>
-                     <application>org.opends.quicksetup.installer.SetupLauncher</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>setup-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>start-ds</name>
-                     <application>org.opends.server.core.DirectoryServer</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>start-ds-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>status</name>
-                     <application>org.opends.server.tools.status.StatusCli</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>status-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>stop-ds</name>
-                     <application>org.opends.server.tools.StopDS</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>stop-ds-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>uninstall</name>
-                     <application>org.opends.guitools.uninstaller.UninstallLauncher</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>exit-codes-0-gt0.xml</trailingSectionPath>
-                       <trailingSectionPath>uninstall-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>upgrade</name>
-                     <application>org.opends.server.tools.upgrade.UpgradeCli</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>upgrade-exit-codes.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-
-                    <tool>
-                     <name>verify-index</name>
-                     <application>org.opends.server.tools.VerifyIndex</application>
-                     <trailingSectionPaths>
-                       <trailingSectionPath>verify-index-exit-codes.xml</trailingSectionPath>
-                       <trailingSectionPath>verify-index-examples.xml</trailingSectionPath>
-                     </trailingSectionPaths>
-                    </tool>
-                  </tools>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-
-          <!-- Format man pages -->
-          <plugin>
-            <groupId>org.forgerock.commons</groupId>
-            <artifactId>forgerock-doc-maven-plugin</artifactId>
-            <configuration>
-              <formats combine.self="override">
-                <format>man</format>
-              </formats>
-            </configuration>
-            <executions>
-              <execution>
-                <id>build-man-pages</id>
-                <phase>package</phase>
-                <goals>
-                  <goal>process</goal>
-                  <goal>build</goal>
-                </goals>
-              </execution>
-            </executions>
-          </plugin>
-
-          <plugin>
-            <artifactId>maven-assembly-plugin</artifactId>
-            <executions>
-              <execution>
-                <id>man-pages-sources</id>
-                <phase>package</phase>
-                <goals>
-                  <goal>single</goal>
-                </goals>
-                <configuration>
-                  <descriptors>
-                    <descriptor>src/main/assembly/man-page-sources-assembly.xml</descriptor>
-                  </descriptors>
-                </configuration>
-              </execution>
-              <execution>
-                <id>man-pages</id>
-                <phase>package</phase>
-                <goals>
-                  <goal>single</goal>
-                </goals>
-                <configuration>
-                  <descriptors>
-                    <descriptor>src/main/assembly/man-pages-assembly.xml</descriptor>
-                  </descriptors>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-
-    <profile>
       <!--
         Build the configuration reference, reference documentation source files,
         and assemble artifacts from the results.
@@ -2139,486 +1753,6 @@
         </plugins>
       </build>
     </profile>
-
-    <!-- Build the debian package -->
-    <profile>
-      <id>package-deb</id>
-
-        <properties>
-          <deb.prefix>/opt/${lowerCaseProductName}</deb.prefix>
-          <deb.docprefix>/usr/share/doc/${lowerCaseProductName}</deb.docprefix>
-          <deb.release>1</deb.release>
-          <deb.maintainer>opendj@forgerock.org</deb.maintainer>
-          <manpage.dir>${project.build.directory}/dependency/man</manpage.dir>
-        </properties>
-
-        <build>
-          <plugins>
-            <plugin>
-              <artifactId>maven-dependency-plugin</artifactId>
-              <executions>
-                <execution>
-                  <id>unpack-man-pages</id>
-                  <phase>package</phase>
-                  <goals>
-                    <goal>unpack</goal>
-                  </goals>
-                  <configuration>
-                    <artifactItems>
-                      <artifactItem>
-                        <groupId>org.forgerock.opendj</groupId>
-                        <artifactId>opendj-server-legacy</artifactId>
-                        <version>${project.version}</version>
-                        <classifier>server-man-pages</classifier>
-                        <outputDirectory>${project.build.directory}/dependency/man</outputDirectory>
-                      </artifactItem>
-                    </artifactItems>
-                  </configuration>
-                </execution>
-              </executions>
-            </plugin>
-
-            <!-- Filter deb install and remove scripts -->
-            <plugin>
-              <artifactId>maven-resources-plugin</artifactId>
-              <executions>
-                <execution>
-                  <id>copy-deb-scripts</id>
-                  <phase>verify</phase>
-                  <goals>
-                    <goal>copy-resources</goal>
-                  </goals>
-                  <configuration>
-                    <outputDirectory>${project.build.directory}/deb/control</outputDirectory>
-                    <resources>
-                      <resource>
-                        <directory>${basedir}/resource/debian/control</directory>
-                        <filtering>true</filtering>
-                      </resource>
-                    </resources>
-                  </configuration>
-                </execution>
-              </executions>
-            </plugin>
-
-            <!-- Generates changelog.Debian.gz file -->
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-antrun-plugin</artifactId>
-              <executions>
-                <execution>
-                  <id>generate-deb-gzipped-changelog</id>
-                  <phase>verify</phase>
-                  <goals>
-                    <goal>run</goal>
-                  </goals>
-                  <configuration>
-                    <target>
-                      <gzip src="resource/debian/changelog" destfile="${project.build.directory}/deb/changelog.Debian.gz" />
-                    </target>
-                  </configuration>
-                </execution>
-                <execution>
-                  <id>gzip-man-pages</id>
-                  <phase>verify</phase>
-                  <goals>
-                    <goal>run</goal>
-                  </goals>
-                  <configuration>
-                    <target>
-                      <apply executable="gzip"><!-- Must we also build these packages on Windows? -->
-                        <arg value="-9" />
-                        <fileset dir="${manpage.dir}" />
-                      </apply>
-                    </target>
-                  </configuration>
-                </execution>
-              </executions>
-            </plugin>
-
-            <!-- Generates the deb package -->
-            <plugin>
-              <groupId>org.vafer</groupId>
-              <artifactId>jdeb</artifactId>
-              <version>1.3</version>
-              <executions>
-                <execution>
-                  <phase>verify</phase>
-                  <goals>
-                    <goal>jdeb</goal>
-                  </goals>
-                  <configuration>
-                    <deb>${project.build.directory}/deb/${lowerCaseProductName}_${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}-${deb.release}.${maven.build.timestamp}_all.deb</deb>
-                    <controlDir>${project.build.directory}/deb/control</controlDir>
-                    <dataSet>
-                      <!-- OpenDJ service file -->
-                      <data>
-                        <src>${basedir}/resource/sysv/opendj</src>
-                        <type>file</type>
-                        <mapper>
-                          <type>perm</type>
-                          <prefix>/etc/init.d</prefix>
-                          <filemode>755</filemode>
-                        </mapper>
-                      </data>
-
-                      <!-- Debian copyright file in documentation -->
-                      <data>
-                        <src>${basedir}/resource/debian/copyright</src>
-                        <type>file</type>
-                        <mapper>
-                          <type>perm</type>
-                          <prefix>${deb.docprefix}</prefix>
-                        </mapper>
-                      </data>
-
-                      <!-- Debian changelog file in documentation -->
-                      <data>
-                        <src>${project.build.directory}/deb/changelog.Debian.gz</src>
-                        <type>file</type>
-                        <mapper>
-                          <type>perm</type>
-                          <prefix>${deb.docprefix}</prefix>
-                        </mapper>
-                      </data>
-
-                      <!-- OpenDJ archive documentation files -->
-                      <data>
-                        <src>${project.build.directory}/package/${lowerCaseProductName}</src>
-                        <type>directory</type>
-                        <includes>legal-notices/**, copyright, example-plugin.zip, changelog.Debian.gz</includes>
-                        <mapper>
-                          <type>perm</type>
-                          <prefix>${deb.docprefix}</prefix>
-                        </mapper>
-                      </data>
-
-                      <!-- OpenDJ man pages -->
-                      <data>
-                        <src>${manpage.dir}</src>
-                        <type>directory</type>
-                        <mapper>
-                          <type>perm</type>
-                          <prefix>${deb.prefix}/share/man</prefix>
-                        </mapper>
-                      </data>
-
-                      <!-- OpenDJ archive files without specific permission -->
-                      <data>
-                        <src>${project.build.directory}/package/${lowerCaseProductName}</src>
-                        <type>directory</type>
-                        <excludes>**/bat/**, **/*.app/**, **/*.bat*, **/*.exe*, bin/*, template/**/*, lib/*.sh, setup, uninstall, upgrade, legal-notices/**, copyright, README, example-plugin.zip, opendj</excludes>
-                        <mapper>
-                          <type>perm</type>
-                          <prefix>${deb.prefix}</prefix>
-                        </mapper>
-                      </data>
-
-                      <!-- OpenDJ archive files with specific permission -->
-                      <data>
-                        <src>${project.build.directory}/package/${lowerCaseProductName}</src>
-                        <type>directory</type>
-                        <includes>lib/*.sh, bin/*, setup, uninstall, upgrade</includes>
-                        <excludes>bin/ControlPanel.app/**</excludes>
-                        <mapper>
-                          <type>perm</type>
-                          <prefix>${deb.prefix}</prefix>
-                          <filemode>755</filemode>
-                        </mapper>
-                      </data>
-
-                      <!-- OpenDJ archive template folder -->
-                      <data>
-                        <src>${project.build.directory}/package/${lowerCaseProductName}</src>
-                        <type>directory</type>
-                        <includes>template/**/*</includes>
-                        <mapper>
-                          <type>perm</type>
-                          <prefix>${deb.prefix}</prefix>
-                          <filemode>444</filemode>
-                        </mapper>
-                      </data>
-                    </dataSet>
-                  </configuration>
-                </execution>
-              </executions>
-            </plugin>
-          </plugins>
-        </build>
-    </profile>
-
-    <!-- Build the RPM package -->
-    <profile>
-      <id>package-rpm</id>
-
-      <properties>
-        <rpm.prefix>/opt/${lowerCaseProductName}</rpm.prefix>
-      </properties>
-
-      <build>
-        <plugins>
-          <plugin>
-            <artifactId>maven-dependency-plugin</artifactId>
-            <executions>
-              <execution>
-                <id>unpack-man-pages</id>
-                <phase>package</phase>
-                <goals>
-                  <goal>unpack</goal>
-                </goals>
-                <configuration>
-                  <artifactItems>
-                    <artifactItem>
-                      <groupId>org.forgerock.opendj</groupId>
-                      <artifactId>opendj-server-legacy</artifactId>
-                      <version>${project.version}</version>
-                      <classifier>server-man-pages</classifier>
-                      <outputDirectory>${project.build.directory}/dependency/man</outputDirectory>
-                    </artifactItem>
-                  </artifactItems>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-
-          <plugin>
-            <groupId>org.codehaus.mojo</groupId>
-            <artifactId>rpm-maven-plugin</artifactId>
-            <version>2.0.1</version>
-            <executions>
-              <execution>
-                <id>properties</id>
-                <phase>verify</phase>
-                <goals>
-                  <goal>version</goal>
-                </goals>
-              </execution>
-              <execution>
-                  <id>generate-rpm-package</id>
-                  <phase>verify</phase>
-                  <goals>
-                      <goal>rpm</goal>
-                  </goals>
-              </execution>
-            </executions>
-            <configuration>
-              <summary>${shortProductName}</summary>
-              <name>${lowerCaseProductName}</name>
-              <prefix>${rpm.prefix}</prefix>
-              <license>CDDL</license>
-              <group>Productivity/Networking/LDAP/Servers</group>
-              <url>${docHomepageUrl}</url>
-              <needarch>noarch</needarch>
-              <targetOS>linux</targetOS>
-              <description>
-                OpenDJ LDAP Server
-                OpenDJ is an LDAPv3 compliant directory service, developed for the Java
-                platform, providing a high performance, highly available and secure store
-                for the identities managed by enterprises. Its easy installation process,
-                combined with the power of the Java platform makes OpenDJ one of the
-                simplest and fastest directory servers to deploy and manage.
-              </description>
-              <requires>
-                <require>jre &gt;= 1.7</require>
-              </requires>
-
-              <defineStatements>
-                <defineStatement>arch noarch</defineStatement>
-                <defineStatement>_prefix ${rpm.prefix}</defineStatement>
-                <defineStatement>_pre ${shortProductName}-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</defineStatement>
-                <defineStatement>__os_install_post %{nil}</defineStatement>
-              </defineStatements>
-
-              <mappings>
-                <!-- Add directories -->
-                <mapping>
-                  <directory>${rpm.prefix}</directory>
-                </mapping>
-                <mapping>
-                  <directory>${rpm.prefix}/bin</directory>
-                </mapping>
-                <mapping>
-                  <directory>${rpm.prefix}/lib</directory>
-                </mapping>
-                <mapping>
-                  <directory>${rpm.prefix}/lib/extensions</directory>
-                </mapping>
-                <mapping>
-                  <directory>${rpm.prefix}/share</directory>
-                </mapping>
-                <mapping>
-                  <directory>${rpm.prefix}/share/man</directory>
-                </mapping>
-                <mapping>
-                  <directory>${rpm.prefix}/snmp</directory>
-                </mapping>
-                <mapping>
-                  <directory>${rpm.prefix}/snmp/mib</directory>
-                </mapping>
-
-                <!-- Add service script -->
-                <mapping>
-                  <directory>/etc/init.d</directory>
-                  <directoryIncluded>false</directoryIncluded>
-                  <filemode>755</filemode>
-                  <sources>
-                    <source>
-                      <location>${basedir}/resource/sysv/opendj</location>
-                    </source>
-                  </sources>
-                </mapping>
-
-                <!-- Add executable scripts and libraries -->
-                <mapping>
-                  <directory>${rpm.prefix}</directory>
-                  <filemode>755</filemode>
-                  <sources>
-                    <source>
-                      <location>${project.build.directory}/package/${lowerCaseProductName}</location>
-                      <includes>
-                        <include>bin/**</include>
-                        <include>lib/*.sh</include>
-                        <include>setup</include>
-                        <include>uninstall</include>
-                        <include>upgrade</include>
-                      </includes>
-                      <excludes>
-                        <exclude>**/*.exe</exclude>
-                        <exclude>**/*bat</exclude>
-                        <exclude>**/*.app/**</exclude>
-                        <exclude>**/*.app</exclude>
-                      </excludes>
-                    </source>
-                  </sources>
-                </mapping>
-
-                <!-- Add man pages -->
-                <mapping>
-                  <directory>${rpm.prefix}/share/man</directory>
-                  <sources>
-                    <source>
-                      <location>${project.build.directory}/dependency/man</location>
-                      <includes>
-                        <include>**/*.*</include>
-                      </includes>
-                    </source>
-                  </sources>
-                </mapping>
-
-                <!-- Add other files to the rpm -->
-                <mapping>
-                  <directory>${rpm.prefix}</directory>
-                  <sources>
-                    <source>
-                      <location>${project.build.directory}/package/${lowerCaseProductName}</location>
-                      <excludes>
-                        <exclude>template/**</exclude>
-                        <exclude>bin/**</exclude>
-                        <exclude>lib/*.sh</exclude>
-                        <exclude>setup</exclude>
-                        <exclude>uninstall</exclude>
-                        <exclude>upgrade</exclude>
-                        <exclude>**/*.exe</exclude>
-                        <exclude>**/*bat</exclude>
-                        <exclude>**/readme</exclude>
-                        <exclude>**/README</exclude>
-                        <exclude>**/*.app/**</exclude>
-                        <exclude>**/*.app</exclude>
-                      </excludes>
-                    </source>
-                  </sources>
-                </mapping>
-
-                <!-- Add template dir -->
-                <mapping>
-                  <directory>${rpm.prefix}/template</directory>
-                  <sources>
-                    <source>
-                      <location>${project.build.directory}/package/${lowerCaseProductName}/template</location>
-                    </source>
-                  </sources>
-                </mapping>
-              </mappings>
-              <preinstallScriptlet>
-                  <scriptFile>${basedir}/resource/rpm/specs/preinstall.sh</scriptFile>
-                  <fileEncoding>utf-8</fileEncoding>
-              </preinstallScriptlet>
-              <postinstallScriptlet>
-                  <scriptFile>${basedir}/resource/rpm/specs/postinstall.sh</scriptFile>
-                  <fileEncoding>utf-8</fileEncoding>
-              </postinstallScriptlet>
-              <preremoveScriptlet>
-                  <scriptFile>${basedir}/resource/rpm/specs/preuninstall.sh</scriptFile>
-                  <fileEncoding>utf-8</fileEncoding>
-              </preremoveScriptlet>
-              <postremoveScriptlet>
-                  <scriptFile>${basedir}/resource/rpm/specs/postuninstall.sh</scriptFile>
-                  <fileEncoding>utf-8</fileEncoding>
-              </postremoveScriptlet>
-              <cleanScriptlet>
-                  <scriptFile>${basedir}/resource/rpm/specs/clean.sh</scriptFile>
-                  <fileEncoding>utf-8</fileEncoding>
-              </cleanScriptlet>
-              <changelogFile>${basedir}/resource/rpm/changelog</changelogFile>
-            </configuration>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-
-    <!-- Build the solaris package -->
-    <profile>
-      <id>package-svr4</id>
-      <build>
-        <plugins>
-          <plugin>
-            <artifactId>maven-dependency-plugin</artifactId>
-            <executions>
-              <execution>
-                <id>unpack-man-pages</id>
-                <phase>package</phase>
-                <goals>
-                  <goal>unpack</goal>
-                </goals>
-                <configuration>
-                  <artifactItems>
-                    <artifactItem>
-                      <groupId>org.forgerock.opendj</groupId>
-                      <artifactId>opendj-server-legacy</artifactId>
-                      <version>${project.version}</version>
-                      <classifier>server-man-pages</classifier>
-                      <outputDirectory>${project.build.directory}/dependency/man</outputDirectory>
-                    </artifactItem>
-                  </artifactItems>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-antrun-plugin</artifactId>
-            <executions>
-              <execution>
-                <id>generate-svr4-package</id>
-                <phase>verify</phase>
-                <goals>
-                  <goal>run</goal>
-                </goals>
-                <configuration>
-                  <target>
-                    <ant antfile="${basedir}/build-svr4.xml">
-                      <target name="svr4" />
-                    </ant>
-                  </target>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-
   </profiles>
 
 </project>

--
Gitblit v1.10.0