[
https://issues.jboss.org/browse/SHRINKWRAP-261?page=com.atlassian.jira.pl...
]
Samuel Santos commented on SHRINKWRAP-261:
------------------------------------------
Should Maven class methods be static or should we instantiate it with
DependencyResolvers?
Option 1:
{code}
Maven.artifact(String coordinate); // return a GenericArchive
{code}
Option 2:
{code}
DependencyResolvers.use(Maven.class).artifact(String coordinate); // return a
GenericArchive
{code}
Since this is a shortcut API I'm more found of option 1.
Please comment.
Shorthand for including maven artifacts
---------------------------------------
Key: SHRINKWRAP-261
URL:
https://issues.jboss.org/browse/SHRINKWRAP-261
Project: ShrinkWrap
Issue Type: Feature Request
Components: ext-resolver
Affects Versions: 1.0.0-alpha-12
Reporter: Nicklas Karlsson
Assignee: Samuel Santos
Priority: Minor
It would be handy to have a shortcut for including maven artifacts, something along the
lines of
MavenArtifact.resolve(Coordinate.of("joda-time", "joda-time",
"1.6")).as(GenericArchive.class) or
MavenArtifact.resolve("joda-time:joda-time:1.6").as(GenericArchive.class) or
Maven.artifact("joda-time:joda-time:1.6")
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira