Comments (4)
Many that have an air gapped environment has the possibility to specify proxies with Nexus/Artifactory for https://nodejs.org/dist
and NPM registry, including us. Could you provide these as config variables?
Name | -D property name | Default value | Description |
---|---|---|---|
nodeRegistry | prettier.nodeRegistry | https://nodejs.org/dist/ | Where to fetch node binary |
npmRegistry | prettier.npmRegistry | https://registry.npmjs.org/ | Registry used to fetch prettier-plugin-java |
from prettier-maven-plugin.
Should this config not skip the download of node?
@leonardehrenfried i believe you need to specify both nodePath
and npmPath
to skip the downloading. see:
from prettier-maven-plugin.
As of #64 the plugin will download node rather than bundling it. If you want to avoid this download, you can supply a node executable yourself and pass the path to the plugin via the <nodePath>
configuration parameter (if you want to just use the version of node on your $PATH
you can set <nodePath>node</nodePath>
from prettier-maven-plugin.
I just had this happen to me even though I set a custom node binary:
[INFO]
[INFO] --- prettier-maven-plugin:0.19:check (default) @ otp ---
[INFO] Using customized nodePath: node
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:57 min
[INFO] Finished at: 2023-03-24T11:39:10Z
[INFO] ------------------------------------------------------------------------
Error: Failed to execute goal com.hubspot.maven.plugins:prettier-maven-plugin:0.19:check (default) on project otp: Error downloading node: timeout -> [Help 1]
Error:
Error: To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: Re-run Maven using the -X switch to enable full debug logging.
Error:
Error: For more information about the errors and possible solutions, please read the following articles:
Error: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error: Process completed with exit code 1.
Should this config not skip the download of node?
from prettier-maven-plugin.
Related Issues (20)
- Fail Maven goal when Prettier commands exit with nonzero code
- Error downloading node: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException HOT 4
- Format files in /src/integration-test/java HOT 1
- Update prettier-java to support java 15 HOT 3
- Upgrade prettierJavaVersion default to 1.0.2 HOT 4
- Goal failed when attempting to lint .js files HOT 13
- Outputs violating files when running `check`
- Code formatting issues found, please run prettier-java HOT 3
- Cannot get plugin goals to execute in linked phase HOT 3
- Add prettier-java 1.5.0 support HOT 2
- Support zipped Node executables HOT 2
- Add prettier-java 1.6.0 support HOT 3
- Running on ARM HOT 4
- record keyword breaks build HOT 4
- Illegal char <:> at index 4: node:internal/modules/cjs/loader:936 HOT 11
- Version 18 does not reformat code but version 16 does HOT 20
- Plugin hangs forever (0.18, javaPrettierVersion 0.8.3 and above) HOT 7
- Update documentation to have latest prettierJavaVersion present in mvn repository
- Cannot find Module 'bin-prettier.js' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-maven-plugin.