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

Caching of hardcoded paths can cause issues #7626

Closed
maxandersen opened this issue Mar 6, 2020 · 0 comments · Fixed by #7627
Closed

Caching of hardcoded paths can cause issues #7626

maxandersen opened this issue Mar 6, 2020 · 0 comments · Fixed by #7627
Labels
kind/bug Something isn't working
Milestone

Comments

@maxandersen
Copy link
Member

Describe the bug
recently something changed in caching so if you have a change in your ~/.m2 settings/location between builds the build fails with errors like:

ava.lang.RuntimeException: java.lang.RuntimeException: java.io.UncheckedIOException: Error while reading file as JAR: C:\Users\max\.m2\repository\commons-io\commons-io\2.6\commons-io-2.6.jar
Caused by: java.lang.RuntimeException: java.io.UncheckedIOException: Error while reading file as JAR: C:\Users\max\.m2\repository\commons-io\commons-io\2.6\commons-io-2.6.jar
Caused by: java.io.UncheckedIOException: Error while reading file as JAR: C:\Users\max\.m2\repository\commons-io\commons-io\2.6\commons-io-2.6.jar
Caused by: java.nio.file.NoSuchFileException: C:\Users\max\.m2\repository\commons-io\commons-io\2.6\commons-io-2.6.jar

Expected behavior
in this case its due to doing a build on windows and then afterwards on linux - both have a functioning ~/.m2 folder but since we now store absolute paths things goes wrong.

similar could happen if you cleaned your ~/.m2 repo or changed your .settings.xml or similar

@maxandersen maxandersen added the kind/bug Something isn't working label Mar 6, 2020
@gsmet gsmet changed the title caching of hardcoded paths can cause issues Caching of hardcoded paths can cause issues Mar 6, 2020
@gsmet gsmet added this to the 1.3.0.CR2 milestone Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants