frontend-maven-plugin icon indicating copy to clipboard operation
frontend-maven-plugin copied to clipboard

The specified option ("--registry") is invalid.

Open danshome opened this issue 1 year ago • 3 comments

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 avatar Sep 13 '23 21:09 danshome

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".

danshome avatar Sep 13 '23 21:09 danshome

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!

eirslett avatar Sep 14 '23 13:09 eirslett

https://github.com/eirslett/frontend-maven-plugin/pull/1120 should fix this issue as well I think.

123Haynes avatar Nov 04 '23 18:11 123Haynes