0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 23:51:55 +00:00
renovatebot_renovate/lib/modules/datasource/maven/readme.md
Rhys Arkins 70fb88459b
feat(datasource/maven)!: use latest and release values as tags (#35515)
Adds support for `latest` and `release` tags in Maven datasource. This means that Renovate will no longer upgrade past the `latest` version in Maven unless `respectLatest` is explicitly configured to `false`.

BREAKING CHANGE: Renovate will now enforce `latest` version for Maven upgrades
2025-04-30 10:51:58 +02:00

1.2 KiB

Making your changelogs fetchable

In case you are publishing artifacts and you want to ensure that your changelogs are fetchable by Renovate, you need to configure the scm section on their pom.xml file.

For example:

<scm>
    <url>scm:git:https://github.com/path_to_repository</url>
</scm>

This is what allows Renovate to determine the sourceUrl, that it then uses to fetch the changelogs.

!!! note This also works for private repositories. It can leverage the same token that you had to configure in order to be able to reach the private Artifactory.

Specifying your project homepage

When opening a Pull Request Renovate uses the top level url property to determine the homepage of your project and shows it inside the Pull Request. To customize you can set it inside your pom.xml.

For example:

<url>https://project.example.com</url>

latest and release tags

When latest or release values are present in a package's maven-metadata.xml, Renovate will map these to its tags concept. This enables the use of Renovate's followTag feature.