dsml-war-assembly.xml revision 1e62bcce71e1b04ac12ec4ba67a2fa1ec84cf67e
<!--
! 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 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
! 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 2015 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>dsml-war</id>
<baseDirectory></baseDirectory>
<!-- Put un-versioned dependencies (jars) into lib directory -->
<dependencySets>
<dependencySet>
<outputDirectory>WEB-INF/lib</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
<includes>
<include>org.forgerock.commons:forgerock-util</include>
<include>org.forgerock.commons:i18n-core</include>
<include>org.forgerock.commons:i18n-slf4j</include>
<include>org.slf4j:slf4j-api</include>
<include>org.forgerock.opendj:opendj-cli</include>
<include>org.forgerock.opendj:opendj-config</include>
<include>org.forgerock.opendj:opendj-core</include>
</includes>
</dependencySet>
</dependencySets>
<fileSets>
<!-- Include the Forgerock binary license file if exists -->
<fileSet>
<directory>${project.build.directory}/legal-notices</directory>
<outputDirectory>legal-notices</outputDirectory>
</fileSet>
<!-- Add legal-notices/THIRDPARTYREADME.txt -->
<fileSet>
<directory>${basedir}/legal-notices</directory>
<outputDirectory>WEB-INF/legal-notices</outputDirectory>
<includes>
<include>THIRDPARTYREADME.txt</include>
</includes>
</fileSet>
<!-- Add legal-notices/CDDLv1_0.txt -->
<fileSet>
<directory>${basedir}/legal-notices</directory>
<outputDirectory>WEB-INF/legal-notices</outputDirectory>
<includes>
<include>CDDLv1_0.txt</include>
</includes>
</fileSet>
<fileSet>
<directory>${jars.dir}/</directory>
<outputDirectory>WEB-INF/lib</outputDirectory>
<includes>
<include>${shortProductName}*.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.build.outputDirectory}/org/opends/dsml/protocol</directory>
<outputDirectory>WEB-INF/classes/org/opends/dsml/protocol</outputDirectory>
</fileSet>
<fileSet>
<directory>${basedir}/resource/dsml/webapp</directory>
<outputDirectory>WEB-INF</outputDirectory>
</fileSet>
</fileSets>
<files>
<!-- DSMLv2.xsd -->
<file>
<source>${basedir}/resource/dsml/schema/DSMLv2.xsd</source>
<outputDirectory>WEB-INF/classes/resources</outputDirectory>
</file>
</files>
</assembly>