Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 13545 invoked from network); 15 Jun 2007 14:59:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jun 2007 14:59:26 -0000 Received: (qmail 74613 invoked by uid 500); 15 Jun 2007 14:59:24 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 74531 invoked by uid 500); 15 Jun 2007 14:59:24 -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 74380 invoked by uid 99); 15 Jun 2007 14:59:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2007 07:59:23 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2007 07:59:19 -0700 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 1659D14A803E for ; Fri, 15 Jun 2007 09:58:59 -0500 (CDT) Message-ID: <32050277.1181919539089.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Fri, 15 Jun 2007 09:58:59 -0500 (CDT) From: "Brett Porter (JIRA)" To: issues@maven.apache.org Subject: [jira] Updated: (MNG-2241) Versions are required when it shouldn't with multi-modules projects and war dependencies In-Reply-To: <76263404.1146086660181.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MNG-2241?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Brett Porter updated MNG-2241: ------------------------------ Component/s: Dependencies > Versions are required when it shouldn't with multi-modules projects and w= ar dependencies > -------------------------------------------------------------------------= --------------- > > Key: MNG-2241 > URL: http://jira.codehaus.org/browse/MNG-2241 > Project: Maven 2 > Issue Type: Bug > Components: Dependencies > Affects Versions: 2.0.4 > Environment: Maven 2.0.4, Java 5, Windows XP > Reporter: Celso Gomes Barreto Junior > Fix For: 2.1.x > > > In a multi-project with a parent pom which should enforces modules's vers= ions in dependencyManagement element, when I use a war dependnecy it starts= to require the version declaration in child pom's dependencies. When I use= jar dependencies, it works fine. > Project structure: > parent project > |_ web (war) > |_ commons (jar) > |_ webcommons (war) > -------------------------------------------------- > parent project pom: > > > 4.0.0 > Procdev - Refer=EAncia > globo > procdevref > pom > 0.0.1 > no > > web > commons > webcommons > > > > > globo > procdevref-web > ${project.version} > > > globo > procdevref-commons > ${project.version} > > > globo > procdevref-webcommons > ${project.version} > > > > > > junit > junit > 3.8.1 > test > > > > -------------------------------------------------- > web project pom: > > > 4.0.0 > > globo > procdevref > 0.0.1 > > Procdev Web > procdevref-web > war > 0.0.1 > no > > > globo > procdevref-webcommons > war > > > globo > procdevref-commons > > > jstl > jstl > [1.1.2,] > > > taglibs > standard > [1.1.2,] > > > > -------------------------------------------------- > webcommons project pom: > > > 4.0.0 > > globo > procdevref > 0.0.1 > > Procdev Web Commons > procdevref-webcommons > war > 0.0.1 > no > > -------------------------------------------------- > commons project pom: > > > 4.0.0 > > globo > procdevref > 0.0.1 > > Procdev Commons > procdevref-commons > jar > 0.0.1 > no > > When i Run it with "mvn -X clean install" I get: > + Error stacktraces are turned on. > Maven version: 2.0.4 > [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and= Settin > gs\celso.cs\.m2\plugin-registry.xml' > [DEBUG] Building Maven global-level plugin registry from: 'C:\java\maven-= 2.0.4\b > in\..\conf\plugin-registry.xml' > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------= ------ > [ERROR] FATAL ERROR > [INFO] ------------------------------------------------------------------= ------ > [INFO] Error building POM (may not be this project's POM). > Project ID: globo:procdevref-web > POM Location: C:\Projetos\ProcdevReferencia\web\pom.xml > Validation Messages: > [0] 'dependencies.dependency.version' is missing for globo:procdevre= f-webco > mmons > Reason: Failed to validate POM --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira