You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2016/08/05 22:54:43 UTC

[2/2] incubator-mnemonic git commit: MNEMONIC-87: Attach OS and ARCH info to platform specific artifacts

MNEMONIC-87: Attach OS and ARCH info to platform specific artifacts


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

Branch: refs/heads/master
Commit: e65c540f74afe4502b70c963b6c9311af57b4164
Parents: c3a1b34
Author: Wang, Gang(Gary) <ga...@intel.com>
Authored: Fri Aug 5 15:53:01 2016 -0700
Committer: Wang, Gang(Gary) <ga...@intel.com>
Committed: Fri Aug 5 15:53:01 2016 -0700

----------------------------------------------------------------------
 .../mnemonic-utilities-service/pom.xml          |  3 +-
 mnemonic-computing-services/pom.xml             | 42 ++++++++++++--------
 .../mnemonic-nvml-vmem-service/pom.xml          |  3 +-
 .../mnemonic-pmalloc-service/pom.xml            |  3 +-
 mnemonic-memory-services/pom.xml                | 42 ++++++++++++--------
 5 files changed, 56 insertions(+), 37 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/e65c540f/mnemonic-computing-services/mnemonic-utilities-service/pom.xml
----------------------------------------------------------------------
diff --git a/mnemonic-computing-services/mnemonic-utilities-service/pom.xml b/mnemonic-computing-services/mnemonic-utilities-service/pom.xml
index 81487b6..f829020 100644
--- a/mnemonic-computing-services/mnemonic-utilities-service/pom.xml
+++ b/mnemonic-computing-services/mnemonic-utilities-service/pom.xml
@@ -19,7 +19,8 @@
   under the License.
 -->
 
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <groupId>org.apache.mnemonic</groupId>

http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/e65c540f/mnemonic-computing-services/pom.xml
----------------------------------------------------------------------
diff --git a/mnemonic-computing-services/pom.xml b/mnemonic-computing-services/pom.xml
index cf411fd..38d66c8 100644
--- a/mnemonic-computing-services/pom.xml
+++ b/mnemonic-computing-services/pom.xml
@@ -62,6 +62,13 @@
   </dependencies>
 
   <build>
+    <extensions>
+      <extension>
+        <groupId>kr.motd.maven</groupId>
+        <artifactId>os-maven-plugin</artifactId>
+        <version>1.4.0.Final</version>
+      </extension>
+    </extensions>
     <plugins>
     </plugins>
     <pluginManagement>
@@ -72,7 +79,6 @@
           <version>2.6</version>
           <configuration>
             <forceCreation>true</forceCreation>
-            <outputDirectory>${service.basedir}/service-dist</outputDirectory>
             <archive>
               <addMavenDescriptor>false</addMavenDescriptor>
             </archive>
@@ -82,28 +88,30 @@
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-shade-plugin</artifactId>
           <version>2.4.3</version>
