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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0b57b3c  Move maven-dependency-plugin in distribution/server/pom.xml 
(#3053)
0b57b3c is described below

commit 0b57b3c864c55f72c5bd8c197dbb594f3e79e92a
Author: Matteo Merli <[email protected]>
AuthorDate: Mon Nov 26 10:05:36 2018 -0800

    Move maven-dependency-plugin in distribution/server/pom.xml (#3053)
    
    * Move maven-dependency-plugin in distribution/server/pom.xml
    
    Motivation
    
    maven-dependency-plugin is used to generate a classpath.txt
    file with the list of jars for runtime. This is only used
    by `bin/pulsar` command and it picks up the dependencies of
    the distribution-server module.
    
    There's no need to generate this classpath.txt file for
    every module.
    
    * Fixed pom
---
 distribution/server/pom.xml | 45 +++++++++++++++++++++++++++++++++++++++++++++
 pom.xml                     | 41 -----------------------------------------
 2 files changed, 45 insertions(+), 41 deletions(-)

diff --git a/distribution/server/pom.xml b/distribution/server/pom.xml
index 739f82a..eeb53ce 100644
--- a/distribution/server/pom.xml
+++ b/distribution/server/pom.xml
@@ -182,6 +182,51 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>build-classpath</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>build-classpath</goal>
+            </goals>
+            <configuration>
+              <outputFile>target/classpath.txt</outputFile>
+              <includeScope>runtime</includeScope>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.eclipse.m2e</groupId>
+          <artifactId>lifecycle-mapping</artifactId>
+          <version>1.0.0</version>
+          <configuration>
+            <lifecycleMappingMetadata>
+              <pluginExecutions>
+                <pluginExecution>
+                  <pluginExecutionFilter>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-dependency-plugin</artifactId>
+                    <versionRange>[1.0,)</versionRange>
+                    <goals>
+                      <goal>build-classpath</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore />
+                  </action>
+                </pluginExecution>
+              </pluginExecutions>
+            </lifecycleMappingMetadata>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
   </build>
 </project>
diff --git a/pom.xml b/pom.xml
index a2b43c2..9f72ceb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1142,23 +1142,6 @@ flexible messaging model and an intuitive client 
API.</description>
         </configuration>
       </plugin>
       <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-dependency-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>build-classpath</id>
-            <phase>generate-sources</phase>
-            <goals>
-              <goal>build-classpath</goal>
-            </goals>
-            <configuration>
-              <outputFile>target/classpath.txt</outputFile>
-              <includeScope>runtime</includeScope>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
         <groupId>org.apache.rat</groupId>
         <artifactId>apache-rat-plugin</artifactId>
         <configuration>
@@ -1332,30 +1315,6 @@ flexible messaging model and an intuitive client 
API.</description>
           <version>3.0.0</version>
       </plugin>
         <plugin>
-          <groupId>org.eclipse.m2e</groupId>
-          <artifactId>lifecycle-mapping</artifactId>
-          <version>1.0.0</version>
-          <configuration>
-            <lifecycleMappingMetadata>
-              <pluginExecutions>
-                <pluginExecution>
-                  <pluginExecutionFilter>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-dependency-plugin</artifactId>
-                    <versionRange>[1.0,)</versionRange>
-                    <goals>
-                      <goal>build-classpath</goal>
-                    </goals>
-                  </pluginExecutionFilter>
-                  <action>
-                    <ignore />
-                  </action>
-                </pluginExecution>
-              </pluginExecutions>
-            </lifecycleMappingMetadata>
-          </configuration>
-        </plugin>
-        <plugin>
           <groupId>pl.project13.maven</groupId>
           <artifactId>git-commit-id-plugin</artifactId>
           <version>2.2.4</version>

Reply via email to