[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-379) Add method resolveAsFile to Maven shortcut API

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Tue Feb 7 02:25:48 EST 2012


     [ https://issues.jboss.org/browse/SHRINKWRAP-379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Rubinger updated SHRINKWRAP-379:
---------------------------------------

           Status: Resolved  (was: Pull Request Sent)
    Fix Version/s: resolver-2.0.0-alpha-1
       Resolution: Done


Upstream: https://github.com/shrinkwrap/resolver/commit/811b9d7bfa71b0dfa6e8581cf167823cf450574b
                
> Add method resolveAsFile to Maven shortcut API
> ----------------------------------------------
>
>                 Key: SHRINKWRAP-379
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-379
>             Project: ShrinkWrap
>          Issue Type: Enhancement
>          Components: ext-resolver
>            Reporter: Samuel Santos
>            Assignee: Samuel Santos
>             Fix For: resolver-2.0.0-alpha-1
>
>
> Currently to create a JavaArchive from an existing file we need something like this:
> {code}
> final JavaArchive ejbJar = ShrinkWrap
>         .createFromZipFile(JavaArchive.class, DependencyResolvers.use(MavenDependencyResolver.class)
>                 .loadMetadataFromPom("pom.xml").artifact("com.foo:bar")
>                 .resolveAsFiles(new StrictFilter())[0]);
> {code}
> Would be cleaner to use the Maven Shortcut API:
> {code}
> final JavaArchive ejbJar = ShrinkWrap
>         .createFromZipFile(JavaArchive.class, Maven.withPom("pom.xml").resolveAsFile("com.foo:bar"));
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list