Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible中の /mvn package でエラーとなる #91

Open
takky0330 opened this issue Jul 22, 2019 · 0 comments
Open

Ansible中の /mvn package でエラーとなる #91

takky0330 opened this issue Jul 22, 2019 · 0 comments

Comments

@takky0330
Copy link

takky0330 commented Jul 22, 2019

Ansible 中の /opt/apache-maven-3.3.9/bin/mvn package -Dmaven.test.skip=true 実行中に、
pom.xml が見つからなく、以下のようなエラーとなる。

TASK [build module] *****************************************************************************************************************************************
fatal: [10.0.14.4]: FAILED! => {"changed": true, "cmd": ["/opt/apache-maven-3.3.9/bin/mvn", "package", "-Dmaven.test.skip=true"], "delta": "0:00:12.180705", "end": "2019-07-22 05:00:00.287837", "msg": "non-zero return code", "rc": 1, "start": "2019-07-22 04:59:48.107132", "stderr": "", "stderr_lines": [], "stdout": "[INFO] Scanning for projects...\n

※ 以下のファイルのコマンドに、-f オプションで指定すると回避はできる。
vi ./tasks/bastion/mvn_package.yml
command: /opt/apache-maven-3.3.9/bin/mvn package -Dmaven.test.skip=true

command: /opt/apache-maven-3.3.9/bin/mvn package -Dmaven.test.skip=true -f /tmp/personium-{{ build_mod }}/pom.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant