You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by ra...@apache.org on 2019/01/18 18:59:04 UTC

[mahout] branch master updated: HOTFIX: Source and binary assemblies

This is an automated email from the ASF dual-hosted git repository.

rawkintrevo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mahout.git


The following commit(s) were added to refs/heads/master by this push:
     new 3d54d12  HOTFIX: Source and binary assemblies
     new a194c35  Merge pull request #366 from rawkintrevo/master
3d54d12 is described below

commit 3d54d12b150ffca7e2d5fa50781d4f27140b953d
Author: Trevor a.k.a @rawkintrevo <tr...@gmail.com>
AuthorDate: Fri Jan 18 12:50:18 2019 -0600

    HOTFIX: Source and binary assemblies
---
 buildtools/assembly/bin.xml | 75 +++++++++++++++++++++++++++++++++++++++++++++
 buildtools/assembly/src.xml | 62 +++++++++++++++++++++++++++++++++++++
 pom.xml                     | 37 +++++++++++++++++++++-
 3 files changed, 173 insertions(+), 1 deletion(-)

diff --git a/buildtools/assembly/bin.xml b/buildtools/assembly/bin.xml
new file mode 100644
index 0000000..c119193
--- /dev/null
+++ b/buildtools/assembly/bin.xml
@@ -0,0 +1,75 @@
+<?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 xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+  <id>bin</id>
+  <formats>
+    <format>dir</format>
+    <format>tar.gz</format>
+  </formats>
+
+  <fileSets>
+    <fileSet>
+      <directory>${project.basedir}/lib</directory>
+      <includes>
+        <include>*.jar</include>
+      </includes>
+      <outputDirectory>lib</outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>${project.basedir}/docs</directory>
+      <outputDirectory>docs</outputDirectory>
+    </fileSet>
+
+    <fileSet>
+      <directory>${project.basedir}/..</directory>
+      <outputDirectory/>
+      <useDefaultExcludes>true</useDefaultExcludes>
+      <includes>
+        <include>**/README*</include>
+        <include>**/LICENSE*</include>
+        <include>**/NOTICE*</include>
+        <include>**/*.properties</include>
+      </includes>
+      <excludes>
+        <exclude>**/target/**</exclude>
+      </excludes>
+    </fileSet>
+    <fileSet>
+      <directory>${project.basedir}/../bin</directory>
+      <outputDirectory>bin</outputDirectory>
+      <fileMode>0755</fileMode>
+      <directoryMode>0755</directoryMode>
+    </fileSet>
+    <!--<fileSet>-->
+      <!--<directory>${project.basedir}/../src/conf</directory>-->
+      <!--<outputDirectory>conf</outputDirectory>-->
+      <!--<fileMode>0644</fileMode>-->
+      <!--<directoryMode>0755</directoryMode>-->
+    <!--</fileSet>-->
+    <!--<fileSet>-->
+      <!--<directory>${project.basedir}/../examples/bin</directory>-->
+      <!--<outputDirectory>examples/bin</outputDirectory>-->
+      <!--<fileMode>0755</fileMode>-->
+      <!--<directoryMode>0755</directoryMode>-->
+      <!--<excludes>-->
+        <!--<exclude>work</exclude>-->
+        <!--<exclude>work/**</exclude>-->
+      <!--</excludes>-->
+    <!--</fileSet>-->
+  </fileSets>
+</assembly>
\ No newline at end of file
diff --git a/buildtools/assembly/src.xml b/buildtools/assembly/src.xml
new file mode 100644
index 0000000..deb2ed7
--- /dev/null
+++ b/buildtools/assembly/src.xml
@@ -0,0 +1,62 @@
+<?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 xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+  <id>src</id>
+  <formats>
+    <format>dir</format>
+    <format>tar.gz</format>
+  </formats>
+  <fileSets>
+    <fileSet>
+      <directory>${project.basedir}/..</directory>
+      <outputDirectory/>
+      <useDefaultExcludes>true</useDefaultExcludes>
+      <includes>
+        <include>**/README*</include>
+        <include>**/LICENSE*</include>
+        <include>**/NOTICE*</include>
+        <include>**/pom.xml</include>
+        <include>**/src/**</include>
+        <include>src/conf/**</include>
+        <include>**/build.xml</include>
+        <include>**/*.properties</include>
+      </includes>
+      <excludes>
+        <exclude>**/target/**</exclude>
+      </excludes>
+    </fileSet>
+    <fileSet>
+      <directory>${project.basedir}/../bin</directory>
+      <outputDirectory>bin</outputDirectory>
+      <useDefaultExcludes>true</useDefaultExcludes>
+      <fileMode>0755</fileMode>
+      <directoryMode>0755</directoryMode>
+    </fileSet>
+    <fileSet>
+      <directory>${project.basedir}/../examples/bin</directory>
+      <outputDirectory>examples/bin</outputDirectory>
+      <useDefaultExcludes>true</useDefaultExcludes>
+      <fileMode>0755</fileMode>
+      <directoryMode>0755</directoryMode>
+      <excludes>
+        <exclude>work</exclude>
+        <exclude>work/**</exclude>
+      </excludes>
+    </fileSet>
+  </fileSets>
+</assembly>
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 323d7b3..3ac87d2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -718,7 +718,42 @@
         <plugins>
           <!--maven source-->
           <!--maven jar-->
-          <!--maven assembly-->
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>bin-assembly</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+                <configuration>
+                  <!--<skipAssembly>${mahout.skip.distribution}</skipAssembly>-->
+                  <descriptors>
+                    <descriptor>buildtools/assembly/bin.xml</descriptor>
+                  </descriptors>
+                  <tarLongFileMode>gnu</tarLongFileMode>
+                  <appendAssemblyId>false</appendAssemblyId>
+                </configuration>
+              </execution>
+              <execution>
+                <id>src-assembly</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+                <configuration>
+                  <!--<skipAssembly>${mahout.skip.distribution}</skipAssembly>-->
+                  <descriptors>
+                    <descriptor>buildtools/assembly/src.xml</descriptor>
+                  </descriptors>
+                  <tarLongFileMode>gnu</tarLongFileMode>
+                  <appendAssemblyId>true</appendAssemblyId>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
           <plugin>
             <artifactId>maven-release-plugin</artifactId>
             <configuration>