提交 689aeb8f authored 作者: Thomas Mueller's avatar Thomas Mueller

Issue 344: the build now supports a custom Maven repository location.

上级 60208deb
......@@ -794,6 +794,9 @@ public class Build extends BuildBase {
protected String getLocalMavenDir() {
String userHome = System.getProperty("user.home", "");
File file = new File(userHome, ".m2/settings.xml");
if (!file.exists()) {
return super.getLocalMavenDir();
}
XMLParser p = new XMLParser(new String(BuildBase.readFile(file)));
HashMap<String, String> prop = new HashMap<String, String>();
for (String name = ""; p.hasNext();) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论