8000 GitHub - thibaudledent/mvn-deploy-test: Test the deployAtEnd=true during mvn release:perform and mvn deploy
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

thibaudledent/mvn-deploy-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mvn-deploy-test

Test the deployAtEnd=true during mvn release:perform and mvn deploy.

Testing mvn prepare 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).

How to use deployAtEnd?

Solution 1

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)

Solution 2

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".

Steps to reproduce

  1. Clone the repo https://github.com/thibaudledent/mvn-deploy-test
  2. Add the deployAtEnd config in the main pom.xml:
<plugin>
    <artifactId>maven-deploy-plugin</artifactId>
    <version>2.8.2</version>
    <configuration>
        <deployAtEnd>true</deployAtEnd>
    </configuration>
</plugin>
  1. mvn release:prepare
  2. mvn release:perform
  3. Remove the config in the main pom.xml
  4. mvn release:prepare
  5. mvn -Darguments=\"-DdeployAtEnd=true\" release:perform
  6. Check the output, it does the same

References

About

Test the deployAtEnd=true during mvn release:perform and mvn deploy

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0