[
https://issues.jboss.org/browse/SHRINKWRAP-261?page=com.atlassian.jira.pl...
]
Samuel Santos edited comment on SHRINKWRAP-261 at 6/28/11 12:02 PM:
--------------------------------------------------------------------
After discussing it on ShrinkWrap Development forum we decided to go with:
{code}
Collection<GenericArchive> Maven.artifacts(String... coordinates);
GenericArchive Maven.artifact(String coordinate);
Maven Maven.withPom(String pomFile);
Maven.withPom("pom.xml").artifact("foo:bar"); // no version required
there, POM may contain specific remote repositories definitions as well
{code}
was (Author: Silenius):
After discussing it on ShrinkWrap Development forum we decided to go with:
Collection<GenericArchive> Maven.artifacts(String... coordinates);
GenericArchive Maven.artifact(String coordinate);
Maven Maven.withPom(String pomFile);
Maven.withPom("pom.xml").artifact("foo:bar"); // no version required
there, POM may contain specific remote repositories definitions as well
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