无法建立Maven专案,找不到pom.xml档案 [英] Unable to build maven project, pom.xml file not found

查看:88
本文介绍了无法建立Maven专案,找不到pom.xml档案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近丢失了(即,它们在SAN故障后死亡)为内部应用程序构建VM.不幸的是,这些虚拟机从未备份过.

We recently lost (i.e they died after SAN failure) build VMs for an inhouse application. Unfortunately, these VMs were never backed up.

设置此环境的开发人员已经前进,现在我正尝试使这些VM重新运行,因为此内部应用程序需要mod.我是系统管理员而不是开发人员,事实证明这比我想的要难...

The devs that set this environment up have moved on and now I'm trying get these VMs going again as mods are required to this inhouse application. I'm a sys admin not a developer and this is proving harder than I thought...

死亡的VM是TeamCity服务器和Artifactory服务器.

The VMs that died were a TeamCity server and an Artifactory server.

我已经用TeamCity和Artifactory构建了一个新的VM(应该轻载以应对它).我让TeamCity与git repo交谈,但是当我尝试构建项目时,我得到了

I've built a new VM with both TeamCity and Artifactory (it should be lightly loaded enough to handle it). I have TeamCity talking to the git repo but when I try and build the project, I get


Non-readable POM /srv/teamcity/10.0.4/buildAgent/work/b20d5a085d491430/webview/pom.xml: /srv/teamcity/10.0.4/buildAgent/work/b20d5a085d491430/webview/pom.xml (No such file or directory)

从文件系统来看,/srv/teamcity/10.0.4/buildAgent/work/b20d5a085d491430/webview上确实没有pom.xml文件.但是,在/srv/teamcity/10.0.4/buildAgent/work/b20d5a085d491430中有一个pom.xml文件.

Looking on the file system, indeed there is no pom.xml file at /srv/teamcity/10.0.4/buildAgent/work/b20d5a085d491430/webview. There is however a pom.xml file in /srv/teamcity/10.0.4/buildAgent/work/b20d5a085d491430.

关于如何使Maven在该文件中查找一个目录的任何指针吗?

Any pointers on how to get Maven to look one directory up for this file?

谢谢

不好意思,我只是发现我没有正确定义"VCS Root",我现在就这样做了,并且尽管该项目仍未建立,但仍在进一步发展.我再戳一下,看看我怎么走.

Apologies all, I just found that I hadn't correctly defined the "VCS Root", I done that now and am getting further although the project still doesn't build. I'll poke it some more and see how I go.

推荐答案

我刚刚发现我没有正确定义"VCS根目录".

I just found that I hadn't correctly defined the "VCS Root".

这篇关于无法建立Maven专案,找不到pom.xml档案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