directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dran...@apache.org
Subject directory-kerby git commit: DIRKRB-351 Create the kerb client api uber jar using the maven shade plugin for fine-grained control
Date Sun, 12 Jul 2015 23:42:02 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master e7300c5a2 -> a19368291


DIRKRB-351 Create the kerb client api uber jar using the maven shade plugin for fine-grained
control


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/a1936829
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/a1936829
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/a1936829

Branch: refs/heads/master
Commit: a193682915170464f5ce81e0b48c1c1256bb7fd1
Parents: e7300c5
Author: drankye <kai.zheng@intel.com>
Authored: Mon Jul 13 07:41:20 2015 +0800
Committer: Drankye <drankye@gmail.com>
Committed: Mon Jul 13 07:41:20 2015 +0800

----------------------------------------------------------------------
 kerby-kerb/kerb-client-api-all/pom.xml | 71 ++++++++++++-----------------
 1 file changed, 30 insertions(+), 41 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/a1936829/kerby-kerb/kerb-client-api-all/pom.xml
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-client-api-all/pom.xml b/kerby-kerb/kerb-client-api-all/pom.xml
index d672636..c813dd5 100644
--- a/kerby-kerb/kerb-client-api-all/pom.xml
+++ b/kerby-kerb/kerb-client-api-all/pom.xml
@@ -31,38 +31,6 @@
       <groupId>org.apache.kerby</groupId>
       <artifactId>kerb-client</artifactId>
       <version>${project.version}</version>
-      <exclusions>
-        <exclusion>
-          <groupId>org.slf4j</groupId>
-          <artifactId>slf4j-api</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.kerby</groupId>
-      <artifactId>kerb-common</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.kerby</groupId>
-      <artifactId>kerb-core</artifactId>
-      <version>${project.version}</version>
-      <exclusions>
-        <exclusion>
-          <groupId>org.apache.kerby</groupId>
-          <artifactId>kerby-asn1</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.kerby</groupId>
-      <artifactId>kerb-crypto</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.kerby</groupId>
-      <artifactId>kerb-util</artifactId>
-      <version>${project.version}</version>
     </dependency>
   </dependencies>
 
@@ -73,25 +41,46 @@
         <plugins>
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-assembly-plugin</artifactId>
-            <version>2.2</version>
+            <artifactId>maven-shade-plugin</artifactId>
+            <version>2.4</version>
             <executions>
               <execution>
-                <id>package-all</id>
                 <phase>package</phase>
                 <goals>
-                  <goal>single</goal>
+                  <goal>shade</goal>
                 </goals>
                 <configuration>
-                  <descriptorRefs>
-                    <descriptorRef>jar-with-dependencies</descriptorRef>
-                  </descriptorRefs>
-                  <finalName>kerb-client-api-all-${project.version}</finalName>
-                  <appendAssemblyId>false</appendAssemblyId>
+                  <finalName>kerb-client-api-all-${project.version}.jar</finalName>
+                  <artifactSet>
+                    <excludes>
+                      <exclude>junit:junit</exclude>
+                      <exclude>org.slf4j:slf4j-api</exclude>
+                      <exclude>org.apache.kerby:kerby-asn1</exclude>
+                    </excludes>
+                  </artifactSet>
                 </configuration>
               </execution>
             </executions>
           </plugin>
+          <plugin>
+            <!-- A temp work around to correct the generated jar file name -->
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.7</version>
+            <executions>
+              <execution>
+                <phase>package</phase>
+                <configuration>
+                  <tasks>
+                    <rename src="target/kerb-client-api-all-${project.version}.jar.pom"
+                            dest="target/kerb-client-api-all-${project.version}.jar" />
+                  </tasks>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
         </plugins>
       </build>
     </profile>


Mime
View raw message