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

Fetcher build failing to run with error: The directory name is invalid. #1128

Open
manojpandey89 opened this issue Aug 16, 2024 · 0 comments

Comments

@manojpandey89
Copy link

Hi Team,

We have requirement to create mtar by downloading few jars from maven repositories, so we are trying to use below fetcher option. But it is failing with error:

ERROR could not build the "my_module" module: could not execute the "mvn -B dependency:copy -Dartifact=mygroup:myart:1.0.0:war -DoutputDirectory=./target" command: fork/exec C:\x7z\apache_maven_3_9_5\bin\mvn.cmd: The directory name is invalid.

- name: my_module
build-parameters:
builder: fetcher
fetcher-opts:
repo-type: maven
repo-coordinates: mygroup:myart:1.0.0

Note: running "mvn -B dependency:copy -Dartifact=mygroup:myart:1.0.0:war -DoutputDirectory=./target" directly works fine. But on running through mbt build, it is failing.

Please let us know how it can be resolved.
Thanks,
Manoj.

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