Test the deployAtEnd=true
during mvn release:perform
and mvn deploy
.
I wanted to test if mvn -Darguments=\"-DdeployAtEnd=true\" release:perform
is doing the same as the deployAtEnd=true
configuration in the parent pom.xml
of a multi-modules maven project.
I did some tests with deployAtEnd=true
. As expected, the download and the upload of files are done at the end. To verify this, I checked the diff of the output with deployAtEnd
in the main pom.xml
and without it (search for "at end" in the logs).
Add the configuration in the pom.xml
:
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<deployAtEnd>true</deployAtEnd>
</configuration>
</plugin>
(example here)
mvn -Darguments=\"-DdeployAtEnd=true\" release:perform
It does the same, see the following files and search for "[INFO] [INFO] Deploying org.example:mvn-deploy-test:X.X at end".
- Clone the repo https://github.com/thibaudledent/mvn-deploy-test
- Add the
deployAtEnd
config in the mainpom.xml
:
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<deployAtEnd>true</deployAtEnd>
</configuration>
</plugin>
mvn release:prepare
mvn release:perform
- Remove the config in the main
pom.xml
mvn release:prepare
mvn -Darguments=\"-DdeployAtEnd=true\" release:perform
- Check the output, it does the same