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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:59:03+00:00 2026-05-29T06:59:03+00:00

I have a shared dependency as follows – <groupId>common.spring</groupId> <artifactId>spring</artifactId> <version>3.0</version> <packaging>pom</packaging> <modelVersion>4.0.0</modelVersion> I

  • 0

I have a shared dependency as follows –

    <groupId>common.spring</groupId>
    <artifactId>spring</artifactId>
    <version>3.0</version>
    <packaging>pom</packaging>
<modelVersion>4.0.0</modelVersion>

I then reference this dependency using :

<dependency>
            <groupId>common.spring</groupId>
            <artifactId>spring</artifactId>
            <version>3.0</version>
            <type>pom</type>
     </dependency>

I’m using spring version 3.0, is it common practice to set the to same. So this will work as long as the tags match. But should I use the version of spring I am using in the tag, what is common convention ?

  • 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-29T06:59:04+00:00Added an answer on May 29, 2026 at 6:59 am

    Common convention is to have a root pom, defining the version, and then leaving the version information out in your project poms so they will pick up the one from root pom.

    Often, Spring is a kind of special case as it has multiple modules that you’d want to have the same version, so something like

      <properties>
        <spring.version>3.0.0</spring.version>
      </properties>
    

    and

      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring</artifactId>
        <version>${spring.version}</version>
      </dependency>
    

    in the root pom is what we use. In the project pom it would be then like this:

      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring</artifactId>
      </dependency>
    

    However, if Spring is regarded just as a regular module, it would be just

      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring</artifactId>
        <version>3.0.0</version>
      </dependency>
    

    in the dependencies section in the root pom, and

      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring</artifactId>
      </dependency>
    

    on project pom.

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

Sidebar

Related Questions

I have added the following reference to my winforms C# project: CrystalDecisions.CrystalReports.Engine CrystalDecisions.ReportSource CrystalDecisions.Shared
In .net we are not allowed to have shared function/methods in abstract classes and
I have created a multi module maven project. Now I have shared the project
For several applications I made for my current client I have shared user accounts.
Over the last few months/years, I have shared a folder or two with numerous
I have a shared library that I wish to link an executable against using
I have a shared development server with many virtual directories running off one of
I have a shared structure, and inside it a request structure: struct shared_data {
I have a shared site in sharepoint and have some RSS feed webpart in
I have a shared hosting where I have my website and MySQL database. I've

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.