Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 71990 invoked from network); 23 Mar 2009 00:04:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Mar 2009 00:04:41 -0000 Received: (qmail 58577 invoked by uid 500); 23 Mar 2009 00:04:40 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 58502 invoked by uid 500); 23 Mar 2009 00:04:40 -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 58492 invoked by uid 99); 23 Mar 2009 00:04:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2009 00:04:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Mon, 23 Mar 2009 00:04:33 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id E3D4F14A816A for ; Sun, 22 Mar 2009 19:04:12 -0500 (CDT) Message-ID: <12500877.1237766652908.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Sun, 22 Mar 2009 19:04:12 -0500 (CDT) From: "Clement Denis (JIRA)" To: issues@maven.apache.org Subject: [jira] Commented: (MNG-4101) Cannot build an ear submodule with an ejb dependency with a classifier In-Reply-To: <21513439.1237754113581.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170597#action_170597 ] Clement Denis commented on MNG-4101: ------------------------------------ You're probably right Benjamin, but why is this working when I build the artifact directly (not as a submodule of a parent artifact) ? In that case, the debug log shows that the artifact type is correctly resolved as ejb. By the way, is there a workaround, or should I wait for 2.1.1 ? > Cannot build an ear submodule with an ejb dependency with a classifier > ---------------------------------------------------------------------- > > Key: MNG-4101 > URL: http://jira.codehaus.org/browse/MNG-4101 > Project: Maven 2 > Issue Type: Bug > Affects Versions: 2.1.0 > Environment: Linux 64 bits, Sun JDK 1.6 > Reporter: Clement Denis > Attachments: build-2.0.10.log, build-2.1.0.log > > > I have an ear artifact with a dependant ejb module that has a classifier (i use the shade plugin to generate my ejb artifact). > This is my dependency : > {code:xml} > > com.test.core > core > shaded > ejb > 1.0.0-SNAPSHOT > runtime > > {code} > There is my ear plugin configuration : > {code:xml} > > maven-ear-plugin > > 5 > true > ${parent.artifactId} > lib > > > com.test.core > webapp > /test > > > com.test.core > core > shaded > > > > > {code} > When i build the ear directly (clean package on the ear module), the build works fine. > But when i build the root module (the ear module is a submodule), i get the following error : > "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project." > If i remove the classifier, the build from the root module is ok. > This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira