Looking at the Piranha Server Maven plugin

The Piranha Server Maven plugin is a Maven plugin that will make your inner-loop development a lot quicker. The plugin makes it possible for you to run, start and stop a Piranha Server instance which you can then use to run your web application.

Its core 3 goals are:

Setting up the use of the Maven plugin

Add the following plugin definition to your project POM file to make it easy to use the plugin.

    <plugin>
        <groupId>cloud.piranha.maven.plugins</groupId>
        <artifactId>piranha-server-maven-plugin</artifactId>
    </plugin>
        

Using the run goal

If you want to run Piranha Server and have the console echo its logs use the piranha-server:run goal.

Using the start goal

If you want to run Piranha Server as a separate process use the piranha-server:start goal.

Using the stop goal

If you want to stop a running Piranha Server that you previously started use the piranha-server:stop goal.

And that is all that is needed to start your inner-loop development!

Posted December 8th, 2021

Up