[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-7) Resolve GAV (ie. MavenDependency) from Class<?>
Andrew Rubinger (JIRA)
jira-events at lists.jboss.org
Sat Sep 22 05:53:34 EDT 2012
[ https://issues.jboss.org/browse/SHRINKRES-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720805#comment-12720805 ]
Andrew Rubinger commented on SHRINKRES-7:
-----------------------------------------
I think it may make sense in the 2.0.0-alpha API to do something like:
{code}class MavenCoordinates{
public static MavenCoordinate whatProvides(Class<?> clazz) throws IllegalArgumentException, SomeOtherNoResolvedGAVException(){...}{code}
> Resolve GAV (ie. MavenDependency) from Class<?>
> -----------------------------------------------
>
> Key: SHRINKRES-7
> URL: https://issues.jboss.org/browse/SHRINKRES-7
> Project: ShrinkWrap Resolvers
> Issue Type: Feature Request
> Reporter: Ondrej Zizka
>
> Currently, MavenDependencyResolver.artifact() only accepts String.
> I suggest to add .artifact( Class cls ) which would seek the G:A:V in metadata of the jar which contains this class's package.
> I think Karel Piwko did some research on this recently, right?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list