我正在尝试编译没有构建说明的open source project on Github。我知道它是使用Maven构建的,但是需要在settings.xml中设置一些变量,并且我无法在Maven documentation中找到有关自定义变量的任何信息(“服务器”,“代理”等之外) 。我发现this answer会有所帮助,但仍然无法解决。
例如,在哪里设置顶级${global.awe.version}
文件中使用的值pom.xml
,似乎在两行之后定义它:
<global.awe.version>3.6.0-rc-05</global.awe.version>
?
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
...
<version>${global.awe.version}</version>
<properties>
<global.awe.version>3.6.0-rc-05</global.awe.version>
<global.awe-api.version>2.2.0-rc-05</global.awe-api.version>
</properties>
...