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

process-resources silently treats absolute targetPath as relative #41

Open
seanf opened this issue Nov 4, 2016 · 0 comments
Open

process-resources silently treats absolute targetPath as relative #41

seanf opened this issue Nov 4, 2016 · 0 comments

Comments

@seanf
Copy link

seanf commented Nov 4, 2016

It is true that the element targetPath inside resource or testResource is documented as being a relative path, but the standard maven-resources-plugin actually allows absolute paths here. The takari plugin seems to treat any targetPath as relative, which matches the documentation but not the behaviour of maven-resource-plugin.

So with this resource definition:

<resource>
  <targetPath>${project.build.outputDirectory}/data/</targetPath>
</resource>

if the project dir is /home/user/src/project/, the resource files will be written to /home/user/src/project/target/classes/home/user/src/project/target/data/ whereas the maven-resources-plugin would write them to /home/user/src/project/target/data.

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