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 missing. /Anders On Fri, Feb 1, 2013 at 12:10 AM, Henrik Eriksson <[email protected] > 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. > > TIA > Henrik >
