2017-04-04 63 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

相關問題