You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/04/02 08:46:40 UTC
[I] [MINSTALL-104] installAtEnd bypassed in case of pluginRepository definition [maven-install-plugin]
jira-importer opened a new issue, #228:
URL: https://github.com/apache/maven-install-plugin/issues/228
**[Ryan Parrish](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ryancparrish)** opened **[MINSTALL-104](https://issues.apache.org/jira/browse/MINSTALL-104?redirect=false)** and commented
## Summary
If there is a pluginRepository defined in the POM, and the installAtEnd configuration is true, the actual local repo installation at the end of the build is skipped.
Expectation is that the local repo installation at the end of the build would work regardless of pluginRepository configuration.
## Steps
1. In the [trunk/2.6-SNAPSHOT](http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin) project, run `mvn install` the install-at-end-pass integration test. The install happens successfully at the end of the build (see console output attached).
2. Add a pluginRepository definition to install-at-end-pass/pom.xml, such as
```
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>Maven Plugin Repository</name>
<url>http://repo1.maven.org/maven2</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
```
1. Re-run the `mvn install`. Observe that the install to local repo is not performed (see attached install-at-end-pass_withpluginrepo.txt console output).
## Workaround
Define the pluginRepositories in settings.xml, not in the current POM lineage. The installAtEnd works as expected in this case.
---
**Affects:** 2.5, 2.5.2
**Attachments:**
- [install-at-end-pass_original.txt](https://issues.apache.org/jira/secure/attachment/12716615/install-at-end-pass_original.txt) (_2.92 kB_)
- [install-at-end-pass_withpluginrepo.txt](https://issues.apache.org/jira/secure/attachment/12716630/install-at-end-pass_withpluginrepo.txt) (_2.51 kB_)
**Issue Links:**
- [MDEPLOY-179](https://issues.apache.org/jira/browse/MDEPLOY-179) deployAtEnd bypassed in case of pluginRepository definition
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MINSTALL-104] installAtEnd bypassed in case of pluginRepository definition [maven-install-plugin]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #228:
URL: https://github.com/apache/maven-install-plugin/issues/228#issuecomment-2771853536
**[Robert Scholte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rfscholte)** commented
This is a Maven Core issue which can't be fixed by the plugin. It seems like the instances of the maven-install-plugin end up in different ClassRealms, so the plugin can't detect when it's ready.
This is one those edge-cases where deployAtEnd won't work, hence the reason why it's default value is still false.
We're investigating improvements on the lifecycle handling for the next major release of Maven.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MINSTALL-104] installAtEnd bypassed in case of pluginRepository definition [maven-install-plugin]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer closed issue #228: [MINSTALL-104] installAtEnd bypassed in case of pluginRepository definition
URL: https://github.com/apache/maven-install-plugin/issues/228
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org