exclude dependencies when running sonar analysis

Posted by achraf on Stack Overflow See other posts from Stack Overflow or by achraf
Published on 2010-05-04T09:10:32Z Indexed on 2010/05/04 10:58 UTC
Read the original article Hit count: 338

Filed under:
|

I have a test project requiring some heavy jars which i put in ${M2_HOME}\test\src\main\resources\ and add them in the pom.xml using :

    <dependency>
        <groupId>server</groupId>
        <artifactId>server</artifactId>
        <version>1.0</version>
        <scope>system</scope>
        <systemPath>${M2_HOME}\test\src\main\resources\server.jar</systemPath>
    </dependency>
    <dependency>
        <groupId>client</groupId>
        <artifactId>client</artifactId>
        <version>6.0</version>
        <scope>system</scope>
        <systemPath>${M2_HOME}\test\src\main\resources\client.jar</systemPath>
    </dependency> 

I want to know if it possible to exclude them during sonar analysis, or generally just analyze java sources folder.

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about sonar