C. Maven life cycle
Git Link
Maven build optimization
To avoid clean and install on the build project, you can combine it on "maven build".- Configure clean and install
- Define maven Goals. On Goals type "clean install". This command combine clean and install when we run the project build with maven.
- Avoid Java Unit Testing:
To minimize the build execution (only if it is necessary), you can skip the Unit Testing.
Just check "Skip Tests".
But, before deployement you shouldn't do this.
Just check "Skip Tests".
But, before deployement you shouldn't do this.
Every moment you shoul'd execute the Unit Testing, it is the best practice.
To skip Unit Testing on maven command, use :
To skip Unit Testing on maven command, use :
mvn install -Dmaven.test.skip=true
- Profiles : you can use Spring profile in you're project. Just put the profile on the input "Profiles". An example of profile : Production, Dev, Local.
@See : Spring profiles
Comments
Post a Comment