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

Samuel Santos (JIRA) jira-events at lists.jboss.org
Mon Feb 6 20:01:48 EST 2012


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

Samuel Santos updated SHRINKWRAP-379:
-------------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/shrinkwrap/resolver/pull/12

    
> 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
>
> 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