+          <configuration>
+            <minimizeJar>true</minimizeJar>
+            <filters>
+              <filter>
+                <artifact>*:*</artifact>
+                <includes>
+                </includes>
+                <excludes>
+                  <exclude>META-INFO/**/**</exclude>
+                  <exclude>META-INFO/services/**</exclude>
+                  <exclude>META-INFO/maven/**</exclude>
+                </excludes>
+              </filter>
+            </filters>
+            <outputDirectory>${service.basedir}/service-dist</outputDirectory>
+            <shadedArtifactAttached>true</shadedArtifactAttached>
+            <shadedClassifierName>${os.detected.classifier}</shadedClassifierName>
+          </configuration>
           <executions>
             <execution>
               <phase>package</phase>
               <goals>
                 <goal>shade</goal>
               </goals>
-              <configuration>
-                <minimizeJar>true</minimizeJar>
-                <filters>
-                  <filter>
-                    <artifact>*:*</artifact>
-                    <includes>
-                    </includes>
-                    <excludes>
-                      <exclude>META-INFO/**/**</exclude>
-                      <exclude>META-INFO/services/**</exclude>
-                      <exclude>META-INFO/maven/**</exclude>
-                    </excludes>
-                  </filter>
-
-                </filters>
-              </configuration>
             </execution>
           </executions>
         </plugin>

http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/e65c540f/mnemonic-memory-services/mnemonic-nvml-vmem-service/pom.xml
----------------------------------------------------------------------
diff --git a/mnemonic-memory-services/mnemonic-nvml-vmem-service/pom.xml b/mnemonic-memory-services/mnemonic-nvml-vmem-service/pom.xml
index e6db4fb..0a65499 100644
--- a/mnemonic-memory-services/mnemonic-nvml-vmem-service/pom.xml
+++ b/mnemonic-memory-services/mnemonic-nvml-vmem-service/pom.xml
@@ -19,7 +19,8 @@
   under the License.
 -->
 
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <groupId>org.apache.mnemonic</groupId>

http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/e65c540f/mnemonic-memory-services/mnemonic-pmalloc-service/pom.xml
----------------------------------------------------------------------
diff --git a/mnemonic-memory-services/mnemonic-pmalloc-service/pom.xml b/mnemonic-memory-services/mnemonic-pmalloc-service/pom.xml
index 020431f..4d47d92 100644
--- a/mnemonic-memory-services/mnemonic-pmalloc-service/pom.xml
+++ b/mnemonic-memory-services/mnemonic-pmalloc-service/pom.xml
@@ -19,7 +19,8 @@
   under the License.
 -->
 
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <groupId>org.apache.mnemonic</groupId>

http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/e65c540f/mnemonic-memory-services/pom.xml
----------------------------------------------------------------------
diff --git a/mnemonic-memory-services/pom.xml b/mnemonic-memory-services/pom.xml
index ee7c544..ecc5882 100644
--- a/mnemonic-memory-services/pom.xml
+++ b/mnemonic-memory-services/pom.xml
@@ -57,6 +57,13 @@
   </dependencies>
 
   <build>
+    <extensions>
+      <extension>
+        <groupId>kr.motd.maven</groupId>
+        <artifactId>os-maven-plugin</artifactId>
+        <version>1.4.0.Final</version>
+      </extension>
+    </extensions>
     <plugins>
     </plugins>
     <pluginManagement>
@@ -67,7 +74,6 @@
           <version>2.6</version>
           <configuration>
             <forceCreation>true</forceCreation>
-            <outputDirectory>${service.basedir}/service-dist</outputDirectory>
             <archive>
               <addMavenDescriptor>false</addMavenDescriptor>
             </archive>
@@ -77,28 +83,30 @@
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-shade-plugin</artifactId>
           <version>2.4.3</version>
+          <configuration>
+            <minimizeJar>true</minimizeJar>
+            <filters>
+              <filter>
+                <artifact>*:*</artifact>
+                <includes>
+                </includes>
+                <excludes>
+                  <exclude>META-INFO/**/**</exclude>
+                  <exclude>META-INFO/services/**</exclude>
+                  <exclude>META-INFO/maven/**</exclude>
+                </excludes>
+              </filter>
+            </filters>
+            <outputDirectory>${service.basedir}/service-dist</outputDirectory>
+            <shadedArtifactAttached>true</shadedArtifactAttached>
+            <shadedClassifierName>${os.detected.classifier}</shadedClassifierName>
+          </configuration>
           <executions>
             <execution>
               <phase>package</phase>
               <goals>
                 <goal>shade</goal>
               </goals>
-              <configuration>
-                <minimizeJar>true</minimizeJar>
-                <filters>
-                  <filter>
-                    <artifact>*:*</artifact>
-                    <includes>
-                    </includes>
-                    <excludes>
-                      <exclude>META-INFO/**/**</exclude>
-                      <exclude>META-INFO/services/**</exclude>
-                      <exclude>META-INFO/maven/**</exclude>
-                    </excludes>
-                  </filter>
-
-                </filters>
-              </configuration>
             </execution>
           </executions>
         </plugin>