Skip to content

Instantly share code, notes, and snippets.

@satsie
Last active November 19, 2018 20:32
Show Gist options
  • Select an option

  • Save satsie/5fe7c78ce8bb169e5c6180c956b90137 to your computer and use it in GitHub Desktop.

Select an option

Save satsie/5fe7c78ce8bb169e5c6180c956b90137 to your computer and use it in GitHub Desktop.
Notes on Maven
Create project:
mvn -B archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=my.group.id \
-DartifactId=my-sample-project
mvn dependency:tree -Dverbose
Effective pom shows you the result of combining the parent + child poms:
mvn help:effective-pom
Surefire vs. Failsafe plugins: Surefire is for Unit tests and can fail the build, Failsafe is for integration tests and will not fail the build, instead it "fails in a safe way"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment