我有一个父pom.xml
,它从build.xml
模块加载一个汇编xml文件(build-tools
):
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<dependencies>
<dependency>
<groupId>com.company</groupId>
<artifactId>build-tools</artifactId>
<version>1.2.7-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>build</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptionRef>build</descriptionRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
此build.xml
文件使用maven属性分隔符,例如:${output.build.directory}
在使用父pom的子项目中,我想替换ng-build.xml
文件的分隔变量。
我该怎么做?
如果来自外部依赖,maven似乎不会运行分隔符替换。