Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 760731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:45:12+00:00 2026-05-14T15:45:12+00:00

I have a test project requiring some heavy jars which i put in ${M2_HOME}\test\src\main\resources\

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:45:13+00:00Added an answer on May 14, 2026 at 3:45 pm

    If the problem is that these JARs are included in sonar analysis because they are located in src/main/resources, then one obvious solution would be to put them somewhere else (see the post scriptum). If for whatever reason this is not possible, please clarify (I’d really like to know why you put these JARs under resources).

    If the problem is that these JARs are declared as dependencies, you could use a specific profile not including them to run sonar.

    PS: Note that using the system scope is a bad practice and has several drawbacks (as mentioned here or here). A cleaner approach would be to use a file based repository as suggested in this answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to test some things on a project which has been developed by
I have an Android test project in which I test my main application. The
I have a unit test project based on UnitTest++. I usually put a breakpoint
For some reason, my visual studio 2008 installation doesn't have the Create Test Project
I have a test project in my appharbor solution which uses the connectionstring located
I have simple test project which creates a frame and adds one JTextPane to
I have a test project Company.Test which is located under C:\Dev\Projects\Tests folder When I
I have a test project using Log4net. When I add a class library (from
I have a test project which demonstrates a memory leak caused by Admob 4.1.1.
I have a test solution (TestSolutionA) which contains a test project (TestProjectA: containing system

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.