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

acosentino pushed a commit to branch assembly
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git

commit 0fcc1727533640809fc04fa0e8a27f2a4e880f1a
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed May 6 12:32:53 2020 +0200

    Produce an assembly artifact containing all the released artifacts
---
 pom.xml                     | 26 +++++++++++++++++
 tooling/descriptors/src.xml | 71 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/pom.xml b/pom.xml
index 37402be..45fa0fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -41,6 +41,7 @@
         <maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version>
         <maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
         <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
+        <maven-assembly-plugin.version>3.1.1</maven-assembly-plugin.version>
         <maven-source-plugin.version>3.1.0</maven-source-plugin.version>
         
<maven-checksum-maven-plugin.version>1.7</maven-checksum-maven-plugin.version>
     </properties>
@@ -334,6 +335,31 @@
                             <failIfNoFiles>false</failIfNoFiles><!-- usually, 
no file to do checksum: don't consider error -->
                         </configuration>
                     </plugin>
+                <plugin>
+                     <groupId>org.apache.maven.plugins</groupId>
+                     <artifactId>maven-assembly-plugin</artifactId>
+                     <version>${maven-assembly-plugin.version}</version>
+                        <executions>
+                            <execution>
+                                <id>camel-kafka-connector-assembly</id>
+                                <phase />
+                            </execution>
+                            <execution>
+                                <id>camel-kafka-connector-source-assembly</id>
+                                <phase>package</phase>
+                                <inherited>false</inherited>
+                                <goals>
+                                    <goal>single</goal>
+                                </goals>
+                                <configuration>
+                                    <descriptors>
+                                        
<descriptor>tooling/descriptors/src.xml</descriptor>
+                                    </descriptors>
+                                    <tarLongFileMode>gnu</tarLongFileMode>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
                 </plugins>
             </build>
         </profile>
diff --git a/tooling/descriptors/src.xml b/tooling/descriptors/src.xml
new file mode 100644
index 0000000..35b4ef7
--- /dev/null
+++ b/tooling/descriptors/src.xml
@@ -0,0 +1,71 @@
+<?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>src</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <fileSets>
+    <!-- Binary Files -->
+    <fileSet>
+      <outputDirectory></outputDirectory>
+      <includes>
+        <include>**/*</include>
+      </includes>
+      <excludes>
+
+        <!-- release-plugin temp files -->
+        <exclude>**/pom.xml.releaseBackup</exclude>
+        <exclude>**/release.properties</exclude>
+
+        <exclude>**/target/**</exclude>
+
+        <exclude>**/build/**</exclude>
+        <!-- exclude>data/**</exclude>
+        <exclude>*/data/**</exclude -->
+        <exclude>activemq-data/**</exclude>
+        <exclude>*/activemq-data/**</exclude>
+        <exclude>**/eclipse-classes/**</exclude>
+        <exclude>**/.*</exclude>
+        <exclude>**/.*/**</exclude>
+
+        <exclude>**/surefire*</exclude>
+        <exclude>**/svn-commit*</exclude>
+
+        <!-- IntelliJ -->
+        <exclude>**/.idea/**</exclude>
+        <exclude>**/*.iml</exclude>
+        <exclude>**/*.ipr</exclude>
+        <exclude>**/*.iws</exclude>
+
+        <!-- Eclipse -->
+        <exclude>**/.project</exclude>
+        <exclude>**/.classpath]</exclude>
+        <exclude>**/.settings/**</exclude>
+
+        <exclude>**/cobertura.ser</exclude>
+
+        <exclude>**/node_modules/**</exclude>
+        <exclude>**/.flattened-pom.xml</exclude>
+      </excludes>
+    </fileSet>
+
+  </fileSets>
+</assembly>

Reply via email to