Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.1
-
Fix Version/s: 2.6
-
Component/s: unpack, unpack-dependencies
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
I've defined a custom lifecycle with a new packaging type "custom-ear". This type is generated by calling some external tool, which generates a (non java) ear-file. During the pre-integration-test I need to unpack it. Since dependency:unpack and dependecy:unpack-dependencies is based on the extension I'm not able to specify my own unArchiver.
Attached a patch which should fix this problem.
Unless I misunderstand, this change would break unpacking of deps of type test-jar, bundle or any other type that effectively maps to a JAR or any other well-known file extension. So maybe either both file ext and dep type should be tried to lookup the archiver or ArtifactItem should be enriched with a new field, e.g. archiveType, that allows to explicitly denote the desired archiver type.