[root@eclipse hello1]# cd /work/jakartaee-tutorial-examples/web/jsf/hello1
[root@eclipse hello1]# ls
pom.xml src target
[root@eclipse hello1]#
[root@eclipse hello1]# mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< jakarta.tutorial.web.jsf:hello1 >-------------------
[INFO] Building hello1 9.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-versions) @ hello1 ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hello1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /work/jakartaee-tutorial-examples/web/jsf/hello1/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ hello1 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /work/jakartaee-tutorial-examples/web/jsf/hello1/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hello1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /work/jakartaee-tutorial-examples/web/jsf/hello1/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ hello1 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ hello1 ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:3.3.1:war (default-war) @ hello1 ---
[INFO] Packaging webapp
[INFO] Assembling webapp [hello1] in [/work/jakartaee-tutorial-examples/web/jsf/hello1/target/hello1]
[INFO] Processing war project
[INFO] Copying webapp resources [/work/jakartaee-tutorial-examples/web/jsf/hello1/src/main/webapp]
[INFO] Building war: /work/jakartaee-tutorial-examples/web/jsf/hello1/target/hello1.war
[INFO]
[INFO] --- cargo-maven2-plugin:1.8.3:redeploy (deploy) @ hello1 ---
[INFO] [DeployerRedeployMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.8.3 for container glassfish6x
[INFO] [talledLocalContainer] Parsed GlassFish version = [6.2.3]
[INFO] [talledLocalContainer] Application deployed with name hello1.
[INFO] [talledLocalContainer] Command deploy executed successfully.
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ hello1 ---
[INFO] Installing /work/jakartaee-tutorial-examples/web/jsf/hello1/target/hello1.war to /root/.m2/repository/jakarta/tutorial/web/jsf/hello1/9.0-SNAPSHOT/hello1-9.0-SNAP
SHOT.war
[INFO] Installing /work/jakartaee-tutorial-examples/web/jsf/hello1/pom.xml to /root/.m2/repository/jakarta/tutorial/web/jsf/hello1/9.0-SNAPSHOT/hello1-9.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.487 s
[INFO] Finished at: 2022-01-05T21:07:50+08:00
[INFO] ------------------------------------------------------------------------
[root@eclipse hello1]#
访问 http://localhost:8080/hello1/