[
https://issues.jboss.org/browse/SHRINKRES-7?page=com.atlassian.jira.plugi...
]
Karel Piwko commented on SHRINKRES-7:
-------------------------------------
In general it should work. However, we need to handle (at least) two more scenarios:
* Class is on classpath but not provided by any GAV
- part of the project itself
- part of system java library
- added on classpath manually
* Class is on classpath multiple times
- there might be same class name in provided/test scope, it would be difficult to
distinguish between those
The difficult part is to figure out pom.xml/gav from classpath. The code for
ClasspathWorkspaceReader could be reused though.
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