更改 gitlab 的根目录 CI
Change root directory for gitlab CI
我想在我的存储库上实施 Gitlab CI。我已经在 Windows 上设置了 运行ner 并配置了 .yml
以使用 Maven 项目。问题是我在存储库的根目录中有文件夹 Domain
和 Front-end
。有没有办法更改根目录以便 .yml
能够找到域文件夹中的 pom.XML
文件?
当我 运行 它时,它说找不到 pom 文件。
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/builds/motomine/web). Please verify you invoked Maven from the correct directory.
所以我认为更改根文件夹可能会解决问题。
您不一定需要更改目录。您可以将 maven 指向包含 pom 的目录。在您的 .yml
文件中:
...
- mvn -f Domain
来自 maven 文档:
-f,--file : Force the use of an alternate POM file (or directory with pom.xml)
我想在我的存储库上实施 Gitlab CI。我已经在 Windows 上设置了 运行ner 并配置了 .yml
以使用 Maven 项目。问题是我在存储库的根目录中有文件夹 Domain
和 Front-end
。有没有办法更改根目录以便 .yml
能够找到域文件夹中的 pom.XML
文件?
当我 运行 它时,它说找不到 pom 文件。
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/builds/motomine/web). Please verify you invoked Maven from the correct directory.
所以我认为更改根文件夹可能会解决问题。
您不一定需要更改目录。您可以将 maven 指向包含 pom 的目录。在您的 .yml
文件中:
...
- mvn -f Domain
来自 maven 文档:
-f,--file : Force the use of an alternate POM file (or directory with pom.xml)