[FLINK-9249][build] Add convenience profile for skipping non-essential plugins

This closes #5904.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/678ab6cb
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/678ab6cb
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/678ab6cb

Branch: refs/heads/master
Commit: 678ab6cb2f810a93c9b9599cde56d821d09801af
Parents: 40e412a
Author: zentol <[email protected]>
Authored: Tue Apr 24 13:13:39 2018 +0200
Committer: zentol <[email protected]>
Committed: Wed May 2 15:18:06 2018 +0200

----------------------------------------------------------------------
 pom.xml                      | 57 +++++++++++++++++++++++++++++++++++++++
 tools/travis_mvn_watchdog.sh | 20 +++++++-------
 2 files changed, 67 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/678ab6cb/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3191da3..c6a25ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -637,6 +637,63 @@ under the License.
        <profiles>
 
                <profile>
+                       <id>fast</id>
+                       <activation>
+                               <property>
+                                       <name>fast</name>
+                               </property>
+                       </activation>
+                       <build>
+                               <pluginManagement>
+                                       <plugins>
+                                               <plugin>
+                                                       
<groupId>org.apache.rat</groupId>
+                                                       
<artifactId>apache-rat-plugin</artifactId>
+                                                       <configuration>
+                                                               
<skip>true</skip>
+                                                       </configuration>
+                                               </plugin>
+                                               <plugin>
+                                                       
<groupId>org.apache.maven.plugins</groupId>
+                                                       
<artifactId>maven-checkstyle-plugin</artifactId>
+                                                       <configuration>
+                                                               
<skip>true</skip>
+                                                       </configuration>
+                                               </plugin>
+                                               <plugin>
+                                                       
<groupId>org.scalastyle</groupId>
+                                                       
<artifactId>scalastyle-maven-plugin</artifactId>
+                                                       <configuration>
+                                                               
<skip>true</skip>
+                                                       </configuration>
+                                               </plugin>
+                                               <plugin>
+                                                       
<groupId>org.apache.maven.plugins</groupId>
+                                                       
<artifactId>maven-enforcer-plugin</artifactId>
+                                                       <configuration>
+                                                               
<skip>true</skip>
+                                                       </configuration>
+                                               </plugin>
+                                               <plugin>
+                                                       
<groupId>org.apache.maven.plugins</groupId>
+                                                       
<artifactId>maven-javadoc-plugin</artifactId>
+                                                       <configuration>
+                                                               
<skip>true</skip>
+                                                       </configuration>
+                                               </plugin>
+                                               <plugin>
+                                                       
<groupId>com.github.siom79.japicmp</groupId>
+                                                       
<artifactId>japicmp-maven-plugin</artifactId>
+                                                       <configuration>
+                                                               
<skip>true</skip>
+                                                       </configuration>
+                                               </plugin>
+                                       </plugins>
+                               </pluginManagement>
+                       </build>
+               </profile>
+
+               <profile>
                        <id>legacyCode</id>
                        <activation>
                                <property>

http://git-wip-us.apache.org/repos/asf/flink/blob/678ab6cb/tools/travis_mvn_watchdog.sh
----------------------------------------------------------------------
diff --git a/tools/travis_mvn_watchdog.sh b/tools/travis_mvn_watchdog.sh
index eacecc6..e08f0cc 100755
--- a/tools/travis_mvn_watchdog.sh
+++ b/tools/travis_mvn_watchdog.sh
@@ -117,26 +117,26 @@ case $TEST in
        (core)
                MVN_COMPILE_MODULES="-pl $MODULES_CORE -am"
                MVN_TEST_MODULES="-pl $MODULES_CORE"
-               MVN_COMPILE_OPTIONS="-Dcheckstyle.skip=true -Djapicmp.skip=true 
-Drat.skip=true"
-               MVN_TEST_OPTIONS="-Dcheckstyle.skip=true"
+               MVN_COMPILE_OPTIONS="-Dfast"
+               MVN_TEST_OPTIONS="-Dfast"
        ;;
        (libraries)
                MVN_COMPILE_MODULES="-pl $MODULES_LIBRARIES -am"
                MVN_TEST_MODULES="-pl $MODULES_LIBRARIES"
-               MVN_COMPILE_OPTIONS="-Dcheckstyle.skip=true -Djapicmp.skip=true 
-Drat.skip=true"
-               MVN_TEST_OPTIONS="-Dcheckstyle.skip=true"
+               MVN_COMPILE_OPTIONS="-Dfast"
+               MVN_TEST_OPTIONS="-Dfast"
        ;;
        (connectors)
                MVN_COMPILE_MODULES="-pl $MODULES_CONNECTORS -am"
                MVN_TEST_MODULES="-pl $MODULES_CONNECTORS"
-               MVN_COMPILE_OPTIONS="-Dcheckstyle.skip=true -Djapicmp.skip=true 
-Drat.skip=true"
-               MVN_TEST_OPTIONS="-Dcheckstyle.skip=true"
+               MVN_COMPILE_OPTIONS="-Dfast"
+               MVN_TEST_OPTIONS="-Dfast"
        ;;
        (tests)
                MVN_COMPILE_MODULES="-pl $MODULES_TESTS -am"
                MVN_TEST_MODULES="-pl $MODULES_TESTS"
-               MVN_COMPILE_OPTIONS="-Dcheckstyle.skip=true -Djapicmp.skip=true 
-Drat.skip=true"
-               MVN_TEST_OPTIONS="-Dcheckstyle.skip=true"
+               MVN_COMPILE_OPTIONS="-Dfast"
+               MVN_TEST_OPTIONS="-Dfast"
        ;;
        (misc)
                NEGATED_CORE=\!${MODULES_CORE//,/,\!}
@@ -147,7 +147,7 @@ case $TEST in
                MVN_COMPILE_MODULES=""
                MVN_TEST_MODULES="-pl 
$NEGATED_CORE,$NEGATED_LIBRARIES,$NEGATED_CONNECTORS,$NEGATED_TESTS"
                MVN_COMPILE_OPTIONS=""
-               MVN_TEST_OPTIONS="-Dcheckstyle.skip=true"
+               MVN_TEST_OPTIONS="-Dfast"
        ;;
 esac
 
@@ -158,7 +158,7 @@ esac
 # -nsu option forbids downloading snapshot artifacts. The only snapshot 
artifacts we depend are from
 # Flink, which however should all be built locally. see FLINK-7230
 MVN_LOGGING_OPTIONS="-Dlog.dir=${ARTIFACTS_DIR} 
-Dlog4j.configuration=file://$LOG4J_PROPERTIES 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
-MVN_COMMON_OPTIONS="-nsu -Dflink.forkCount=2 -Dflink.forkCountTestPackage=2 
-Dmaven.javadoc.skip=true -B $MVN_LOGGING_OPTIONS"
+MVN_COMMON_OPTIONS="-nsu -Dflink.forkCount=2 -Dflink.forkCountTestPackage=2 -B 
$MVN_LOGGING_OPTIONS"
 MVN_COMPILE_OPTIONS="$MVN_COMPILE_OPTIONS -DskipTests"
 
 MVN_COMPILE="mvn $MVN_COMMON_OPTIONS $MVN_COMPILE_OPTIONS $PROFILE 
$MVN_COMPILE_MODULES clean install"

Reply via email to