Skip to content

technosf/technosf-archetype-ewar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

technosf-archetype-ewar

Executable Web Archive (.war) files are incredibly handy - deploy your web application via them to Java Web Application servers, or just execute them directly as you would a Java Archive (.jar) file:

java -jar myapplication.war

This project builds Maven Archetypes that generate executable war files with a sample application that you can build off. Generating a Maven Project from a technosf-archetype-ewar archetype will deliver a dynamic web application combined with an embedded Eclipse Jetty web application server.

Table of Contents

How Does An Executable Web Archive Work?

.jar files can be execute directly with the java -jar command. This is achieved by following a standard archive layout and by including a manifest that specifies a main class to execute.

.war files are deployed for execution within web application servers that expect the archive to follow a standard layout and to including specific deployment descriptors.

An executable .war file is a .war file which has had an embedded web application server included in it using the executable .jar layout. By executing the .war file with the java -jar command, the embedded web application server starts up, explodes the .war it is contained in and runs the contained web application.

Installation

Download the archetype for the version of Jetty you wish to use. Generate a project with the command:

mvn install:install-file technosf-archetype-ewar-9.3_8.5.jar

Components

  • technosf-archetype-ewar archetypes are built utilizing the Eclipse Jetty web application server
  • JSP's are compiled with Apache Tomcat Jasper
  • JSTL standard libraries are included
  • JQuery core, cookies and template are included

License

technosf-archetype-ewar - Copyright 2016 technosf [https://github.com/technosf]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.