[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-115) Create Importer API bridge to SW

John Ament (JIRA) jira-events at lists.jboss.org
Fri Mar 8 10:48:42 EST 2013


    [ https://issues.jboss.org/browse/SHRINKRES-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759801#comment-12759801 ] 

John Ament commented on SHRINKRES-115:
--------------------------------------

In my opinion, I think there are two use cases.

1. Should ShrinkWrap resolve an artifact that hasn't been built yet? My opinion is no, if the artifact hasn't been built then it doesn't exist yet.

2. Can I easily refer to my own local artifact (say I'm testing the local war or jar file)? Yes, I think so, and I think it should be as simple as

Maven.resolver().offline().loadPomFromFile("pom.xml").resolve("com.mycompany:foo-app").withTransitivity().asSingle(WebArchive.class);

                
> Create Importer API bridge to SW
> --------------------------------
>
>                 Key: SHRINKRES-115
>                 URL: https://issues.jboss.org/browse/SHRINKRES-115
>             Project: ShrinkWrap Resolvers
>          Issue Type: Feature Request
>            Reporter: Andrew Rubinger
>            Assignee: Bernard Labno
>
> Use case as prototyped by [~blabno]:
> {code}
> final JavaArchive archive = ShrinkWrap.create(EmbeddedMavenImporter.class,
>   "jar-with-excludes.jar").loadPomFromFile(
>   "src/it/jar-sample/pom.xml").importBuildOutput().as(JavaArchive.class);
> {code}

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


More information about the shrinkwrap-issues mailing list