[
https://issues.apache.org/jira/browse/MINVOKER-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17691063#comment-17691063
]
Slawomir Jaranowski commented on MINVOKER-328:
----------------------------------------------
Confirm.
The stack is:
{code}
...
Caused by: java.lang.IllegalStateException: cannot install
/Users/slawomir.jaranowski/.m2/repository/org/apache/maven/maven-core/3.9.0/maven-core-3.9.0.jar
to same path
at org.eclipse.aether.internal.impl.DefaultInstaller.install
(DefaultInstaller.java:280)
at org.eclipse.aether.internal.impl.DefaultInstaller.install
(DefaultInstaller.java:246)
at org.eclipse.aether.internal.impl.DefaultInstaller.install
(DefaultInstaller.java:188)
at org.eclipse.aether.internal.impl.DefaultInstaller.install
(DefaultInstaller.java:149)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.install
(DefaultRepositorySystem.java:427)
at org.apache.maven.plugins.invoker.InstallMojo.installArtifacts
(InstallMojo.java:374)
{code}
> Plugin tries to install dependency to same path when localRepositoryPath not
> set
> --------------------------------------------------------------------------------
>
> Key: MINVOKER-328
> URL: https://issues.apache.org/jira/browse/MINVOKER-328
> Project: Maven Invoker Plugin
> Issue Type: Bug
> Affects Versions: 3.5.0
> Reporter: Delany
> Priority: Major
>
> The plugin tries to install a dependency from local Maven repository to the
> same location:
>
> {code:java}
> Installing
> /home/sol/.m2/repository/org/apache/maven/maven-core/3.9.0/maven-core-3.9.0.jar
> to
> /home/sol/.m2/repository/org/apache/maven/maven-core/3.9.0/maven-core-3.9.0.jar
> {code}
>
> Reproduce with
> [https://github.com/delanym/MINVOKER-283.git]
> No
> {{[<localRepositoryPath>|https://maven.apache.org/plugins/maven-invoker-plugin/install-mojo.html#localRepositoryPath]}}
> was set.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)