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

Invalid cross-device link when using uber-task #362

Closed
bonega opened this issue Dec 17, 2015 · 5 comments
Closed

Invalid cross-device link when using uber-task #362

bonega opened this issue Dec 17, 2015 · 5 comments
Labels

Comments

@bonega
Copy link

bonega commented Dec 17, 2015

I have confirmed that it works on 2.4.2 but not on 2.5.0.

System root is on a different device.
~/.boot, ~/.m2 and ~/git/projectdir are all one the same device.

Howto reproduce.

Simplified boot.build
boot uber

It will work if export BOOT_VERSION=2.4.2 is executed before boot cmd.

traceback

/tmp is referenced in the traceback, shouldn't it be something like ~/.boot/cache/tmp/...?

@micha
Copy link
Contributor

micha commented Dec 17, 2015

@bonega i think i see the problem, and can make a fix for it in 2.5.1. Thanks for the detailed info!

@micha micha added the Bug label Dec 17, 2015
@micha micha closed this as completed in 9caa4d2 Dec 17, 2015
@micha
Copy link
Contributor

micha commented Dec 17, 2015

@bonega if you could test this to confirm the fix that would be awesome

@bonega
Copy link
Author

bonega commented Dec 17, 2015

@micha thanks for the speedy response.

Confirmed to be working.
One thing is strange though, but probably unrelated.

The uberjar in target/ isn't named myproject-x.x.x.jar anymore.
2.4.2 produces target/myproject-0.1.0.jar
2.5.1-SNAPSHOT produces target/project.jar

@micha
Copy link
Contributor

micha commented Dec 17, 2015

This change results from issues that arose around default uberjar exclusions and the logic that was previously in place to determine the "friendly name" of the jar file (see #278). In your case there is now more than one pom.xml file in your jar, so it doesn't know which one to use to get the project name and version from. You could use sift task to filter those out, or use the --file option of the jar task to set the name manually.

@bonega
Copy link
Author

bonega commented Dec 17, 2015

Thanks, you have been most helpful.

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

No branches or pull requests

2 participants