The specified option ("--registry") is invalid.
danshome opened this issue · 3 comments
danshome commented
Is there some way to stop the frontend-maven-plugin from always passing --registry as a parameter? I'm using yarn and trying to run the build script, but it keeps passing in --registry as a parameter to the script, not yarn. This results in a failure to run the script because "The specified option ("--registry") is invalid."
<execution>
<id>yarn run build</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
danshome commented
The only workaround I've found is to initialize both install-node-and-npm and install-node-and-yarn, then use "npm run-script build" instead of "yarn run build".
eirslett commented
Try to disable inheritsProxyFromMaven or something like that - if you dive into the source code, you will find it. I'm sure there's a way!