Giter Site home page Giter Site logo

jee-starter's Introduction

Eclipse Starter for Jakarta EE

This is the official Eclipse Foundation starter for Jakarta EE. It generates code to help get started with Jakarta EE projects using Maven. It is possible to do so using a Maven Archetype. In the future the starter will include a Web UI.

Current Release

Please note that this is a development version of the starter. For the current release, please visit the project website. This code will allow you to use features that are not yet released. It will also allow you to build the starter from source.

Building Maven Archetype from Source

In order to build the Maven Archetype from source, please download this repository on your file system (the easiest way may be to download as zip). Then execute the following. Please ensure you have installed a Java SE 8+ implementation and Maven 3+ (we have tested with Java SE 8, Java SE 11 and Java SE 17).

mvn clean install

Generate Jakarta EE Project

In order to run the Maven Archetype and generate a sample Jakarta EE project, please execute the following. Please ensure you have installed a Java SE 8+ implementation and Maven 3+ (we have tested with Java SE 8, Java SE 11 and Java SE 17).

mvn archetype:generate -DarchetypeGroupId="org.eclipse.starter" -DarchetypeArtifactId="jakarta-starter" -DarchetypeVersion="1.1.0-SNAPSHOT"

Note that by default the Archetype will use Payara as the Jakarta EE runtime. You can use GlassFish or TomEE instead (please see the sections below for the commands to execute instead).

If desired, you can easily use the Maven Archetype from a Maven capable IDE such as Eclipse.

If you use the defaults, this will generate the Jakarta EE project under a directory named jakartaee-cafe. You can then run the project by executing the following command from the jakartaee-cafe directory. Please ensure you have installed a Java SE 8+ implementation and Maven 3+ (we have tested with Java SE 8, Java SE 11 and Java SE 17).

mvn clean package payara-micro:start

Once Payara Micro starts, you can access the project at http://localhost:8080.

You can also run the project via Docker. To build the Docker image, execute the following commands from the jakartaee-cafe directory. Please ensure you have installed a Java SE 8+ implementation, Maven 3+ and Docker (we have tested with Java SE 8, Java SE 11 and Java SE 17).

mvn clean package
docker build -t jakartaee-cafe:v1 .

You can then run the Docker image by executing:

docker run -it --rm -p 8080:8080 jakartaee-cafe:v1

Once Payara starts, you can access the project at http://localhost:8080/jakartaee-cafe.

The generated starter code is simply a Maven project. You can easily load, explore and run the code in a Maven capable IDE such as Eclipse.

GlassFish

  • To generate a sample Jakarta EE project with GlassFish, please execute the following. Please ensure you have installed a Java SE 8 implementation and Maven 3+. Please note that the generated application will only work with Java SE 8 for GlassFish 5.

    mvn archetype:generate -DarchetypeGroupId="org.eclipse.starter" -DarchetypeArtifactId="jakarta-starter" -DarchetypeVersion="1.1.0-SNAPSHOT" -Druntime="glassfish"
    
  • To run the generated project with GlassFish, please execute the following from the project directory - named jakartaee-cafe by default. Please ensure you have installed a Java SE 8 implementation and Maven 3+.

    mvn clean package cargo:run
    

    Once GlassFish starts, you can access the project at http://localhost:8080/jakartaee-cafe. Note that GlassFish currently does not include an official Docker image.

TomEE

  • To generate a sample Jakarta EE project with TomEE, please execute the following. Please ensure you have installed a Java SE 8+ implementation and Maven 3+ (we have tested with Java SE 8, Java SE 11 and Java SE 17).

    mvn archetype:generate -DarchetypeGroupId="org.eclipse.starter" -DarchetypeArtifactId="jakarta-starter" -DarchetypeVersion="1.1.0-SNAPSHOT" -Druntime="tomee"
    
  • To run the generated project with TomEE, please execute the following from the project directory - named jakartaee-cafe by default. Please ensure you have installed a Java SE 8+ implementation and Maven 3+ (we have tested with Java SE 8, Java SE 11 and Java SE 17).

    mvn clean package tomee:run
    

    Once TomEE starts, you can access the project at http://localhost:8080/jakartaee-cafe.

  • To run the generated project with TomEE and Docker, execute the following commands from the jakartaee-cafe directory. Please ensure you have installed a Java SE 8+ implementation, Maven 3+ and Docker (we have tested with Java SE 8, Java SE 11 and Java SE 17).

    mvn clean package
    docker build -t jakartaee-cafe:v1 .
    docker run -it --rm -p 8080:8080 jakartaee-cafe:v1
    

    Once TomEE starts, you can access the project at http://localhost:8080/jakartaee-cafe.

Roadmap

The following is a high level roadmap for the project. All contributions are welcome advancing any of this work.

  • Add support for other Jakarta EE compatible runtimes such as WildFly and Open Liberty.
  • Transition to Jakarta EE 9.1.
  • Add instructions for Eclipse IDE.
  • Add starter UI capability.
  • Add support for generating a Faces UI instead of REST.
  • Improve look and feel.

Known Issues

  • Note that Payara does not yet work on the Apple M1 chip. If you are on an M1 chip, we suggest you use GlassFish or TomEE for the time being.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.