Maven Notes

Submitted by code_admin on Wed, 07/25/2018 - 10:43

My Group ID's

metcarob.com.practice

Executing

Windows - need bat file for running maven

Command to execute by ID:
mvn exec:exec@first-execution

Releasing

Do one at a time and check each stage

  1. mvn release:prepare
  2. mvn release:perform
  3.  
  4. CHECK FOR ERRORS
  5.  
  6. git add --all
  7. git commit -m"Finish release"
  8. git push

Rollback a release

  1. mvn release:rollback

Gitlab is doing deploys and this process and gitlab has mutiple commits which does the deploys.

16-Nov-2016 - Had to run mvn deploy after this to get snapshot into snapshot repo

Passing paramaters to release

  1. mvn release:prepare -Darguments="-Dcmd.env=dev -Dcmd.parent.sys=soa"

Eclipse Error running plugins

In eclipse Luna 4.4.0, you can chose to ignore this error in preferences
Windiow > Preferences > Maven > Errors/Warnings > Plugin executiuon not covered by lifecycle configuration. Select Ignore / Warninig / Error as you wish.
http://stackoverflow.com/questions/6352208/how-to-solve-plugin-executio…

Tags

RJM Article Type
Quick Reference