Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.9.0, 4.0.0-alpha-3
-
None
-
None
-
None
Description
This happens when using split repositories with maven resolver 1.9.x.
This breaks the flatten-maven-plugin for example.
The reason is that maven injects a org.apache.maven.artifact.repository.ArtifactRepository instance for the ${localRepository} which is the same than the one available from MavenExecutionRequest.getLocalRepository() .
Unfortunately those objects do not wrap the maven resolver local repository implementation and the layout is hardcoded. The actual implementation is created by https://github.com/apache/maven/blob/maven-3.9.x/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java#L638
Attachments
Issue Links
- causes
-
MRESOLVER-322 Local repository split (releases/snapshots) fails with flatten-maven-plugin and imported dependencies
- Closed
- relates to
-
MNG-7706 Deprecate ${localRepository} mojo parameter expression
- Closed