@sennep/java-ee-build-cli
v1.0.3
Published
CLI tool for building .war and .ear files for deployment on Java EE servers
Downloads
7
Readme
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:
- Add npm tool to your project with
npm install java-ee-build-cli
- Run
java-ee-build
from your project directory - your-project-name.ear file will be built in
/java-build/
directory
Deployment
- 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
- Use
- Update version number on the
package.json
and runnpm update
- Commit your code to Bitbucket via Git
- Publish your code with
npm publish
(You don't have to build manually upfront since this is done by theprepublish
script in thepackage.json
)
Authors
- Will Tinney