You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by km...@apache.org on 2013/03/22 20:12:06 UTC

[3/9] git commit: Creating full binary release via maven.

Creating full binary release via maven.


Project: http://git-wip-us.apache.org/repos/asf/incubator-knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-knox/commit/dc67e3ff
Tree: http://git-wip-us.apache.org/repos/asf/incubator-knox/tree/dc67e3ff
Diff: http://git-wip-us.apache.org/repos/asf/incubator-knox/diff/dc67e3ff

Branch: refs/heads/master
Commit: dc67e3ff9a16c1b0309862ccc5027bc06d1d6954
Parents: 599ec85
Author: Kevin Minder <ke...@hortonworks.com>
Authored: Fri Mar 22 13:34:33 2013 -0400
Committer: Kevin Minder <ke...@hortonworks.com>
Committed: Fri Mar 22 13:34:33 2013 -0400

----------------------------------------------------------------------
 gateway-release/assembly.xml |   84 +++++++++++++++++++++++++++++++++++++
 gateway-release/pom.xml      |   65 ++++++++++------------------
 2 files changed, 107 insertions(+), 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/dc67e3ff/gateway-release/assembly.xml
----------------------------------------------------------------------
diff --git a/gateway-release/assembly.xml b/gateway-release/assembly.xml
new file mode 100644
index 0000000..592651e
--- /dev/null
+++ b/gateway-release/assembly.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+<assembly>
+    <id>bin</id>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <fileSets>
+        <fileSet>
+            <directory></directory>
+            <outputDirectory></outputDirectory>
+            <includes>
+                <include>**</include>
+            </includes>
+            <excludes>
+                <exclude>src/**</exclude>
+                <exclude>target/**</exclude>
+                <exclude>**/assembly.xml</exclude>
+                <exclude>**/pom.xml</exclude>
+                <exclude>**/.idea/**</exclude>
+                <exclude>**/*.iml</exclude>
+                <exclude>**/.project</exclude>
+                <exclude>**/.settings/**</exclude>
+            </excludes>
+        </fileSet>
+    </fileSets>
+    <dependencySets>
+        <dependencySet>
+            <outputDirectory>dep</outputDirectory>
+            <excludes>
+                <exclude>maven-test:*</exclude>
+            </excludes>
+        </dependencySet>
+        <dependencySet>
+            <useProjectArtifact>false</useProjectArtifact>
+            <outputDirectory>lib</outputDirectory>
+            <includes>
+                <include>${gateway-group}:*</include>
+            </includes>
+            <excludes>
+                <exclude>${gateway-group}:gateway-util-launcher</exclude>
+                <exclude>${gateway-group}:gateway-server-launcher</exclude>
+                <exclude>${gateway-group}:gateway-shell-launcher</exclude>
+                <exclude>${gateway-group}:gateway-test-ldap-launcher</exclude>
+            </excludes>
+        </dependencySet>
+        <dependencySet>
+            <outputDirectory>bin</outputDirectory>
+            <outputFileNameMapping>gateway.jar</outputFileNameMapping>
+            <includes>
+                <include>${gateway-group}:gateway-server-launcher</include>
+            </includes>
+        </dependencySet>
+        <dependencySet>
+            <outputDirectory>bin</outputDirectory>
+            <outputFileNameMapping>shell.jar</outputFileNameMapping>
+            <includes>
+                <include>${gateway-group}:gateway-shell-launcher</include>
+            </includes>
+        </dependencySet>
+        <dependencySet>
+            <outputDirectory>bin</outputDirectory>
+            <outputFileNameMapping>ldap.jar</outputFileNameMapping>
+            <includes>
+                <include>${gateway-group}:gateway-test-ldap-launcher</include>
+            </includes>
+        </dependencySet>
+    </dependencySets>
+</assembly>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/dc67e3ff/gateway-release/pom.xml
----------------------------------------------------------------------
diff --git a/gateway-release/pom.xml b/gateway-release/pom.xml
index 0d9cddb..347d9e4 100644
--- a/gateway-release/pom.xml
+++ b/gateway-release/pom.xml
@@ -27,7 +27,7 @@
     <artifactId>gateway-release</artifactId>
 
     <name>gateway-release</name>
-    <description>The gateway server release packaging.</description>
+    <description>The gateway binary release packaging.</description>
 
     <licenses>
         <license>
@@ -37,49 +37,30 @@
         </license>
     </licenses>
 
-    <profiles>
-        <profile>
-            <id>release</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-shade-plugin</artifactId>
-                        <version>2.0</version>
+    <build>
+        <plugins>
+            <plugin>
+                <inherited>false</inherited>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <version>2.4</version>
+                <executions>
+                    <execution>
+                        <id>binary</id>
+                        <phase>package</phase>
+                        <goals><goal>single</goal></goals>
                         <configuration>
-                            <transformers>
-                                <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
-                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                                    <manifestEntries>
-                                        <Main-Class>org.apache.hadoop.gateway.launcher.Launcher</Main-Class>
-                                    </manifestEntries>
-                                </transformer>
-                            </transformers>
-                            <!-- Excludes signed manifests -->
-                            <filters>
-                                <filter>
-                                    <artifact>*:*</artifact>
-                                    <excludes>
-                                        <exclude>META-INF/*.SF</exclude>
-                                        <exclude>META-INF/*.DSA</exclude>
-                                        <exclude>META-INF/*.RSA</exclude>
-                                    </excludes>
-                                </filter>
-                            </filters>
+                            <finalName>${gateway-artifact}-${gateway-version}</finalName>
+                            <outputDirectory>../target</outputDirectory>
+                            <appendAssemblyId>false</appendAssemblyId>
+                            <descriptors>
+                                <descriptor>assembly.xml</descriptor>
+                            </descriptors>
                         </configuration>
-                        <executions>
-                            <execution>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>shade</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 
     <dependencies>