1.0.3 • Published 3 years ago

@sennep/java-ee-build-cli v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

Creating node modules for Sennep

Simple CLI tool for building .war and .ear files for deployment on Java EE servers.

Project defaults to dist output folder and index.html entry point.

Running the main java-ee-build script will build a .ear file with the following folder structure:

project.ear
-- META-INF
---- application.xml
-- project.war
---- META-INF
------ MANIFEST.MF
---- WEB-INF
------ web.xml
---- contents of output folder

Prerequisites

NPM - >=9.3.0 - https://docs.npmjs.com/

Usage

This tool takes the contents of a projects dist folder to build into a Java EE ready .ear. Therefore you need to have a build version of your project inside a dist folder within your project directory before running this tool. Then, assuming you have installed npm you can follow the steps below:

  1. Add npm tool to your project with npm install java-ee-build-cli
  2. Run java-ee-build from your project directory
  3. your-project-name.ear file will be built in /java-build/ directory

Deployment

  1. Log in with your NPM account via npm login and fill in your credentials
    • Use npm whoami to check if you are logged in with the right account
  2. Update version number on the package.json and run npm update
  3. Commit your code to Bitbucket via Git
  4. Publish your code with npm publish (You don't have to build manually upfront since this is done by the prepublish script in the package.json)

Authors

  • Will Tinney
1.0.3

3 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago