Skip to content

Maven & Gradle

Maven & Gradle

Apache Maven

Scaffolding a project with Maven (maven archetype)

Maven Tests

Dependency Resolution in Maven

mvn dependency:analyze  (shows you the usage of listed and unlisted dependencies)
mvn dependency:resolve  (give me a list of everything I have declared, a nice way to avoid reading the POM file)
mvn dependency:tree     (how you got something on your classpath)

Maven and Docker

IDEs

Intellij IDEA

Maven Plugins

Maven Cheat Sheets

Other Commands

  • Display contents of a jar file:
jar tf target/example-1.0.0-SNAPSHOT.jar

Fabric8 Maven Plugin

Gradle

Gradle Cheat Sheets