-
Notifications
You must be signed in to change notification settings - Fork 39
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
Cannot use multiple sourceDirectories #52
Comments
You have to provide me a way to reproduce the issue. A public git repository for example. |
On any project with multiple sourceDirectories (src/main/java, src/main/java2) Executing hook with "initialize" phase before "on-pre-commit" goal would fix it because second directory is configured when "build-helper-maven-plugin" is executed . (It is the workaround we use on manual execution formating). However, I don't know how to work with precommit hook in order to ensure "hook" format on both source directories. |
@jvicens19 I maintain this library on my free time. If you want me to solve the issue quickly, make my life easy by providing a git repository reproducing it. |
@jvicens19 , as explained in #27 (comment), all plugin goals (including on-pre-commit goal) process all Comment this issue with a link to a git repository demonstrating the problem if you want me to take a look at it. |
Hi, I am sorry that the project that reproduces it is not sharable. I will try to reproduce it in a small project and let you see that.
It is possible to include initialize phase on the hook *.sh to solve this issue? |
@jvicens19 , when I add |
I have this config on my pom.xml:
..
src/main/groovy,src/main/java
...
However, only *.java files of src/main/groovy source directory are getting formatted
The text was updated successfully, but these errors were encountered: