ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Widmer (JIRA)" <>
Subject [jira] Created: (IVY-899) POM packaging not always mapped to main artifact file extension correctly
Date Tue, 09 Sep 2008 15:17:44 GMT
POM packaging not always mapped to main artifact file extension correctly

                 Key: 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:

bundle->jar only for org.apache.felix#maven-bundle-plugin

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 
rather than: 
2. bundle seems to be used by various things, and is a jar in the cases I've seen:
should be

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[N]->jar?? e.g. ejb3->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?).

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.
You can reply to this email to add a comment to the issue online.

View raw message