我正在尝试在 Windows 上使用 Ant 构建 Maven。
在签出 maven 的文件夹中运行 ant 时,我得到:
build.xml:105: localRepository doesn't support the "path" attribute
带有 localRepository 的第 106 行是:<localRepository path="${maven.repo.local}" />
Ant 输出:构建文件:H:\maven-3.0-SNAPSHOT\build.xml
clean-bootstrap:
initTaskDefs:
[echo] Building Apache Maven ...
isMavenHomeSet:
init:
[echo] maven.home = C:\maven-3.0-SNAPSHOT
[echo] maven.repo.local = C:\Users\XXX/.m2/repository
[echo] distributionId = apache-maven
[echo] distributionName = Apache Maven
[echo] distributionDirectory = apache-maven
prompt-maven-home-exists:
pull:
BUILD FAILED
H:\maven-3.0-SNAPSHOT\build.xml:105: localRepository doesn't support the "path"
attribute
将斜杠更改为反斜杠maven.repo.local
也无济于事。