Travis CI fails with Child module … does not exist

江枫思渺然 提交于 2019-12-24 11:23:20

问题


My git repository structure is as following:

-my-repo
  -.mvn
  -.travis.yml
  -my-parent-project
  -child-module
    -pom.xml
  -pom.xml

Where the parent pom includes

<modules>
    <module>child-module</module>
</modules>

And my .travis.yml looks like:

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

When Travis CI build runs I'm getting:

[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

Locally maven runs smoothly, I don't understand why the build process running by Travis CI can't find the child-module, any ideas?

来源:https://stackoverflow.com/questions/53538433/travis-ci-fails-with-child-module-does-not-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!