You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2010/09/17 13:27:11 UTC
svn commit: r998077 -
/directory/apacheds/branches/apacheds-apacheds-2.0/service/pom.xml
Author: pamarcelot
Date: Fri Sep 17 11:27:11 2010
New Revision: 998077
URL: http://svn.apache.org/viewvc?rev=998077&view=rev
Log:
Updated pom.xml to shade all dependencies in the final jar and use the UberJarMain class as the main class of the jar.
Modified:
directory/apacheds/branches/apacheds-apacheds-2.0/service/pom.xml
Modified: directory/apacheds/branches/apacheds-apacheds-2.0/service/pom.xml
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-apacheds-2.0/service/pom.xml?rev=998077&r1=998076&r2=998077&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-apacheds-2.0/service/pom.xml (original)
+++ directory/apacheds/branches/apacheds-apacheds-2.0/service/pom.xml Fri Sep 17 11:27:11 2010
@@ -51,7 +51,59 @@
<groupId>org.apache.directory.server</groupId>
<version>${project.version}</version>
</dependency>
+
+ <!-- Moving the scope of inherited slf4j-log4j12 dependency to compile -->
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <scope>compile</scope>
+ </dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <!-- Adding the mainClass attribute to the MANIFEST.MF file -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <mainClass>org.apache.directory.server.UberjarMain</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+
+ <!--
+ Using the Maven Shade plugin to combined all dependencies into a single jar
+ containing everything needed to launch the server.
+ -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <filters>
+ <filter>
+ <artifact>bouncycastle:bcprov-jdk15</artifact>
+ <excludes>
+ <exclude>META-INF/BCKEY.SF</exclude>
+ <exclude>META-INF/BCKEY.DSA</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>