maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <>
Subject Re: Listing all attached artifacts for a specific GAV
Date Fri, 01 Feb 2013 06:44:07 GMT
Don't think this is possible simply because the metadata about attached
artifacts doesn't exist.

Please also note that all direct dependencies should be declared in the
pom. So if you're going to deploy to a repo your plugin needs to update the
pom-to-be-deployed and add this info. If you don't, any build declaring a
dependency to your artifact will fail because the dependency info is


On Fri, Feb 1, 2013 at 12:10 AM, Henrik Eriksson <
> wrote:

> Hello.
> I'm writing a plugin and I'm wondering if there is any way of retrieving an
> artifact's attached artifacts in a repository. I know the main artifact but
> like to get the attached ones too. There are several workarounds for this,
> but I would like to find out if there is a better way. I have been
> searching the APIs and documentation but haven't yet found a nice way of
> doing it. The reason of doing this is because I'd like to so you don't need
> to declare them in a pom.
> Example:
> com.acme.comp:artifact:ear:1.0 <-- main artifact
> com.acme.comp:artifact:attachment1:xml <-- attachment which I'd like to get
> programmatically without knowing the classifier name.
> Henrik

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message