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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:15:34+00:00 2026-05-24T17:15:34+00:00

A colleague is trying to set up a new Spring project. The project explicitly

  • 0

A colleague is trying to set up a new Spring project. The project explicitly depends on spring-security, which in turn (implicitly) depends on wss4j. When running the tests, he gets a problem with a missing class.

We’ve tracked the missing class to axis-saaj, a ‘provided’ scoped dependency of wss4j. When I run the dependency:tree maven target, it’s not listed as a dependency of his project.

My understanding of ‘provided’ is this: It’s resolved by Maven for the build, but not included in the deliverable, nor supplied by Maven (on the classpath) for any ‘run’ phases (running tests nor running the app itself through Maven).

So, where the ‘provided’ dependency is implicit to your project, Maven would ignore it completely since it’s not actually building the deliverable that depends on the ‘provided’ artifact, and it’s up to you to supply it for the run-time.

I’ve tested and dependency:tree lists provided dependencies if they are explicit dependencies of your project, but not if they’re lower down the dependency tree.

I’ve told him to include the dependency as an explicit one (scoped ‘runtime’) for now, but obviously this will cause problems in a full runtime environment (it’s not scoped ‘provided’ for nothing), but we need to know the dependencies to explicitly include them. Does anyone know of any way to get the full dependency list for a project?

Thanks

PS. I know I could also get him to explicitly rely on ‘axis-saaj’ with a scope of ‘test’, but this is not the issue, listing the dependencies is!

PPS. we’re using Maven 3 for this

PPPS. I haven’t included any pom text here as it would get too long. You can see this by creating a project an explicit dependency on (groupId) org.springframework.ws, (artifactId) spring-ws-security, (version)2.0.0.RELEASE.

  • 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-24T17:15:35+00:00Added an answer on May 24, 2026 at 5:15 pm

    mvn dependency:tree and mvn dependency:list give the “full dependency list” you’re looking for. As you seem to correctly understand, provided-scope dependencies of your dependencies aren’t eligible for “transitiveness”, for lack of a better word, and therefore don’t count as a dependency of your project. You seem to have a correct grasp of the situation, so I’m not sure what else you’re asking. Try asking some specific questions and/or read over the basics of transitive dependencies, particularly the table a little way down the page which shows that provided dependencies are never included in transitiveness.

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

Sidebar

Related Questions

We're two people trying to get a new project up and running while working
a colleague and I are trying pair programming for the first time. We both
a colleague pointed me the other day to BCEL which , as best I
My colleague insists on explicitly specifying the namespace in code as opposed to using
I'm trying to speed up SELECT queries in MySQL tables which already have some
I'm trying to fill in for a colleague in doing some Oracle work, and
I've been having loads of problems trying to get a Spring/Hibernate web application to
Me and my colleague are trying to implement a mechanism to get recovery from
I'm trying to convince a colleague that a function should take an interface as
My colleague and I are trying to find the best query to sync up

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.