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

Bernard Labno (JIRA) jira-events at lists.jboss.org
Tue Mar 12 11:53:52 EDT 2013


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

Bernard Labno commented on SHRINKRES-115:
-----------------------------------------

John, Arquillian should have soon long awaited featured to load all test into single archive and do one deployment for all test classes.
With this approach we can easily waste some time for building the package with maven.

Main reason is for acceptance tests. Arq praises itself for doing real tests, but unless the tests are run against almost exact same package as the one that will be used on production they are still just fakes. So we really need to have package built exactly the same as Maven would build it.

Other reason is that sometimes it's not as easy to build an archive as copying source files to a jar file. Sometimes those files require heavy processing.
And this is when we should use EmbeddedMavenImporter and let real Maven to build the archive.

Light MavenImporter by SW is still great option for simple cases.
                
> 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