HubSpot / prettier-maven-plugin

Apache License 2.0
116 stars 23 forks source link

posix:permissions error during run #8

Closed mnisius closed 4 years ago

mnisius commented 4 years ago

Hi, I was looking forward to try your plugin but i ran direclty in the following error:

Failed to execute goal com.hubspot.maven.plugins:prettier-maven-plugin:0.6:write (default) on project my-test-project: Execution default of goal com.hubspot.maven.plugins:prettier-maven-plugin:0.6:write failed: 'posix:permissions' not supported as initial attribute

jhaber commented 4 years ago

Sorry about that, I assume you're running on Windows?

I just pushed 0691ddb82fcb8e68fe8e9a00860bb5689ac21ba8 which should hopefully fix this, I'll cut a new release shortly with that change

jhaber commented 4 years ago

Version 0.7 has been released and should show up in Maven Central shortly. Can you give that a try and let me know if it fixes the issue? And if you still get an error, can you re-run Maven with -e and put the full stack trace in a gist

mnisius commented 4 years ago

Yes the new version works. Thank you!

mnisius commented 4 years ago

Quick question how can I customize the prettier rules like line length ?

jhaber commented 4 years ago

The Maven plugin accepts configuration options which we forward along to prettier. I've updated the usage example in the readme to set some configuration and also added a configuration section that documents all the options: https://github.com/HubSpot/prettier-maven-plugin/blob/master/README.md

Thanks for opening this issue and let me know if you run into any other problems!