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 8704867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:13:12+00:00 2026-06-13T03:13:12+00:00

I realise this is more of a semantic quest rather than a functionality quest.

  • 0

I realise this is more of a semantic quest rather than a functionality quest.

I have three types of compile-scope dependencies:

  1. Compile-only scope, not used at run-time.
    GWT client-side dev, MVP4G, RestyGWT, Source retention annotation processors. I use REST, so I don’t need GWT server side.

  2. Provided – Hibernate jars required for compilation but provided by JBoss.

  3. Compile + runtime jars.

For case 2, we could use provided scope. Case 3, we would use compile scope.

However for case 1, I use provided scope, even though JBoss does not provide those files at all. Nor are they needed at run-time.

Anyway, don’t you think Maven should provide for a synonym for “provided” for a scope where the artefacts are not really needed except at compile time? Perhaps, should there be a “compile-only” scope?

  • 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-06-13T03:13:14+00:00Added an answer on June 13, 2026 at 3:13 am

    If the jars with are not true “runtime” dependencies (only for building) but not for the final artifact, you can exclude them various means:

    1. Exclusion in the assembly descriptor
    2. Exclusion in the jar (or war, ear, whatever) plugin configuration
    3. Shade Plugin minimize jar goal

    I agree that shipping unnecessary classes is annoying (I’ve seen junit and testng jars in production deployments – brrrr…), but for all practical purposes it’s a rather minor one.

    If you have a dependency conflict (i.e shipping a “all deps” version of a library or framework), that’s a different story, but doesn’t sound like what you’re facing here.

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

Sidebar

Related Questions

I have a relatively basic question but more than anything just need some clarity
I realize this is more of a hardware question, but this is also very
I realise this might be hard to explain, so let me start by using
So Heroku has been down all day, of course I didn't realise this until
Its when I try to do stuff like this I realise I really need
This question may seem blindingly obvious and I realise I am putting myself up
This is a bit of a vague question I realise, but I've been looking
I stumbled upon this problem and it took my a while to realise what
I realize this is a rather odd request, but I was wondering if anyone
I have a question about working with time in java, more specificly in Android.

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.