简体   繁体   English

JBoss EAP 6.4-Maven部署战争不在部署中

[英]JBoss EAP 6.4 - Maven Deploy war not in Deployments

Have JBOSS EAP 6.4 setup on my local Unix (macOS) environment... 在我的本地Unix(macOS)环境中设置JBOSS EAP 6.4 ...

Checked out the following helloworld project from Github: 从Github签出了以下helloworld项目:

https://github.com/jboss-developer/jboss-eap-quickstarts/tree/7.1.x-develop/helloworld-rs https://github.com/jboss-developer/jboss-eap-quickstarts/tree/7.1.x-develop/helloworld-rs

Was able to build and deploy the war file into JBoss by issuing the following command: 通过发出以下命令,可以将war文件构建并部署到JBoss中:

mvn clean wildfly:deploy -Dwildfly.port=9999

Was able to hit the REST endpoint by putting this in my browser: 可以通过将其放入我的浏览器来访问REST端点:

http://localhost:8080/jboss-helloworld-rs/rest/json

Response was: 回应是:

{"result":"Hello World!"}

However, inside $EAP_HOME/standalone/deployments (and also $JBOSS_HOME/standalone/deployments), the directory is empty... 但是,在$ EAP_HOME / standalone / deployments(以及$ JBOSS_HOME / standalone / deployments)中,目录为空...

Question(s): 问题:

  1. Why can I not see the war file (whether packed or unpacked) inside the deployments dir? 为什么在部署目录中看不到war文件(打包或解包)?

  2. Is there a way to change a setting somewhere so the war file can be seen? 有什么方法可以在某处更改设置,以便可以看到war文件吗?

  3. Is there a way to change this pom.xml file so I can just use: 有没有办法更改此pom.xml文件,所以我可以使用:

    mvn jboss-as:deploy mvn jboss-as:deploy

  4. Is JBOSS EAP 6's codename wildfly? JBOSS EAP 6的代号是否为wildfly?

Thanks for taking the time to read this. 感谢您抽时间阅读。

The standalone/deployments directory is only used for deployment scanner. standalone/deployments目录仅用于部署扫描程序。 It's not advised to use this in production. 不建议在生产中使用它。 When you use the maven plugin it uses the deployment operations which deploys the archive to the running container. 当您使用maven插件时,它将使用部署操作,该操作会将存档部署到正在运行的容器中。

If you're targeting JBoss EAP 6 you'll want to use the 6.4 branch of the quickstart repo, https://github.com/jboss-developer/jboss-eap-quickstarts/tree/6.4.x/helloworld-rs , which will use the org.jboss.as.plugin:jboss-as plugin instead. 如果您以JBoss EAP 6为目标,则需要使用快速入门仓库的6.4分支,即https://github.com/jboss-developer/jboss-eap-quickstarts/tree/6.4.x/helloworld-rs ,它将改用org.jboss.as.plugin:jboss-as插件。

JBoss EAP 6 is based on JBoss AS 7. JBoss AS was renamed to WildFly. JBoss EAP 6基于JBoss AS7。JBossAS被重命名为WildFly。 JBoss EAP 7, which is the latest JBoss EAP release, is based on WildFly 10. JBoss EAP 7是最新的JBoss EAP版本,基于WildFly 10。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM