EasyPack Undertow Archetype

Maven archetype for creating a project that uses the Undertow server and is packaged with an EasyPack packaging

License

License

Categories

Categories

Undertow Net Networking
GroupId

GroupId

com.github.easypack
ArtifactId

ArtifactId

easypack-archetype-undertow
Last Version

Last Version

1.0.BETA
Release Date

Release Date

Type

Type

jar
Description

Description

EasyPack Undertow Archetype
Maven archetype for creating a project that uses the Undertow server and is packaged with an EasyPack packaging
Project URL

Project URL

https://github.com/easypack/easypack-archetype

Download easypack-archetype-undertow

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.easypack/easypack-archetype-undertow/ -->
<dependency>
    <groupId>com.github.easypack</groupId>
    <artifactId>easypack-archetype-undertow</artifactId>
    <version>1.0.BETA</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.easypack/easypack-archetype-undertow/
implementation 'com.github.easypack:easypack-archetype-undertow:1.0.BETA'
// https://jarcasting.com/artifacts/com.github.easypack/easypack-archetype-undertow/
implementation ("com.github.easypack:easypack-archetype-undertow:1.0.BETA")
'com.github.easypack:easypack-archetype-undertow:jar:1.0.BETA'
<dependency org="com.github.easypack" name="easypack-archetype-undertow" rev="1.0.BETA">
  <artifact name="easypack-archetype-undertow" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.easypack', module='easypack-archetype-undertow', version='1.0.BETA')
)
libraryDependencies += "com.github.easypack" % "easypack-archetype-undertow" % "1.0.BETA"
[com.github.easypack/easypack-archetype-undertow "1.0.BETA"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

##EasyPack Maven archetypes

The EasyPack Archetype project provides a list of Maven archetypes for creating and configuring projects that use the EasyPack Maven packagings.

All archetypes create a standard Maven project ready to be built and run, with a configured pom (including minimum required dependencies based on the archetype) and a Start class with necessary code for starting the application.

###Usage

The way to use any of the archetypes, is the same for any Maven archetype.

mvn archetype:generate -DarchetypeGroupId=com.github.easypack -DarchetypeArtifactId='archetype-id' -DarchetypeVersion=1.0

The packaging type is required, so it is necessary to provide one of the EasyPack packaging: jzip, jtar or jtargz.

After creation, a build can be triggered, then the final artifact can be unpacked, and the application run by using the bin/start script.

###Archetypes

  • easypack-archetype-quickstart: for quick starting a simple project, it creates the folders, a configured pom and a Start class.

  • easypack-archetype-jetty: creates a project that uses an embedded Jetty, with a configured pom including the minimum required dependencies and a Start class that runs the jetty container with a Servlet example.

  • easypack-archetype-tomcat: creates a project that uses an embedded Tomcat, with a configured pom including the minimum required dependencies and a Start class that runs the Tomcat container with a Servlet example.

  • easypack-archetype-undertow: creates a project that uses Undertow, with a configured pom including the minimum required dependencies and a Start class that runs the Undertow container with a Servlet example.

###Not yet released but

We are testing the archetypes in order to release a stable version. But if you want to try it, and help us testing meanwhile, there is a beta version that can be used. All artifacts are available at Mave Central Repository so no extra repository configuration is required.

Once the project is created you can try this:

  1. Build the project.
  2. Unpack the generated artifact (untar or unzip)
  3. Run the bin/start script
  4. If an embedded server project was built, hit localhost:8080

###Examples

mvn archetype:generate -DarchetypeGroupId=com.github.easypack -DarchetypeArtifactId=easypack-archetype-quickstart -DarchetypeVersion=1.0.BETA

mvn archetype:generate -DarchetypeGroupId=com.github.easypack -DarchetypeArtifactId=easypack-archetype-jetty -DarchetypeVersion=1.0.BETA

mvn archetype:generate -DarchetypeGroupId=com.github.easypack -DarchetypeArtifactId=easypack-archetype-tomcat -DarchetypeVersion=1.0.BETA

mvn archetype:generate -DarchetypeGroupId=com.github.easypack -DarchetypeArtifactId=easypack-archetype-undertow -DarchetypeVersion=1.0.BETA

com.github.easypack

EasyPack Maven Tools

A series of tools for enhancing Maven features.

Versions

Version
1.0.BETA