Skip to content

A simple archetype for a web-app in JEE7 with its tomcat in a docker to make our dev way easy.

License

Notifications You must be signed in to change notification settings

ehlui/mvn-archetype-jee7-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Maven archetype for JEE 7 with Tomcat 8.5 in a container

You can install this archetype locally and then use it by

  • Command line with maven previously installed:

    • Remember to change DgroupId and DartifactId for your actual ones.
mvn archetype:generate \
  -DgroupId=com.example\
  -DartifactId=jee-simple-test\
  -DarchetypeGroupId=com.ehlui\
  -DarchetypeArtifactId=jee-simple\
  -DarchetypeVersion=1.0 -DinteractiveMode=false
  • Or just by your favourite IDE/text editor

After set the archetype

  1. If you want to use tomcat from a container (docker)
    1. Execute the deploy.sh in the root . Remeber this tomcat is in 8.5 version
  2. If not, you will have the wars (after packaging the app) in the /wars file from root (for use it wherever you want to).

After set your tomcat or other

Default Endpoints from the Artifact

If you deployed the tomcat from the script:

After deploying (deploy.sh) you should have the following endpoints available

  • Warning: If you have this port in use you can change it from the script
  1. Default one (root)
http://localhost:8585/artifactId/
  1. Using a servlet
http://localhost:8585/artifactId/servlet1

Archetype structure

├── Dockerfile.tomcat
├── deploy.sh
├── pom.xml
├── src
│   ├── main
│   │   ├── java
│   │   │   └── YourGroupId
│   │   │       └── App.java
│   │   ├── resources
│   │   └── webapp
│   │       ├── META-INF
│   │       │   └── context.xml
│   │       ├── WEB-INF
│   │       │   └── web.xml
│   │       ├── index.html
│   │       └── index.jsp
│   └── test
│       ├── java
│       │   └── YourGroupId
│       │       └── App.java
│       └── resources
└── wars

About

A simple archetype for a web-app in JEE7 with its tomcat in a docker to make our dev way easy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published