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
5
votes
0 answers

Force maven to update the tag in maven-metadata.xml when deploying

For some reason the "latest" tag in the maven-metadata.xml files stopped getting updated when new versions of their corresponding artifacts were deployed. After searching all over the internets, all I've found is plenty of people saying that Maven…
Brent212
  • 1,835
  • 4
  • 19
  • 23
5
votes
1 answer

How to get artifactory to update the maven-metadata.xml for a virtual repo?

long time reader, first time asker... I have a standalone network (no internet access). It has an artifactory server which has virtual libs-snapshot and libs-release repos. Under libs-snapshot, there are 4 local snapshot repos. The reason for…
TS Haines
  • 61
  • 5
4
votes
1 answer

schema or reference for maven-metadata.xml in maven 3 (specifically for , )?

I see Nexus OSS repo manager (re)generating the following maven-metadata.xml and cannot find any info on what do the following properties mean (or where can i find reference to maven-metata.xml - similar to pom.xml) latest - not latest by version…
Nikita
  • 6,019
  • 8
  • 45
  • 54
4
votes
2 answers

Latest version of an artifact from Apache Archiva

Is there some kind of parametrized url on archiva, where I can get the latest snapshot/release of an artifact? sth like https://myhappyarchiva.com/archiva/repository/com.example/com/example/myproject/LATEST/myproject-LATEST.jar
sofarsogood
  • 291
  • 2
  • 13
4
votes
1 answer

In Maven 3 dependency:resolve -U keeps redownloading the same maven-metadata.xml over and over

We're having a problem since moving over from Maven 2 to Maven 3: if we build with the '-U' flag, checking for artifact updates takes a lot longer compared to Maven 2. I'm not sure what Maven 2 did in this case, but it seems that Maven downloads all…
Leonard Ehrenfried
  • 1,573
  • 3
  • 20
  • 34
4
votes
1 answer

How does Maven2 know where to find plugins?

I'm using Maven2 and I can't seem to find any plugins in my repository. I'm getting errors like repository metadata for: 'org.apache.maven.plugins' could not be found on repository: myrepo where myrepo is the name of my repository. My question…
brabster
  • 42,504
  • 27
  • 146
  • 186
3
votes
0 answers

Gradle maven-publish not updating metadata

I have a very simple Gradle project which generates a jar file, and I am applying the maven-publish plugin and calling the publish task to publish artifacts to Artifactory: build.gradle: apply plugin: 'maven-publish' command: ./gradlew…
Ufder
  • 527
  • 4
  • 20
3
votes
1 answer

Whan can maven-metadata.xml tell about the time of an upload in Artifactory

In artifactory we have some local repo's. One of the repo's contains a lot of subfolders. Each subfolder contains a maven-metadata.xml and a lot of other folders and subfolders. is the maven-metadata.xml updated very time with the same date as the…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
3
votes
1 answer

Can i configure maven to use custom build number for Snapshot version

If i am deploying a snapshot jar file using mvn deploy, then maven generates the jar file name depending based as follows projectname-1.0-20170509.204524-1.jar That is $project1-$version-$date.$time-$buildnumber.jar Can i configure maven to use…
user93796
  • 18,749
  • 31
  • 94
  • 150
3
votes
2 answers

How might maven's buildNumber metadata become inconsistent across multiple build agents?

We recently added a second build machine to our build environment and began experiencing very odd occasional build failures. I have two separate Maven build machines, A and B, each running Maven 2.2.1 and communicating to a shared Nexus 1.5.0…
Brian Laframboise
  • 5,504
  • 2
  • 31
  • 32
3
votes
2 answers

Publishing Ivy SNAPSHOTS with Maven metadata

I have an Ivy project that publishes its artifacts to a Nexus Maven repository. I then need other Maven projects to be able to use those jars as dependencies. I have been able to get Ivy to create and upload the pom.xml along with the jars, which is…
kevinpeterson
  • 1,150
  • 9
  • 15
2
votes
1 answer

artifactory classifier metadata snapshot maven 3.0

My problem is "simple" but I didn´t found the solution until now: I have 2 projects. Project A built with a classifier (called dev or pro) with help of a specific profile Project B with a dependency to A (using classifier dev or pro) I execute…
2
votes
1 answer

Bintray : Maven-Publish with Gradle Bintray Plugin doesn't upload maven-metadata.xml checksum file

I'm trying to deploy my java project to Bintray. The version being built itself uploads fine but in the package main folder - there is no checksum file for maven-metadata.xml (maven-metadata.xml.md5, maven-metadata.xml.sh1 or any other). I cannot…
FunkSoulBrother
  • 2,057
  • 18
  • 27
2
votes
1 answer

Is the timestamp of Maven SNAPSHOTs of the same form in all repositories?

We use Nexus 2, which assigns a timestamp to every SNAPSHOT jar. This timestamp can be used to address the specific jar. We are thinking about moving to Nexus 3 or Artifactory in the future. I wonder whether the timestamp format is a Maven standard…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
2
votes
1 answer

Does maven alway deploys maven-metadata.xml file after all uploading artifacts

Is there any order in which maven deploying artifacts? From what i see i can say that it uploads all artifacts and at last it updates maven-medata.xml…
user93796
  • 18,749
  • 31
  • 94
  • 150