Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E25BE18257 for ; Sun, 21 Jun 2015 13:14:05 +0000 (UTC) Received: (qmail 36881 invoked by uid 500); 21 Jun 2015 13:13:58 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 36794 invoked by uid 500); 21 Jun 2015 13:13:58 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 36076 invoked by uid 99); 21 Jun 2015 13:13:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jun 2015 13:13:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 31DD1E3640; Sun, 21 Jun 2015 13:13:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dahn@apache.org To: commits@cloudstack.apache.org Date: Sun, 21 Jun 2015 13:14:18 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [22/24] git commit: updated refs/heads/master to 6fd49e4 Some of the plugin dependencies were'nt being properly resolved on the dependency:resolve-plugins mojo This adds a couple more dark magic sprinkles to make sure no dependencies will be downloaded at build time Signed-off-by: Daan Hoogland Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/0d671b9e Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/0d671b9e Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/0d671b9e Branch: refs/heads/master Commit: 0d671b9e54e19a4ed10215983857848052bc7cc6 Parents: 358157f Author: Rafael da Fonseca Authored: Sat Jun 20 18:19:48 2015 +0200 Committer: Daan Hoogland Committed: Sun Jun 21 15:13:27 2015 +0200 ---------------------------------------------------------------------- tools/travis/before_install.sh | 2 +- tools/travis/downloadDeps.sh | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0d671b9e/tools/travis/before_install.sh ---------------------------------------------------------------------- diff --git a/tools/travis/before_install.sh b/tools/travis/before_install.sh index e9bcb33..5f04c79 100755 --- a/tools/travis/before_install.sh +++ b/tools/travis/before_install.sh @@ -97,7 +97,7 @@ done echo -e "\nDownloading Plugin dependencies" for ((i=0;i<$RETRY_COUNT;i++)) do - mvn org.apache.maven.plugins:maven-dependency-plugin:resolve-plugins > /dev/null + mvn org.apache.maven.plugins:maven-dependency-plugin:resolve-plugins | grep "Plugin Resolved:" | sort -u | awk '{print $4}' | tee /tmp/resolvedPlugins if [[ $? -eq 0 ]]; then echo -e "\nPlugin dependencies downloaded successfully" break; http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0d671b9e/tools/travis/downloadDeps.sh ---------------------------------------------------------------------- diff --git a/tools/travis/downloadDeps.sh b/tools/travis/downloadDeps.sh index ae53028..c7d60a2 100755 --- a/tools/travis/downloadDeps.sh +++ b/tools/travis/downloadDeps.sh @@ -42,9 +42,15 @@ for line in $(find ../../ -name pom.xml -exec sed -n '//{:a;n;/<\/ done -#For some reason, travis seems to be using surefire plugin 2.14.2 -echo "org.apache.maven.pluginsmaven-surefire-plugin2.12.4" >> pom.xml -echo "com.google.guavaguava10.0.1" >> pom.xml +#Add the resolved plugins to properly download their dependencies +while read line ; do + NAME=$(echo $line | sed -e 's/.jar$//') + VERSION=${NAME##*-} + ARTIFACT=${NAME%-*} + GROUP=$(find ~/.m2/repository -name ${NAME}.pom -exec sed -n "1,/${ARTIFACT}/p" {} \; | tac | grep -m 1 -e "" | sed -e 's/^[[:space:]]*//' | tr -d '\r') + DATA="${GROUP}${ARTIFACT}${VERSION}" + echo $DATA >> pom.xml +done < /tmp/resolvedPlugins #Finish dummy pom echo "" >> pom.xml