Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A957C239 for ; Mon, 14 May 2012 14:22:14 +0000 (UTC) Received: (qmail 13233 invoked by uid 500); 14 May 2012 14:22:14 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 13159 invoked by uid 500); 14 May 2012 14:22:13 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 13151 invoked by uid 99); 14 May 2012 14:22:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 14:22:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 14:22:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 053AA1309F for ; Mon, 14 May 2012 14:21:52 +0000 (UTC) Date: Mon, 14 May 2012 14:21:52 +0000 (UTC) From: "Martin Renner (JIRA)" To: notifications@ant.apache.org Message-ID: <1028334412.148.1337005312102.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (IVY-899) POM packaging not always mapped to main artifact file extension correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274609#comment-13274609 ] Martin Renner commented on IVY-899: ----------------------------------- Yes, it looks like it is not possible to download Jetty 7 with Ivy because Ivy doesn't handle "orbit" correctly. > POM packaging not always mapped to main artifact file extension correctly > ------------------------------------------------------------------------- > > Key: IVY-899 > URL: https://issues.apache.org/jira/browse/IVY-899 > Project: Ivy > Issue Type: Bug > Components: Maven Compatibility > Affects Versions: 2.0.0-beta-2 > Reporter: Tom Widmer > > POM files contain a packaging element that Ivy attempts to map to an extension for the main artifact of the module in question. In 2.0.0beta2, it maps as follows: > ejb->jar > bundle->jar only for org.apache.felix#maven-bundle-plugin > [other]->[other] > That mapping is not sufficient to cover common POM files. For a start: > 1. maven-plugin is a standard packaging type, which should map to the extension jar. > - e.g. Ivy erroneously searches for > org.apache.axis2#axis2-ant-plugin;1.4.1!axis2-ant-plugin.maven-plugin > rather than: > org.apache.axis2#axis2-ant-plugin;1.4.1!axis2-ant-plugin.jar > 2. bundle seems to be used by various things, and is a jar in the cases I've seen: > org.apache.geronimo.specs#geronimo-activation_1.1_spec;1.0.1!geronimo-activation_1.1_spec.bundle > should be > org.apache.geronimo.specs#geronimo-activation_1.1_spec;1.0.1!geronimo-activation_1.1_spec.jar > Also, apparently POMs can have custom packaging which might need to map to some other arbitrary file extension, or possibly potentially to multiple files? > The ideal solution is to provide customisable mapping of POM packaging to file extensions that can be specified somewhere in the Ivy settings (it is somewhat similar to namespaces). > An interim solution is to change the mapping as follows: > ejb->jar > ejb[N]->jar?? e.g. ejb3->jar > maven-plugin->jar > bundle->jar if and only if .bundle does not exist but .jar does (it may not be easy to check for file existence in the relevant code - I'd be happy to always map bundle to jar, but others might not be - might be fine for an interim solution though?). > [other]->[other] > The interim solution could perhaps be done for 2.0 (it is only a few minutes work I think), though the properly customisable solution might take longer than that. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira