O'Reilly logo

Maven Essentials by Prabath Siriwardena

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A runnable standalone Maven project

Since we have covered a lot of ground-related information of the Maven assembly plugin, let's see how to build a complete end-to-end runnable standalone project with the assembly plugin. You can find the complete sample at https://svn.wso2.org/repos/wso2/people/prabath/maven-mini/chapter06. Proceed with the following steps to create a runnable standalone Maven project:

  1. First, create a directory structure, as shown here:
           |-pom.xml
           |-modules
             |- json-parser
                |- src/main/java/com/packt/json/JSONParser.java
                |- pom.xml
             |- distribution
                |- src/main/assembly/dist.xml
                |- pom.xml
  2. The JSONParser.java file is a simple Java class, which reads a JSON file and prints to the console, as shown here:
    package com.packt.json; import ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required