[arquillian-issues] [JBoss JIRA] (ARQ-889) Arquillian BOM causes ShrinkWrap dependencies to be included in the lib folder of a WAR archive

Samuel Santos (JIRA) jira-events at lists.jboss.org
Fri Apr 27 22:54:17 EDT 2012


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

Samuel Santos commented on ARQ-889:
-----------------------------------

@Gunnar, the quick fix above will work exactly as expected.

Define Arquillian BOM normally:
{code}
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.jboss.arquillian</groupId>
            <artifactId>arquillian-bom</artifactId>
            <version>1.0.0.Final</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
    </dependencies>
</dependencyManagement>
{code}

Add your Arquillian dependency with the scope test:
{code}
<dependencies>
    <dependency>
        <groupId>org.jboss.arquillian.testng</groupId>
        <artifactId>arquillian-testng-container</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>
{code}

And you will end up with all the needed JARs in your classpath with test scope.
Removing the scope import from ShrinkWrap BOMs, will not cause the dependencies to be removed from your classpath.
It's only a way to allow you to override their scopes with <scope>test</scope>, which is defined in arquillian-testng-container dependency.
                
> Arquillian BOM causes ShrinkWrap dependencies to be included in the lib folder of a WAR archive
> -----------------------------------------------------------------------------------------------
>
>                 Key: ARQ-889
>                 URL: https://issues.jboss.org/browse/ARQ-889
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.0.0.Final
>            Reporter: Samuel Santos
>            Priority: Critical
>
> The dependencies shrinkwrap-bom, shrinkwrap-resolver-bom, and shrinkwrap-descriptors-bom are using the scope import causing those libraries to be included in the project WAR archive.
> A quick fix is to remove the scope from those dependencies.

--
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 arquillian-issues mailing list