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

antrun should always execute in basedir #117

Open
victornoel opened this issue Feb 15, 2021 · 0 comments
Open

antrun should always execute in basedir #117

victornoel opened this issue Feb 15, 2021 · 0 comments

Comments

@victornoel
Copy link
Contributor

victornoel commented Feb 15, 2021

I am experiencing a strange interaction between the maven-shade-plugin and the maven-antrun-plugin: when using both at the same time, then antirun seems to be executed from the target directory instead of the basedir directory.

The logs (with -X) say: fileset: Setup scanner in dir /home/victor/code/cactoos-matchers/target with patternSet{ includes: [**/*.xml, **/*.xsl, **/*.xsd] excludes: [**/target/**/*, .idea/**/*] }

While if the maven-shade-plugin is not used I get: fileset: Setup scanner in dir /home/victor/code/cactoos-matchers with patternSet{ includes: [**/*.xml, **/*.xsl, **/*.xsd] excludes: [**/target/**/*, .idea/**/*] }

I'm not sure why, but a simple fix should be to pass ${basedir} to fileset dir property.

EDIT:

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

No branches or pull requests

2 participants