[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/45354899 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/45354899 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/45354899 Branch: refs/heads/release-1.5 Commit: 45354899cef40ed6ce8a38119ed87003b5286acc Parents: 05c6ef1 Author: zentol <[email protected]> Authored: Tue Apr 24 13:13:39 2018 +0200 Committer: zentol <[email protected]> Committed: Wed May 2 15:19:30 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/45354899/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 49a0a56..ce2a77e 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/45354899/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"
