我的 pom.xml 中有两个配置文件,dev 和 stage:
<profiles>
<profile>
<id>dev</id>
<properties>
<hostname>vl-wlp1.hk.oracle.com</hostname>
</properties>
<id>stage</id>
<properties>
<hostname>vl-wcfs.hk.oracle.com</hostname>
</properties>
</profile>
</profiles>
我想在我的站点文档中使用这些:
src/site/apt/index.apt
像这样:
Dev Site: ${dev.hostname}
Stage Site: ${stage.hostname}
我可以这样做或其他具有相同效果的东西吗?