mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 02:29:51 +00:00
28ab04b43d
* feat(manager/ant): add registry URL discovery from settingsFile and remoteRepository Read Maven registry URLs from settingsFile attribute on dependency blocks (parsed via Maven's extractRegistries) and from inline <remoteRepository url="..." /> elements. Registries are merged, deduplicated, and scoped to their dependency block. * update java docs * fix coverage * apply suggestions * fix ci issues
29 lines
1.2 KiB
Markdown
29 lines
1.2 KiB
Markdown
Extracts Apache Ant dependencies from `build.xml` files that use the `maven-resolver-ant-tasks` or `maven-ant-tasks` library.
|
|
Dependencies are looked up using the Maven datasource.
|
|
|
|
### Supported syntax
|
|
|
|
Renovate extracts dependencies from `<dependency>` elements in two formats:
|
|
|
|
- Separate attributes: `groupId`, `artifactId`, `version`, and optional `scope`
|
|
- Coords attribute: `coords="group:artifact:version"` or `coords="group:artifact:version:scope"`
|
|
|
|
### Property resolution
|
|
|
|
Version values can reference Ant properties defined via `<property name="..." value="..."/>` or loaded from external `.properties` files via `<property file="..."/>`.
|
|
Ant's first-definition-wins semantics are respected.
|
|
|
|
### File traversal
|
|
|
|
Renovate follows `<import file="..."/>` elements to extract dependencies from imported build files.
|
|
Properties defined before an `<import>` are available in the imported file.
|
|
|
|
### Registry URLs
|
|
|
|
Renovate discovers Maven registry URLs from:
|
|
|
|
- `settingsFile` attribute on `<artifact:dependencies>` elements (parsed as a Maven `settings.xml`)
|
|
- Inline `<remoteRepository url="..." />` elements within dependency blocks
|
|
|
|
Discovered registries are scoped to their dependency block.
|