Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
2.8.1, 2.8.2
-
None
-
None
Description
Summary
If there is a pluginRepository defined in the POM, and the deployAtEnd configuration is true, the actual repo deployment at the end of the build is skipped.
Expectation is that the repo deployment at the end of the build would work regardless of pluginRepository configuration.
Steps
- In the trunk/2.9-SNAPSHOT project, run mvn deploy the deploy-at-end-pass integration test. The deploy happens successfully at the end of the build.
- Add a pluginRepository definition to deploy-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>
- Re-run the mvn deploy. Observe that the deploy to repo is not performed.
Workaround
Define the pluginRepositories in settings.xml, not in the current POM lineage. The deployAtEnd works as expected in this case.
Attachments
Issue Links
- is duplicated by
-
MDEPLOY-182 deployAtEnd bypassed in case of pluginRepository definition
- Closed
- is related to
-
MDEPLOY-189 when skip is enabled for the final module, deployAtEnd artifacts are not deployed
- Closed
-
MINSTALL-104 installAtEnd bypassed in case of pluginRepository definition
- Closed