commit | a1b6aaefb3d28c16bb4f4fbab266dd8e2168cfd5 | [log] [tgz] |
---|---|---|
author | Udo Schnurpfeil <udo.schnurpfeil@irian.eu> | Wed Aug 03 12:44:56 2022 +0200 |
committer | Udo Schnurpfeil <udo.schnurpfeil@irian.eu> | Wed Aug 03 12:45:54 2022 +0200 |
tree | c3c7564fd6ee5722746df0b6367b6b0c7f9f0123 | |
parent | 3e2d297812b79a40c53cac94bff6828e252ff2f0 [diff] |
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/