【发布时间】:2017-06-07 11:59:28
【问题描述】:
我正在使用 JBoss EAP 7.0.5,我想在我的standalone-ha.xml 中使用内部配置值,例如:
<property name="javax.net.ssl.trustStore" value="${jboss.server.config.dir}/stores/trustCA.jks"/>
我使用疯狂的 maven 插件 1.2.0 Alpha 5 和 CLI 命令添加了这个值:
/system-property=javax.net.ssl.trustStore:add(value="${jboss.server.config.dir}/stores/trustCA.jks")
遗憾的是它没有按预期进行:
<property name="javax.net.ssl.trustStore" value="/stores/trustCA.jks"/>
jboss-cli.xml 如下所示:
<?xml version='1.0' encoding='UTF-8'?>
<!--
WildFly Command-line Interface configuration.
-->
<jboss-cli xmlns="urn:jboss:cli:2.0">
<default-protocol use-legacy-override="true">http-remoting</default-protocol>
<!-- The default controller to connect to when 'connect' command is executed w/o arguments -->
<default-controller>
<protocol>http-remoting</protocol>
<host>localhost</host>
<port>9990</port>
</default-controller>
<!-- Example controller alias named 'Test'
<controllers>
<controller name="Test">
<protocol>http-remoting</protocol>
<host>localhost</host>
<port>9990</port>
</controller>
</controllers>
-->
<validate-operation-requests>true</validate-operation-requests>
<!-- Command and operation history log configuration -->
<history>
<enabled>true</enabled>
<file-name>.jboss-cli-history</file-name>
<file-dir>${user.home}</file-dir>
<max-size>500</max-size>
</history>
<!-- whether to resolve system properties specified as command argument or operation parameter values
in the CLI VM before sending the operation requests to the controller -->
<resolve-parameter-values>false</resolve-parameter-values>
<!-- Whether to write info and error messages to the terminal output -->
<silent>false</silent>
<!-- Whether to filter out commands and attributes based on user's permissions -->
<access-control>false</access-control>
</jboss-cli>
我也尝试过使用这样的变量,但它仍然得到解决:
${jboss.server.config.dir:}
我只是用错了还是可能是 CLI 或 maven 插件错误?
【问题讨论】: