pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject [pulsar] branch master updated: [build] generate connector yaml config only when building a release (#3100)
Date Sat, 01 Dec 2018 10:00:46 GMT
This is an automated email from the ASF dual-hosted git repository.

sijie 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 86abab9  [build] generate connector yaml config only when building a release (#3100)
86abab9 is described below

commit 86abab93b60fd1b8cd7d1e4f2459265c0d0269e8
Author: Sijie Guo <guosijie@gmail.com>
AuthorDate: Sat Dec 1 02:00:41 2018 -0800

    [build] generate connector yaml config only when building a release (#3100)
---
 distribution/io/pom.xml | 96 ++++++++++++++++++++++++++++---------------------
 1 file changed, 56 insertions(+), 40 deletions(-)

diff --git a/distribution/io/pom.xml b/distribution/io/pom.xml
index 125fe70..d7adc46 100644
--- a/distribution/io/pom.xml
+++ b/distribution/io/pom.xml
@@ -50,46 +50,6 @@
   <build>
     <plugins>
       <plugin>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>create-conf-dir</id>
-            <phase>compile</phase>
-            <configuration>
-              <tasks>
-                <mkdir dir="target/conf"/>
-              </tasks>
-            </configuration>
-            <goals>
-              <goal>run</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>exec-maven-plugin</artifactId>
-        <version>${exec-maven-plugin.version}</version>
-        <executions>
-          <execution>
-            <id>io-conf-gen</id>
-            <phase>package</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>${project.basedir}/../../src/pulsar-io-gen</executable>
-              <outputFile>${project.basedir}/target/pulsar-io-gen.output</outputFile>
-              <arguments>
-                <argument>conf</argument>
-                <argument>-o</argument>
-                <argument>${project.basedir}/target/conf</argument>
-              </arguments>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <executions>
           <execution>
@@ -111,4 +71,60 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <id>generator-connector-config</id>
+      <activation>
+        <property>
+          <name>release</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>create-conf-dir</id>
+                <phase>compile</phase>
+                <configuration>
+                  <tasks>
+                    <mkdir dir="target/conf"/>
+                  </tasks>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>exec-maven-plugin</artifactId>
+            <version>${exec-maven-plugin.version}</version>
+            <executions>
+              <execution>
+                <id>io-conf-gen</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>exec</goal>
+                </goals>
+                <configuration>
+                  <executable>${project.basedir}/../../src/pulsar-io-gen</executable>
+                  <outputFile>${project.basedir}/target/pulsar-io-gen.output</outputFile>
+                  <arguments>
+                    <argument>conf</argument>
+                    <argument>-o</argument>
+                    <argument>${project.basedir}/target/conf</argument>
+                  </arguments>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
 </project>


Mime
View raw message