You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2019/09/27 03:35:43 UTC

[incubator-iotdb] branch reduce_project_version_declaration updated: add a plugin to automatically change the child module version to its'parent by 'mvn -N versions:update-child-modules'

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

hxd pushed a commit to branch reduce_project_version_declaration
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/reduce_project_version_declaration by this push:
     new 20a9198  add a plugin to automatically change the child module version to its'parent by 'mvn -N  versions:update-child-modules'
20a9198 is described below

commit 20a91983dd211e1dc1e601b69f76679de31a73d5
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Fri Sep 27 11:32:26 2019 +0800

    add a plugin to automatically change the child module version to its'parent by 'mvn -N  versions:update-child-modules'
---
 pom.xml | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 897bc72..3cd0d36 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,9 +56,9 @@
         <module>spark-tsfile</module>
         <module>spark-iotdb-connector</module>
         <!-- <module>hadoop</module> -->
-        <module>distribution</module>
+    <!-- <module>distribution</module> -->
     </modules>
-    <!-- Properties Management -->
+<!-- Properties Management -->
     <properties>
         <maven.compiler.source>1.8</maven.compiler.source>
         <maven.compiler.target>1.8</maven.compiler.target>
@@ -394,6 +394,17 @@
     <build>
         <pluginManagement>
             <plugins>
+                <!-- using `mvn -N versions:update-child-modules` can update the version
+                of child modules to what their parent claims -->
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>versions-maven-plugin</artifactId>
+                    <version>2.3</version>
+                    <configuration>
+                        <generateBackupPoms>false</generateBackupPoms>
+                    </configuration>
+                </plugin>
+
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-javadoc-plugin</artifactId>