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

Build fail : NotLinkException on mpg-coach-bot/target/test-classes/mpg.properties #184

Closed
mansuydejean opened this issue Apr 4, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@mansuydejean
Copy link
Collaborator

mansuydejean commented Apr 4, 2021

An exception is thrown when building if /mpg-coach-bot/target/test-classes/mpg.properties is not a symbolic link, but a real file
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:testResources (default-testResources) on project mpg-coach-bot: /home/shoe/mpg-coach-bot/target/test-classes/mpg.properties -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:testResources (default-testResources) on project mpg-coach-bot: /home/shoe/mpg-coach-bot/target/test-classes/mpg.properties
...
Caused by: org.apache.maven.plugin.MojoExecutionException: /home/shoe/mpg-coach-bot/target/test-classes/mpg.properties
...
Caused by: org.apache.maven.shared.filtering.MavenFilteringException: /home/shoe/mpg-coach-bot/target/test-classes/mpg.properties
...
Caused by: java.nio.file.NotLinkException: /home/shoe/mpg-coach-bot/target/test-classes/mpg.properties

@mansuydejean mansuydejean added the bug Something isn't working label Apr 4, 2021
@mansuydejean
Copy link
Collaborator Author

If the file mpg-coach-bot/target/test-classes/mpg.properties is not a symbolic link, then build will fail.
This info could simply be added to the README.md

@axel3rd
Copy link
Owner

axel3rd commented Apr 4, 2021

If the file mpg-coach-bot/target/test-classes/mpg.properties is not a symbolic link, then build will fail.

Not sure to understand the use case with a symbolic link relation 🤔.

What is your scenario to produce the bug ?

This snippet seems work correctly:

git clone https://github.com/axel3rd/mpg-coach-bot.git
cd mpg-coach-bot/
echo "fake" > src/test/resources/mpg.properties
mvn test-compile

@axel3rd
Copy link
Owner

axel3rd commented Apr 4, 2021

@mansuydejean : is /home/shoe/mpg-coach-bot directory and/or src/test/resources/mpg.properties file a symbolic link from somewhere ??

@mansuydejean
Copy link
Collaborator Author

/home/shoe/mpg-coach-bot is not a link but is a link src/test/resources/mpg.properties to ../../mpg.properties

@axel3rd
Copy link
Owner

axel3rd commented Apr 6, 2021

but is a link src/test/resources/mpg.properties to ../../mpg.properties

Hummm, perhaps linked to MRESOURCES-237, but released version plugin not available.

The most simple solution is perhaps NOT having a symlink here 😁 ?

@mansuydejean
Copy link
Collaborator Author

yes, perhaps... simply add a warning in README.md and we can close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants