Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 692A2200B80 for ; Wed, 14 Sep 2016 23:36:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4BE61160AD4; Wed, 14 Sep 2016 21:36:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9C374160AB3 for ; Wed, 14 Sep 2016 23:36:22 +0200 (CEST) Received: (qmail 55542 invoked by uid 500); 14 Sep 2016 21:36:21 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 55518 invoked by uid 99); 14 Sep 2016 21:36:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2016 21:36:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EA2D02C1B79 for ; Wed, 14 Sep 2016 21:36:20 +0000 (UTC) Date: Wed, 14 Sep 2016 21:36:20 +0000 (UTC) From: "Robert Scholte (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MDEP-516) Go-offline does not find module dependencies in multi-module build. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Sep 2016 21:36:23 -0000 [ https://issues.apache.org/jira/browse/MDEP-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15491511#comment-15491511 ] Robert Scholte commented on MDEP-516: ------------------------------------- The {{requiresDependencyCollection =true}} is the first step. This will ensure that that the pom files for all dependencies are available. Next step would be to download the actual dependencies, excluding the reactor projects. The goal should also execute {{resolve-plugins}}, but based on your exception there's a bug there too. Maybe only the plugins are downloaded, but not their dependencies? > Go-offline does not find module dependencies in multi-module build. > ------------------------------------------------------------------- > > Key: MDEP-516 > URL: https://issues.apache.org/jira/browse/MDEP-516 > Project: Maven Dependency Plugin > Issue Type: Bug > Components: go-offline > Affects Versions: 2.10 > Reporter: Petar Tahchiev > > Hello, > I've recently hit the exact same problem that these guys are having: > http://stackoverflow.com/questions/14694139/how-to-resolve-dependencies-between-modules-within-multi-module-project > and I thought it must be a very normal scenario so probably a lot of other people are hitting. > So basically I have a multi-module build where {{moduleA}} is built first and them {{moduleB}} depends on {{moduleA}}. However when I do {{mvn dependency:go-offline}} it comes to resolve the dependencies of {{moduleB}} and it fails with {{Artifact not found: moduleA}}. > That seems to happen because only modules that have been packaged are put in the reactor and so later modules will know about them. So to fix it I have to do the following: > {code} > mvn package dependency:go-offline -U -Pquick,test -DskipTests -s src/main/resources/settings.xml > {code} > which I really don't like, because it does an extra package that I don't need, and then the whole build gets a lot slower. > of course, {{mvn install}} at any time fixes the issue also, but I don't want to install -- This message was sent by Atlassian JIRA (v6.3.4#6332)