You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2015/03/17 17:37:57 UTC
svn commit: r1667354 - in /directory/shared/trunk/distribution: pom.xml
src/main/assembly/anon.xml
Author: elecharny
Date: Tue Mar 17 16:37:57 2015
New Revision: 1667354
URL: http://svn.apache.org/r1667354
Log:
Added the generation of the anonymizer jar
Added:
directory/shared/trunk/distribution/src/main/assembly/anon.xml
Modified:
directory/shared/trunk/distribution/pom.xml
Modified: directory/shared/trunk/distribution/pom.xml
URL: http://svn.apache.org/viewvc/directory/shared/trunk/distribution/pom.xml?rev=1667354&r1=1667353&r2=1667354&view=diff
==============================================================================
--- directory/shared/trunk/distribution/pom.xml (original)
+++ directory/shared/trunk/distribution/pom.xml Tue Mar 17 16:37:57 2015
@@ -32,10 +32,71 @@
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
+ <artifactId>api-asn1-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>api-i18n</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>api-ldap-client-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>api-ldap-extras-aci</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>api-ldap-model</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>api-ldap-schema-converter</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>api-ldap-schema-data</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>api-util</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
<artifactId>api-all</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>antlr</groupId>
+ <artifactId>antlr</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
</dependencies>
+
<profiles>
<profile>
<id>apache-release</id>
@@ -48,6 +109,7 @@
<createChecksum>true</createChecksum>
</configuration>
</plugin>
+
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
@@ -65,6 +127,22 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</artifactItem>
+
+ <artifactItem>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </artifactItem>
+
+ <artifactItem>
+ <groupId>antlr</groupId>
+ <artifactId>antlr</artifactId>
+ </artifactItem>
+
+ <artifactItem>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ </artifactItem>
+
<artifactItem>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
@@ -74,10 +152,12 @@
</execution>
</executions>
</plugin>
+
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
+ <id>package</id>
<phase>package</phase>
<configuration>
<tarLongFileMode>gnu</tarLongFileMode>
@@ -90,8 +170,29 @@
<goal>single</goal>
</goals>
</execution>
+
+ <execution>
+ <id>anon</id>
+ <phase>package</phase>
+ <configuration>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ <descriptors>
+ <descriptor>src/main/assembly/anon.xml</descriptor>
+ </descriptors>
+ <archive>
+ <manifest>
+ <mainClass>org.apache.directory.ldap.client.api.LdifAnonymizer</mainClass>
+ </manifest>
+ </archive>
+ <finalName>anon-${project.version}.jar</finalName>
+ </configuration>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
</executions>
</plugin>
+
<plugin>
<groupId>org.apache.geronimo.genesis.plugins</groupId>
<artifactId>tools-maven-plugin</artifactId>
@@ -109,6 +210,7 @@
</execution>
</executions>
</plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Added: directory/shared/trunk/distribution/src/main/assembly/anon.xml
URL: http://svn.apache.org/viewvc/directory/shared/trunk/distribution/src/main/assembly/anon.xml?rev=1667354&view=auto
==============================================================================
--- directory/shared/trunk/distribution/src/main/assembly/anon.xml (added)
+++ directory/shared/trunk/distribution/src/main/assembly/anon.xml Tue Mar 17 16:37:57 2015
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Rev: $ $Date: $ -->
+<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+ <id>anon</id>
+
+ <formats>
+ <format>jar</format>
+ </formats>
+
+ <baseDirectory>anon-${project-version}.jar</baseDirectory>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <!-- The LDAP API dependencies -->
+ <include>org.apache.directory.api:api-asn1-api:jar:${project.version}</include>
+ <include>org.apache.directory.api:api-i18n:jar:${project.version}</include>
+ <include>org.apache.directory.api:api-ldap-client-api:jar:${project.version}</include>
+ <include>org.apache.directory.api:api-ldap-extras-aci:jar:${project.version}</include>
+ <include>org.apache.directory.api:api-ldap-model:jar:${project.version}</include>
+ <include>org.apache.directory.api:api-ldap-schema-converter:jar:${project.version}</include>
+ <include>org.apache.directory.api:api-ldap-schema-data:jar:${project.version}</include>
+ <include>org.apache.directory.api:api-util:jar:${project.version}</include>
+
+ <!-- The external dependencies -->
+ <include>antlr:antlr:jar:${antlr.version}</include>
+ <include>commons-collections:commons-collections:jar:${commons.collections.version}</include>
+ <include>log4j:log4j:jar:${log4j.version}</include>
+ <include>org.slf4j:slf4j-api:jar:${slf4j.api.version}</include>
+ <include>org.slf4j:slf4j-log4j12:jar:${slf4j.log4j12.version}</include>
+ </includes>
+ <unpack>true</unpack>
+ </dependencySet>
+ </dependencySets>
+</assembly>