You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by lr...@apache.org on 2016/11/01 21:02:44 UTC

incubator-systemml git commit: [SYSTEMML-926] Move creation of standalone jar to it's own profile

Repository: incubator-systemml
Updated Branches:
  refs/heads/master e63377e5b -> 2c8eefd76


[SYSTEMML-926] Move creation of standalone jar to it's own profile


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

Branch: refs/heads/master
Commit: 2c8eefd76af21c5493c63f11edb81bece4456284
Parents: e63377e
Author: Luciano Resende <lr...@apache.org>
Authored: Tue Nov 1 12:46:05 2016 -0700
Committer: Luciano Resende <lr...@apache.org>
Committed: Tue Nov 1 14:02:35 2016 -0700

----------------------------------------------------------------------
 pom.xml | 57 ++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 38 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/2c8eefd7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 7964d3c..be4ba25 100644
--- a/pom.xml
+++ b/pom.xml
@@ -713,25 +713,6 @@
 							</execution>
 
 							<execution>
-								<id>create-standalone-jar</id>
-								<phase>package</phase>
-								<goals>
-									<goal>single</goal>
-								</goals>
-								<configuration>
-									<descriptors>
-										<descriptor>src/assembly/standalone-jar.xml</descriptor>
-									</descriptors>
-									<archive>
-										<index>true</index>
-										<manifest>
-											<mainClass>org.apache.sysml.api.DMLScript</mainClass>
-										</manifest>
-									</archive>
-								</configuration>
-							</execution>
-
-							<execution>
 								<id>create-binary-standalone-distribution-assembly</id>
 								<phase>package</phase>
 								<goals>
@@ -834,6 +815,44 @@
 				</plugins>
 			</build>
 		</profile>
+
+
+		<profile>
+			<!-- Profile to create standalone jar.
+				Execute with `mvn clean package -P standalone-jar` -->
+			<id>standalone-jar</id>
+			<build>
+				<plugins>
+					<plugin>
+						<artifactId>maven-assembly-plugin</artifactId>
+						<version>2.4</version><!--$NO-MVN-MAN-VER$-->
+						<configuration>
+							<tarLongFileMode>gnu</tarLongFileMode>
+						</configuration>
+						<executions>
+							<execution>
+								<id>create-standalone-jar</id>
+								<phase>package</phase>
+								<goals>
+									<goal>single</goal>
+								</goals>
+								<configuration>
+									<descriptors>
+										<descriptor>src/assembly/standalone-jar.xml</descriptor>
+									</descriptors>
+									<archive>
+										<index>true</index>
+										<manifest>
+											<mainClass>org.apache.sysml.api.DMLScript</mainClass>
+										</manifest>
+									</archive>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
 	</profiles>