我的git存储库结构如下:
-my-repo
-.mvn
-.travis.yml
-my-parent-project
-child-module
-pom.xml
-pom.xml
父pom包含的位置
<modules>
<module>child-module</module>
</modules>
我的.travis.yml
如下:
sudo: true
language: java
jdk: oraclejdk9
os: linux
before_install:
- chmod +x ./my-project-parent/*
- cd my-project-parent
install: true
script: ./mvnw clean install
cache:
directories:
- $HOME/.m2
运行Travis CI构建时,我得到:
[ERROR] The project io.hvest:my-project-parent:1.0-SNAPSHOT (/home/travis/build/hVest/my-repo/my-project-parent/pom.xml) has 1 error
[ERROR] Child module /home/travis/build/hVest/my-repo/my-project-parent/child-module of /home/travis/build/hVest/my-repo/my-project-parent/pom.xml does not exist
maven在本地运行平稳,我不明白为什么Travis CI运行的构建过程找不到子模块,有什么主意吗?