geonetwork / geonetwork/core-geonetwork
Maven dependency plugins fails in 3.12.x Branch
- Dominant language
- Java
- Stars
- 521
- Forks
- 514
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 19
Description
**Describe the bug**
Downloading the dependencies in 3.12.x fails if the maven dependency plugin is used. While `mvn compile` or `mvn install` run without any issues the dependency plugin seems to be unable to find some dependencies:
```
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project gn-common: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact net.sf.json-lib:json-lib:jar:2.4 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
```
```
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project common: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact net.sf.saxon:saxon:jar:9.1.0.8b-patch in central (https://repo.maven.apache.org/maven2) -> [Help 1]
```
```
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project gn-common: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact xml-resolver:xml-resolver-patched:jar:1.2.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
```
**To Reproduce**
Steps to reproduce the behavior:
1. Checkout 3.12.x Branch
2. `mvn dependency:go-offline`
**Desktop (please complete the following information):**
- GeoNetwork Branch 3.12.x
- Maven Version 3.6.3 and 3.8.6
Contributor guide
Research direction
Check out the 3.12.x branch and run `mvn dependency:go-offline` to reproduce the failures for json-lib, Saxon, and xml-resolver-patched. Trace the Maven dependency configuration that differs between `mvn compile` or `mvn install` and the dependency plugin, and consider the issue done when the offline-goal command resolves successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100