Skip to content

Minimal Pom, Hello World

Once you have decided on your groupId, artifactId and also set up the required folder structure, the next step is to create a minimal pom.xml file.
You can use below template as starting point, although you will need to make some minor changes.

Pom Template

Create the pom.xml at top level of your project, then paste in the below template content:

<?xml version="1.0"?>
<project xmlns="" xmlns:xsi="" xsi:schemaLocation="">


  <!-- main developer -->
      <name>Maximilian Schiedermeier</name>

  <!-- legal -->
      <name>MIT License</name>


    <!-- Override default name of generated artifacts -->


Next go over below list and make sure to updated the indicated fields:

  • Replace the groupId tag content by something that describes your group.
  • Replace the artifactId tag content by something that describes your project purpose.
  • Update the name tag to a single human readable word, describing your product.
  • Update the variable to a camelCase description of your product, as you want the generated executable file to be named.
  • Update the developer name and info.
  • Choose a license, or remove the license block if you want to reserve all rights.

Hello World

Next create a file in the lowest level of your src/main/java/... folder with the following content:

package eu.kartoffelquadrat.liveprogramming;

public class Launcher {

  public static void main(String[] args) {

    System.out.println("Hello, World!");

Note: Make sure the package matches your groupid + artifactid + any other subpackages you have in your folder structure!