commit | 5669f5e1910bdadf3e49447a2cebd4b8ea6b0d1e | [log] [tgz] |
---|---|---|
author | Udo Schnurpfeil <github@schnurpfeil.de> | Wed Aug 03 12:59:27 2022 +0200 |
committer | GitHub <noreply@github.com> | Wed Aug 03 12:59:27 2022 +0200 |
tree | c3c7564fd6ee5722746df0b6367b6b0c7f9f0123 | |
parent | 3e2d297812b79a40c53cac94bff6828e252ff2f0 [diff] | |
parent | a1b6aaefb3d28c16bb4f4fbab266dd8e2168cfd5 [diff] |
Merge pull request #3045 from lofwyr14/main-demo-update demo: update
You need Maven 3 and Java 8 or later to build Tobago.
In the project directory you can use:
mvn clean install
to run the install target on all sub projects. This will put all necessary artifacts into your local repository.
Switch to sub-directory and call Maven to run the demo:
cd tobago-example/tobago-example-demo mvn clean jetty:run -Pjetty
Browse to the local URL http://localhost:8080/
Switch to sub-directory and call Maven to run the demo:
cd tobago-example/tobago-example-demo mvn clean jetty:run -Pjetty -Djsf=mojarra-3.0
Browse to the local URL http://localhost:8080/
Switch to sub-directory and call Maven to build and Docker to run the demo:
cd tobago-example/tobago-example-demo mvn clean install -Djsf=mojarra-3.0 docker run -it --rm -p 8080:8080 -v `pwd`/target/tobago-example-demo.war:/usr/local/tomcat/webapps/tobago-example-demo.war --name tobago-example-demo tomcat:10.0-jre11
Browse to the local URL http://localhost:8080/tobago-example-demo/