diff --git a/.travis.yml b/.travis.yml index 429f3d5469e..1a79f48b1db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,10 @@ env: dist: trusty sudo: required +before_cache: +# Never upload Storm artifacts to the build cache, ensuring a clean slate every time + - rm -rf $HOME/.m2/repository/org/apache/storm + language: java jdk: - oraclejdk8 diff --git a/dev-tools/travis/travis-install.sh b/dev-tools/travis/travis-install.sh index a5e0f8353e0..67c44f2b59b 100755 --- a/dev-tools/travis/travis-install.sh +++ b/dev-tools/travis/travis-install.sh @@ -26,17 +26,16 @@ TRAVIS_SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) pip install --user -r ${TRAVIS_SCRIPT_DIR}/requirements.txt pip3 install --user -r ${TRAVIS_SCRIPT_DIR}/requirements.txt -cd ${STORM_SRC_ROOT_DIR}/storm-shaded-deps/ -python ${TRAVIS_SCRIPT_DIR}/save-logs.py "install-shade.txt" mvn clean install --batch-mode +python ${TRAVIS_SCRIPT_DIR}/save-logs.py "storm-shaded-deps/install-shade.txt" mvn clean install --batch-mode -pl storm-shaded-deps -am BUILD_RET_VAL=$? if [[ "$BUILD_RET_VAL" != "0" ]]; then - cat "install-shade.txt" + cat "storm-shaded-deps/install-shade.txt" exit ${BUILD_RET_VAL} fi cd ${STORM_SRC_ROOT_DIR} -python ${TRAVIS_SCRIPT_DIR}/save-logs.py "install.txt" mvn clean install -DskipTests -Pnative,examples,externals '-P!include-shaded-deps' --batch-mode +python ${TRAVIS_SCRIPT_DIR}/save-logs.py "install.txt" mvn clean install -DskipTests -Pnative,examples,externals -pl '!storm-shaded-deps' --batch-mode BUILD_RET_VAL=$? if [[ "$BUILD_RET_VAL" != "0" ]]; diff --git a/dev-tools/travis/travis-script.sh b/dev-tools/travis/travis-script.sh index cc22a775c89..f7d582cec8b 100755 --- a/dev-tools/travis/travis-script.sh +++ b/dev-tools/travis/travis-script.sh @@ -40,9 +40,9 @@ elif [ "$2" == "External" ] then if [ "$TRAVIS_JDK_VERSION" == "openjdk11" ] then - TEST_MODULES='!storm-client,!storm-server,!storm-core,!storm-webapp,!external/storm-cassandra,!external/storm-hive,!external/storm-hdfs,!external/storm-hbase,!sql/storm-sql-external/storm-sql-hdfs,!external/storm-hdfs-blobstore' + TEST_MODULES='!storm-client,!storm-server,!storm-core,!storm-webapp,!storm-shaded-deps,!external/storm-cassandra,!external/storm-hive,!external/storm-hdfs,!external/storm-hbase,!sql/storm-sql-external/storm-sql-hdfs,!external/storm-hdfs-blobstore' else - TEST_MODULES='!storm-client,!storm-server,!storm-core,!storm-webapp' + TEST_MODULES='!storm-client,!storm-server,!storm-core,!storm-webapp,!storm-shaded-deps' fi fi # We should be concerned that Travis CI could be very slow because it uses VM @@ -50,7 +50,7 @@ export STORM_TEST_TIMEOUT_MS=150000 # Travis only has 3GB of memory, lets use 1GB for build, and 1.5GB for forked JVMs export MAVEN_OPTS="-Xmx1024m" -mvn --batch-mode test -fae -Pnative,all-tests,examples,externals '-P!include-shaded-deps' -Prat -pl "$TEST_MODULES" +mvn --batch-mode test -fae -Pnative,all-tests,examples,externals -Prat -pl "$TEST_MODULES" BUILD_RET_VAL=$? for dir in `find . -type d -and -wholename \*/target/\*-reports`; diff --git a/pom.xml b/pom.xml index ab1a7fafe26..989fedbb7ae 100644 --- a/pom.xml +++ b/pom.xml @@ -336,6 +336,7 @@ + storm-shaded-deps storm-checkstyle storm-multilang/javascript storm-multilang/python @@ -378,15 +379,6 @@ compile - - include-shaded-deps - - true - - - storm-shaded-deps - - rat @@ -1313,100 +1305,6 @@ exec-maven-plugin 1.6.0 - - org.codehaus.mojo - license-maven-plugin - 1.19 - - true - true - true - /org/codehaus/mojo/license/third-party-file-groupByMultiLicense.ftl - system,test - - - Apache License, Version 2.0 | - Apache License, version 2.0 | - Apache License Version 2 | - Apache License Version 2.0 | - Apache License version 2.0 | - Apache 2 | - Apache 2.0 | - Apache License, 2.0 | - Apache License 2 | - Apache License 2.0 | - Apache Public License 2.0 | - Apache Software License - Version 2.0 | - Apache v2 | - ASL, version 2 | - The Apache License, Version 2.0 | - The Apache Software License, Version 2.0 - - - Apache License | - Apache Software Licenses - - - BSD License | - BSD license | - BSD | - The BSD License - - - BSD 3-Clause License | - BSD 3-Clause | - BSD 3-clause | - The BSD 3-Clause License | - New BSD License | - New BSD license - - - Common Development and Distribution License (CDDL) v1.0 | - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 | - CDDL 1.0 - - - Common Development and Distribution License (CDDL) v1.1 | - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1 | - CDDL 1.1 | - Common Development and Distribution License (CDDL), Version 1.1 - - - Common Development and Distribution License | - - CDDL+GPL | - CDDL+GPL License | - CDDL + GPLv2 with classpath exception - - - Eclipse Public License, Version 1.0 | - Eclipse Public License 1.0 | - Eclipse Public License - v 1.0 - - - MIT License | - The MIT License | - MIT license | - MIT X11 License | - MIT - - - The GNU General Public License (GPL), Version 2, With Classpath Exception | - GPL2 w/ CPE - - - GNU Lesser General Public License (LGPL), Version 2.1 | - LGPL, version 2.1 | - GNU Lesser General Public License Version 2.1 | - GNU Lesser General Public License, version 2.1 - - - Common Public License Version 1.0 | - Common Public License - v 1.0 - - - - @@ -1471,31 +1369,6 @@ - - org.codehaus.mojo - license-maven-plugin - false - - DEPENDENCY-LICENSES - ${project.basedir} - ${project.basedir}/THIRD-PARTY.properties - ${project.basedir}/THIRD-PARTY.properties - - - - generate-and-check-licenses - - aggregate-add-third-party - - - - download-licenses - - aggregate-download-licenses - - - - diff --git a/storm-client/pom.xml b/storm-client/pom.xml index 546ec324fee..189267ed0a2 100644 --- a/storm-client/pom.xml +++ b/storm-client/pom.xml @@ -240,10 +240,6 @@ - - org.apache.maven.plugins - maven-checkstyle-plugin - org.apache.maven.plugins maven-pmd-plugin