2017-04-04 43 views
0

在module.xml的元素中,我想为模块添加(或更新)和槽属性。JBOSS-CLI如何更改或添加插槽到as.weld的模块依赖项?

你可以用jboss-cli来做到这一点吗?

更具体地说:

<module xmlns="urn:jboss:module:1.1" name="org.jboss.as.weld"> 
<!-- stuff ommitted --> 
    <dependencies> 
     <!-- stuff ommitted --> 

     <module name="javax.faces.api" /> <!--I want to add the attr slot="blah-blah-1.2.3" to this element --> 

     <!-- stuff ommitted --> 
    </dependencies> 
</module> 

我有一个靠不住的SED方式做到这一点。但有没有一种方式,我可以用JBOSS CLI(或其他工具)以这种方式做到这一点,我不必依靠文本搜索&替换?

回答

0

我们不能添加/更新模块插槽的模块,您可以使用以下CLI命令:

module --slot=1.1 add --name=module.name --resources=/path/to/JAR_Files/FileName.jar 
+0

我不想添加新的模块。我只想调整一个现有的module.xml文件。 – fwelland

+0

恐怕那时候,我估计没有cli命令可以通过它更新模块。 – Abhijit

相关问题