Questions tagged [maven-metadata]

Maven metadata is used to store versioning information about Maven artifacts. This metadata is produced by tools such a Maven, Gradle, SBT, Ivy et al and it is updated during the deployment of an artifact.

Maven metadata is used to store versioining information about Maven artifacts. This metadata is produced by tools such a Maven, Gradle, SBT, Ivy et al and it is updated during the deployment of an artifact.

Maven metadata can be used by tools to figure out:

  • What versions of an artifact exist

  • What timestamped versions of a snapshot artifact exist

  • What plugins exist under a groupId

Maven metadata is also used by the maven-indexer for producing searchable Lucene indexes.

Official Resources on Maven Metadata

See Also

73 questions
2
votes
1 answer

Updating maven-metadata.xml when publishing to an SFT Resolver with SBT

I'm trying to publish artifacts to an SFTP resolver. After some initial struggle, the following configuration works fine: publishTo := Some(Resolver.sftp("foo-resolver", "domain", 22, "path/to/repo") .as("me", new…
Nicolas Rinaudo
  • 6,068
  • 28
  • 41
2
votes
1 answer

Maven downloads metadata.xml even after setting 'updatePolicy' to 'never'

I use Maven to handle the dependencies and also Nexus as a repository manager. In my new project, I have several dependencies for which Maven downloads metadata.xml files every day. Since they are released versions, I just don`t want maven to spend…
user3399000
  • 353
  • 3
  • 18
2
votes
2 answers

Authenticated HEAD call from Maven to Artifactory

I recently activated security on my Artifactory instance which cause several issue. One remains and seems a bit strange: Maven use HTTP HEAD to check if a new SNAPSHOT has been deployed. However, when security is enabled, the first call is done…
Olivier.Roger
  • 4,241
  • 5
  • 40
  • 68
2
votes
1 answer

lastUpdated is not showing in maven-metadata.xml

I have an issue with an artifact's maven-metadata.xml is not showing up. Here is the environment i am working on: Apache Archiva , Ivy, ant. Problem: When I am Deploying artifact via the Web UI Form, I am able to see all the attributes in…
Angrezy
  • 141
  • 2
  • 10
2
votes
1 answer

maven-metadata.xml for a group very slow

What are maven-metadata.xml for "groups"? How can we influence whether Maven loads maven-metadata.xml for a group or for a particular repository? And why is loading them for groups so incredibly…
Marcel Stör
  • 22,695
  • 19
  • 92
  • 198
2
votes
1 answer

Maven dependency version mismatch issue - resolving outdated version of dependency from repo

When I try to build my Maven project in Eclipse, I'm getting this build failure message: [INFO] Checking for transitive/resolved version mismatches. [INFO] com.company.etc:artifact-name: [INFO] required: 1.5 [INFO] resolved: 1.3 My POM file…
Matt Vukas
  • 3,225
  • 3
  • 26
  • 37
2
votes
2 answers

Sonatype Nexus: Unexpected value of tag in "maven-metadata.xml"

I'm using Sonatype Nexus v2.3.1-01 and I've got a problem with the value of the tag. I thought this value would become updated every time I upload a newer version of an artifact. Now I had a look at the values for a couple of…
user2124712
  • 161
  • 2
  • 13
2
votes
1 answer

Artifactory maven 3 unable to find a snapshot file

I am having problems getting artifactory to suppy a jar file to a maven 3 build process I have deploy the jar file gwt-openlayers-server-1.0-SNAPSHOT.jar to libs-snapshot-local I can find this jar file by using the general lookup in the Artifacts…
Dave
  • 577
  • 6
  • 25
2
votes
2 answers

maven deploy-file failed with 503: cannot find maven-metadata.xml

I am using Maven to integrate our project with others, maybe in a unpopular way and encountered issue. We have a project that used to compile with Ant. Ant script is big and awesome, so when we are using Maven for integration, it is decided to keep…
X.M.
  • 941
  • 3
  • 14
  • 22
2
votes
2 answers

How does maven 3 determine if a snapshot is updated?

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: true
nablex
  • 4,635
  • 4
  • 36
  • 51
1
vote
1 answer

Release version wrong in maven-matadata.xml in Nexus

My maven-metadata.xml does not have the correct RELEASE version in Nexus. I am using Nexus 1.8.0.1. We use the maven-release-plugin to deploy to Nexus and the log indicates that it updates the metadata. We also see that the correct version gets…
Geoff Bullen
  • 264
  • 1
  • 3
1
vote
0 answers

Force download maven-metadata.xml

So my job has 2 parts. The first part downloads all the required maven artifacts from a central online repository. The second part uses the download folder as an online repository(by changing URL from central repo to local folder) to build our…
Amit
  • 121
  • 1
  • 3
  • 12
1
vote
1 answer

Maven deploy transaction boundaries

How does repositry manager know when maven is starting a deployment and finishing it ?For example when mvn deploy command is executed maven uploads bunch of files. Now how should a server know when maven is done uploading all the files? I thought …
user93796
  • 18,749
  • 31
  • 94
  • 150
1
vote
1 answer

Maven does not delete extra artifacts from repository server

I deployed my java projects artifacts on a repository server using mvn deploy command. When i deployed the artifacts (release version) this time i also deployed javadocs and source using following in code snippet.
user93796
  • 18,749
  • 31
  • 94
  • 150
1
vote
0 answers

How can i know which build number maven uses to deploy my snapshort version?

When i deploy snapshot version to Maven repository, maven automatically determines following fields (time stamp and buildnumber) .Time stamp is current number while buildnumber is oldBuildNo+1.
user93796
  • 18,749
  • 31
  • 94
  • 150