EasyPack Maven Archetype

Maven archetypes for creating projects that uses EasyPack packagings

License

License

GroupId

GroupId

com.github.easypack
ArtifactId

ArtifactId

easypack-archetype
Last Version

Last Version

1.0.BETA
Release Date

Release Date

Type

Type

pom
Description

Description

EasyPack Maven Archetype
Maven archetypes for creating projects that uses EasyPack packagings
Project URL

Project URL

https://github.com/easypack/easypack-archetype
Source Code Management

Source Code Management

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

Download easypack-archetype

How to add to project

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

  • easypack-archetype-quickstart
  • easypack-archetype-tomcat
  • easypack-archetype-jetty
  • easypack-archetype-undertow

##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