From f0f7ea9b9da58cb9570de76856026a5d88a00aa8 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Thu, 21 Jul 2011 13:31:52 +0000
Subject: [PATCH] Fix OPENDJ-240: Add OpenDJ.jar to list of opendj-server artifacts
---
/dev/null | 42 ---------------------
opends/pom.xml | 47 ++++++++++++++++-------
2 files changed, 33 insertions(+), 56 deletions(-)
diff --git a/opends/pom.xml b/opends/pom.xml
index cbef1ff..d97d128 100644
--- a/opends/pom.xml
+++ b/opends/pom.xml
@@ -109,13 +109,13 @@
<id>generate-docs</id>
<phase>pre-site</phase>
<goals>
- <goal>run</goal>
+ <goal>run</goal>
</goals>
<configuration>
- <target>
- <ant target="javadoc" />
- <ant target="configguide" />
- </target>
+ <target>
+ <ant target="javadoc" />
+ <ant target="configguide" />
+ </target>
</configuration>
</execution>
<execution>
@@ -138,21 +138,40 @@
</executions>
</plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2</version>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.7</version>
<executions>
<execution>
- <id>make-assembly</id>
+ <id>parse-version</id>
+ <goals>
+ <goal>parse-version</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
<phase>package</phase>
<goals>
- <goal>single</goal>
+ <goal>attach-artifact</goal>
</goals>
<configuration>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>src/main/assembly/descriptor.xml</descriptor>
- </descriptors>
+ <artifacts>
+ <artifact>
+ <file>build/package/OpenDJ-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.zip</file>
+ <type>zip</type>
+ </artifact>
+ <artifact>
+ <file>build/package/OpenDJ-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}/lib/OpenDJ.jar</file>
+ <type>jar</type>
+ </artifact>
+ </artifacts>
</configuration>
</execution>
</executions>
diff --git a/opends/src/main/assembly/descriptor.xml b/opends/src/main/assembly/descriptor.xml
deleted file mode 100644
index 3622b40..0000000
--- a/opends/src/main/assembly/descriptor.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0"?>
-<!--
- ! CDDL HEADER START
- !
- ! The contents of this file are subject to the terms of the
- ! Common Development and Distribution License, Version 1.0 only
- ! (the "License"). You may not use this file except in compliance
- ! with the License.
- !
- ! You can obtain a copy of the license at
- ! trunk/opendj3/legal-notices/CDDLv1_0.txt
- ! or http://forgerock.org/license/CDDLv1.0.html.
- ! See the License for the specific language governing permissions
- ! and limitations under the License.
- !
- ! When distributing Covered Code, include this CDDL HEADER in each
- ! file and include the License file at
- ! trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
- ! add the following below this CDDL HEADER, with the fields enclosed
- ! by brackets "[]" replaced with your own identifying information:
- ! Portions Copyright [yyyy] [name of copyright owner]
- !
- ! CDDL HEADER END
- !
- ! Copyright 2011 ForgeRock AS
- !
- -->
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
- http://maven.apache.org/xsd/assembly-1.1.2.xsd">
- <id>opendj-server</id>
- <formats>
- <format>zip</format>
- </formats>
- <fileSets>
- <fileSet>
- <directory>build/package/OpenDJ-2.5.0</directory>
- <outputDirectory>/</outputDirectory>
- </fileSet>
- </fileSets>
-</assembly>
--
Gitblit v1.10.0