Giter Site home page Giter Site logo

Comments (4)

mikaello avatar mikaello commented on August 20, 2024 6

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.

jaredstehler avatar jaredstehler commented on August 20, 2024 1

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:

if (maybeNode.isPresent() && maybeNpm.isPresent()) {
return new NodeInstall(maybeNode.get(), Arrays.asList(maybeNpm.get()));
} else {
NodeInstall nodeInstall = downloadNode();

from prettier-maven-plugin.

jhaber avatar jhaber commented on August 20, 2024

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.

leonardehrenfried avatar leonardehrenfried commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.