CICD

Maven Playground

Maven is a powerful project management and build automation tool used primarily for Java-based projects..

Get access to the Maven playground with one click

Welcome to the Maven Playground!

Apache Maven 3.9 on Eclipse Temurin JDK 21 (Alpine) — the standard build and dependency management tool for Java projects, from small apps to enterprise microservices.

What’s Pre-installed

  • Maven 3.9 with mvn on PATH
  • JDK 21 (Eclipse Temurin, Alpine)
  • Tools: bash, curl, wget, git

Quick Start

mvn --version
java -version
echo $JAVA_HOME

Common Workflows

# Generate a new project from archetype
mvn archetype:generate \
  -DarchetypeGroupId=org.apache.maven.archetypes \
  -DarchetypeArtifactId=maven-archetype-quickstart \
  -DarchetypeVersion=1.4 \
  -DgroupId=com.example \
  -DartifactId=myapp \
  -DinteractiveMode=false

cd myapp
mvn compile      # compile sources
mvn test         # run JUnit tests
mvn package      # build JAR
java -cp target/myapp-1.0-SNAPSHOT.jar com.example.App

Advanced Tips

# Show full dependency tree
mvn dependency:tree

# Run a specific test class
mvn test -Dtest=AppTest

# Build without running tests
mvn package -DskipTests

# Show effective POM
mvn help:effective-pom

Session Notes

  • Session lasts 1 hour.
  • First build downloads dependencies — subsequent builds use the local ~/.m2 cache.