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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:03:34+00:00 2026-06-05T15:03:34+00:00

We are hosting a simple maven repository internally but maven does not seem to

  • 0

We are hosting a simple maven repository internally but maven does not seem to pick up new snapshot versions from it. Our local maven repository is configured in settings.xml with:

<snapshots>
    <enabled>true</enabled>
    <updatePolicy>always</updatePolicy>
</snapshots>

Combine this with something like “mvn -U” and I would expect maven to pick up the latest snapshot version if applicable. As I gather, maven will check the last modified of the metadata.xml and determine from that whether or not the snapshot is updated. However I’m not entirely clear as to which last updated that is. Take for example the following metadata.xml:

<metadata>
<groupId>com.example</groupId>
<artifactId>example-test</artifactId>
<version>1.0-SNAPSHOT</version>
<versioning>
    <versions>
        <version>1.0-SNAPSHOT</version>
    </versions>
    <snapshot>
        <timestamp>20120427.113221</timestamp>
        <buildNumber>1335519141810</buildNumber>
    </snapshot>
    <lastUpdated>20120427113221</lastUpdated>
</versioning>

Does maven use the lastUpdated tag? The “last-modified” http header? The snapshot.timestamp tag or something else still?

Anyway, the behavior that we are seeing is that it will indeed download the latest metadata.xml but stops there, it does not redownload the snapshot itself.

EDIT: I have noticed that the unique snapshot feature that was optional in maven 2 has become mandatory in maven 3. Is it possible that maven is simply not detecting the updated version? Check out the maven-metadata.xml from the module now:

<metadata modelVersion="1.1.0">
<groupId>com.example</groupId>
<artifactId>example-test</artifactId>
<version>1.0-SNAPSHOT</version>
<versioning>
    <snapshot>
        <timestamp>20120607.154257</timestamp>
        <buildNumber>1339076577</buildNumber>
    </snapshot>
    <lastUpdated>20120607154257</lastUpdated>
    <snapshotVersions>
        <snapshotVersion>
            <extension>jar</extension>
            <value>1.0-20120607.154257-1339076577</value>
            <updated>20120607154257</updated>
        </snapshotVersion>
    </snapshotVersions>
</versioning>

Does maven check the build number? The “updated” tag of the snapshotVersion?

  • 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-05T15:03:36+00:00Added an answer on June 5, 2026 at 3:03 pm

    If you are working on a module locally and have run:

    mvn clean install

    This will have installed a copy in your local Maven repository. This artifact will be in a locked state — meaning — it will not be updated from the remote location unless the metadata*xml has been removed.

    This is a pain in the ass, if in a couple of days you’re done with your work on this module and start working on some other module, which in turn depends on this initial module, as it won’t pick up the changes from the your remote repository.

    There has been a bug filed for this here. However, it’s unlikely to be fixed anytime soon. Therefore, it’s essential to know about this behavior.

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

Sidebar

Related Questions

MagickWand is not suit, because it doesn't work on simple hosting. I'm searching for
I'm hosting a little site using a JavaScript to draw a simple graph. It
I'm using Mono 2.4 on the Ubiquity web hosting service. I created a simple
Because I don't want to spend +$12 for the simple-to-use github.com private hosting, I
My hosting company recently upgraded me from Apache 1 to Apache 2, and I've
I have a process, let's call it Process A, that is hosting a simple
Simple question -> for dedicated website hosting, do i need to download and install
Many simple MEF examples (listed below) uses AttributedAssemblyPartCatalog . Hosting MEF in an application
I have a simple Sinatra app that I will be hosting in tomcat as
I am hosting an IE browser control in a simple, .NET winforms app. When

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.