简体   繁体   English

如何使用jboss-as-maven-plugin部署模块

[英]how to deploy module with jboss-as-maven-plugin

I've encounter following description, on JBoss forum, how to manually add application specific properties as module: https://developer.jboss.org/wiki/HowToPutAnExternalFileInTheClasspath 我在JBoss论坛上遇到以下描述,如何手动将应用程序特定的属性添加为模块: https : //developer.jboss.org/wiki/HowToPutAnExternalFileInTheClasspath

I already have jboss-as-maven-plugin configured to deploy my application foo.ear . 我已经配置了jboss-as-maven-plugin来部署我的应用程序foo.ear

Here, I've found similar/same question: https://stackoverflow.com/a/18665111/1437865 , and it looks like that this is not yet possible. 在这里,我发现了类似的问题: https : //stackoverflow.com/a/18665111/1437865 ,看来这还不可能。

I am wondering if the situation has been changed from then? 我想知道从那时起情况是否有所改变?

Thank You 谢谢

Adding a module on JBoss using a CLI command requires to run something like this 使用CLI命令在JBoss上添加模块需要运行以下内容

module add --name=org.mysql --resources=mysql-connector-java-5.1.18-bin.jar --dependencies=javax.api,javax.transaction.api

Using Maven and jboss-as-maven-plugin you can directly run that command (or alternatively include it into a CLI batch script) into your POM as described here 使用Maven和jboss-AS-Maven的插件,您可以直接运行该命令(或备选地包括它变成一个CLI批处理脚本)到您的POM描述这里

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

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