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

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new f375795  - Added the maven-assembly-plugin to package assemblies.
f375795 is described below

commit f375795759892fa92b671fa675fbf80be418d42f
Author: Christofer Dutz <christofer.d...@c-ware.de>
AuthorDate: Tue Apr 30 13:26:48 2019 +0200

    - Added the maven-assembly-plugin to package assemblies.
---
 plc4py/pom.xml                 | 22 ++++++++++++++++++++
 plc4py/src/assembly/python.xml | 47 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/plc4py/pom.xml b/plc4py/pom.xml
index 3bcd1e4..440ce70 100644
--- a/plc4py/pom.xml
+++ b/plc4py/pom.xml
@@ -191,6 +191,28 @@
 
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <version>3.1.1</version>
+        <executions>
+          <execution>
+            <id>package-python</id>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+            <configuration>
+              <finalName>${project.artifactId}-${project.version}</finalName>
+              <appendAssemblyId>false</appendAssemblyId>
+              <descriptors>
+                <descriptor>src/assembly/python.xml</descriptor>
+              </descriptors>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-remote-resources-plugin</artifactId>
         <configuration>
           <skip>true</skip>
diff --git a/plc4py/src/assembly/python.xml b/plc4py/src/assembly/python.xml
new file mode 100644
index 0000000..706ca44
--- /dev/null
+++ b/plc4py/src/assembly/python.xml
@@ -0,0 +1,47 @@
+<!--
+  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/ASSEMBLY/2.0.0";
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 
http://maven.apache.org/xsd/assembly-2.0.0.xsd";>
+
+  <id>python</id>
+
+  <formats>
+    <format>zip</format>
+    <!-- Other formats Python seems to support (Should remove the not needed 
ones) -->
+    <format>tar</format>
+    <format>tar.gz</format>
+    <format>tar.bz2</format>
+    <format>tar.xz</format>
+    <!-- For testing (To see what's included in the archives without 
unpacking) -->
+    <format>dir</format>
+  </formats>
+
+  <includeBaseDirectory>false</includeBaseDirectory>
+
+  <fileSets>
+    <fileSet>
+      <directory>${project.build.directory}/classes</directory>
+      <includes>
+        <include>**</include>
+      </includes>
+      <outputDirectory/>
+    </fileSet>
+  </fileSets>
+</assembly>
\ No newline at end of file

Reply via email to