Skip to content
canonicalPublic

About

Workshop SDK for Maven

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Maven SDK for Workshop

A development environment for Maven projects. It provides versioned releases of the Apache Maven build tool and persists packages to speed up builds across workshop updates.


Reference workshop

A minimal workshop:

# workshop.yaml
name: maven-app
base: [email protected]
sdks:
  - name: openjdk
    channel: 21/stable
  - name: maven
    channel: 3.9/stable

actions:
  verify: mvn verify
  launch: java -jar target/your-app-name-1.0-SNAPSHOT.jar

This demonstrates a basic Maven build workflow.

Note: The Maven Workshop SDK requires a Java Development Kit (JDK) installation with a suitable version to run.


Using the SDK

Prerequisites, project layout

  1. The openjdk SDK (or other JDK installation) is required.
  2. Your Maven project should be in your project directory.
  3. On launch, the SDK confugures PATH. No dependencies are pre-installed; Packages are downloaded during the first maven verify or maven run.

Verify the project

Once the workshop is ready:

workshop shell
mvn verify

The first verify downloads packages in ~/.m2/repository, which is mapped to your host via the maven-cache mount plug. Subsequent builds reuse cached packages.

To see where the Maven cache is stored on the host:

workshop info

Run the project

From within the workshop shell:

workshop shell
mvn package
java -jar target/your-app-name-1.0-SNAPSHOT.jar

Use standard mvn commands; the toolchain behaves exactly as it would in a regular Maven installation.


Plugs (resources this SDK consumes)

maven-cache

  • Interface: mount
  • Workshop target: /home/workshop/.m2/repository
  • Purpose: Persists package downloads between workshop updates.

Slots (resources this SDK provides)

This SDK doesn't define any slots.


Documentation and guidance


Community and support


Contributions

All contributions, including code, documentation updates, and issue reports, are welcome!


License and copyright

Copyright 2026 Canonical Ltd.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 (LGPLv2.1) as published by the Free Software Foundation.

Maven is licensed under Apache License 2.0.

About

Workshop SDK for Maven

Resources

Stars

1 star

Watchers

0 watching

Forks

Used by

Contributors

Languages