Code Monkey home page Code Monkey logo

jakartaee-firstcup's Introduction

First Cup Tutorial

This repository contains the source files that are used to build the Jakarta Enterprise Edition Your First Cup: An Introduction to Jakarta EE. The source files are authored in AsciiDoc. AsciiDoc is similar to markdown but is particularly suited for user documentation. This project also uses JBake. JBake is a static site generator that is inspired from Jekyll and written in Java. JBake uses templates for the structure of the page and the body of the page is generated from AsciiDoc content.

Note that the First Cup Tutorial code examples are located in a separate repository eclipse-ee4j/jakartaee-firstcup-examples.

Contributing

The easiest way to contribute is by opening an issue in this project that contains feedback and review comments.

The First Cup Tutorial project is also open for contributions and your help is greatly appreciated. If you have an idea for the tutorial and want to add a section or update an existing section, then review the following links:

Building the First Cup Tutorial

The following directions explain how to do local builds of the tutorial. Note that any changes that are pushed to the master branch automatically trigger a build of the site files and tutorial sources. The results are automatically pushed to the gh-pages branch. You can view the published site here.

Pre-Requisites

  • Maven
  • JDK8+

Note that manually deploying the site requires password-less authentication. This is done by exporting your SSH public key into your GitHub account.

Build the Site Locally

The site is generated under target/staging. Open file:///PATH_TO_PROJECT_DIR/target/staging in a browser to view the output.

mvn generate-resources

You can also invoke the JBake plugin directly:

mvn jbake:build

Rebuild the Site on Changes

The following command builds the site and, if kept running, detects changes to the sources and incrementally renders the site. This is convenient when writing content.

mvn jbake:watch

Serve the Site locally

If a web server is required (for example, absolute paths are used), you can use the following command to start a Jetty web server at http://localhost:8820. The command also watches for changes and rebuilds incrementally.

mvn jbake:serve

Deploy the Site to Github Pages

If you want to manually push a build to the gh-pages branch, use:

mvn deploy -Ppublish-site

Never commit changes to the gh-pages branch directly.

Produce a Zip File for Download

To produce a zip file containing the generated HTML files, use:

mvn package

When making a release on GitHub, this zip file should be added to the release.

Links

jakartaee-firstcup's People

Contributors

arjantijms avatar bshannon avatar edbratt avatar gabrielbussolo avatar jbescos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jakartaee-firstcup's Issues

Need more explanation about "import javax.ws.rs.*" there are more then one choice.

I'm using NetBeans 8.2 and Java EE 8.
I'm followed the tutorial but at the "Creating the dukes-age Application Using the Maven Archetype" point there is a problem, this line give error:

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

Because there are multiple match to the package javax.ws.rs through the "Search Dependency at Maven Repositories for javax.ws.rs" I get this:

  • com.sun.jersey: jersey-bundle
  • com.sun.jersey: jersey-core
  • javax: javaee-api
  • javax: javaee-web-api
  • javax.ws.rs: javax.ws.rs-api
  • org.glassfish.jersey: jax-rs-ri
  • org.glassfish.jersey.bundles: jaxrs-ri

so what I should choose?
I think that the tutorial should explain this point.

I give to Oracle and all Users the right to post, access, discuss, use, publish, disseminate, and refine mine Submissions.

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.