hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aengin...@apache.org
Subject [hadoop] branch trunk updated: HDDS-1510. Classpath files are deployed to the maven repository as pom/jar files. Contributed by Elek, Marton. (#900)
Date Tue, 04 Jun 2019 17:38:43 GMT
This is an automated email from the ASF dual-hosted git repository.

aengineer pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 97607f3  HDDS-1510. Classpath files are deployed to the maven repository as pom/jar
files. Contributed by Elek, Marton. (#900)
97607f3 is described below

commit 97607f3dcef74956c21840edaa3f5e56d2e0a544
Author: Elek, Márton <elek@users.noreply.github.com>
AuthorDate: Tue Jun 4 19:38:37 2019 +0200

    HDDS-1510. Classpath files are deployed to the maven repository as pom/jar files. Contributed
by Elek, Marton. (#900)
---
 hadoop-hdds/pom.xml       | 24 +++++++++++++++++++++++-
 hadoop-ozone/dist/pom.xml | 11 +++++++++++
 hadoop-ozone/pom.xml      | 24 +++++++++++++++++++++++-
 3 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/hadoop-hdds/pom.xml b/hadoop-hdds/pom.xml
index 08c28e9..581dce0 100644
--- a/hadoop-hdds/pom.xml
+++ b/hadoop-hdds/pom.xml
@@ -320,7 +320,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
               <goal>build-classpath</goal>
             </goals>
             <configuration>
-              <attach>true</attach>
+              <outputFile>${project.build.directory}/classpath</outputFile>
               <prefix>$HDDS_LIB_JARS_DIR</prefix>
               <outputFilterFile>true</outputFilterFile>
               <includeScope>runtime</includeScope>
@@ -329,6 +329,28 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
         </executions>
       </plugin>
       <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-classpath-artifact</id>
+            <phase>package</phase>
+            <goals>
+              <goal>attach-artifact</goal>
+            </goals>
+            <configuration>
+              <artifacts>
+                <artifact>
+                  <file>${project.build.directory}/classpath</file>
+                  <type>cp</type>
+                  <classifier>classpath</classifier>
+                </artifact>
+              </artifacts>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
         <executions>
diff --git a/hadoop-ozone/dist/pom.xml b/hadoop-ozone/dist/pom.xml
index 855fab8..f88c055 100644
--- a/hadoop-ozone/dist/pom.xml
+++ b/hadoop-ozone/dist/pom.xml
@@ -52,6 +52,7 @@
                   <artifactId>hadoop-hdds-server-scm</artifactId>
                   <version>${hdds.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-hdds-server-scm.classpath</destFileName>
                 </artifactItem>
                 <artifactItem>
@@ -59,6 +60,7 @@
                   <artifactId>hadoop-hdds-tools</artifactId>
                   <version>${hdds.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-hdds-tools.classpath</destFileName>
                 </artifactItem>
                 <artifactItem>
@@ -66,6 +68,7 @@
                   <artifactId>hadoop-ozone-s3gateway</artifactId>
                   <version>${ozone.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-ozone-s3gateway.classpath</destFileName>
                 </artifactItem>
                 <artifactItem>
@@ -73,6 +76,7 @@
                   <artifactId>hadoop-ozone-csi</artifactId>
                   <version>${ozone.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-ozone-csi.classpath</destFileName>
                 </artifactItem>
                 <artifactItem>
@@ -80,6 +84,7 @@
                   <artifactId>hadoop-ozone-ozone-manager</artifactId>
                   <version>${ozone.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-ozone-ozone-manager.classpath
                   </destFileName>
                 </artifactItem>
@@ -88,6 +93,7 @@
                   <artifactId>hadoop-ozone-tools</artifactId>
                   <version>${ozone.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-ozone-tools.classpath</destFileName>
                 </artifactItem>
                 <artifactItem>
@@ -95,6 +101,7 @@
                   <artifactId>hadoop-ozone-filesystem</artifactId>
                   <version>${ozone.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-ozone-filesystem.classpath</destFileName>
                 </artifactItem>
                 <artifactItem>
@@ -102,6 +109,7 @@
                   <artifactId>hadoop-ozone-common</artifactId>
                   <version>${ozone.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-ozone-common.classpath</destFileName>
                 </artifactItem>
                 <artifactItem>
@@ -109,6 +117,7 @@
                   <artifactId>hadoop-ozone-datanode</artifactId>
                   <version>${ozone.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-ozone-datanode.classpath</destFileName>
                 </artifactItem>
                 <artifactItem>
@@ -116,6 +125,7 @@
                   <artifactId>hadoop-ozone-recon</artifactId>
                   <version>${ozone.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-ozone-recon.classpath</destFileName>
                 </artifactItem>
                 <artifactItem>
@@ -123,6 +133,7 @@
                   <artifactId>hadoop-ozone-upgrade</artifactId>
                   <version>${ozone.version}</version>
                   <classifier>classpath</classifier>
+                  <type>cp</type>
                   <destFileName>hadoop-ozone-upgrade.classpath</destFileName>
                 </artifactItem>
               </artifactItems>
diff --git a/hadoop-ozone/pom.xml b/hadoop-ozone/pom.xml
index a754d1f..baefe34 100644
--- a/hadoop-ozone/pom.xml
+++ b/hadoop-ozone/pom.xml
@@ -309,7 +309,7 @@
               <goal>build-classpath</goal>
             </goals>
             <configuration>
-              <attach>true</attach>
+              <outputFile>${project.build.directory}/classpath</outputFile>
               <prefix>$HDDS_LIB_JARS_DIR</prefix>
               <outputFilterFile>true</outputFilterFile>
               <includeScope>runtime</includeScope>
@@ -318,6 +318,28 @@
         </executions>
       </plugin>
       <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-classpath-artifact</id>
+            <phase>package</phase>
+            <goals>
+              <goal>attach-artifact</goal>
+            </goals>
+            <configuration>
+              <artifacts>
+                <artifact>
+                  <file>${project.build.directory}/classpath</file>
+                  <type>cp</type>
+                  <classifier>classpath</classifier>
+                </artifact>
+              </artifacts>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
         <executions>


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message