使用Maven编译、打包和安装第一个Jakarta EE 9.1应用

[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/


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值