Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danshome opened this issue Sep 13, 2023 · 3 comments · May be fixed by #1120
Open

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

danshome opened this issue Sep 13, 2023 · 3 comments · May be fixed by #1120

Comments

@danshome
Copy link

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
Copy link
Author

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
Copy link
Owner

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!

@123Haynes
Copy link

#1120 should fix this issue as well I think.

@123Haynes 123Haynes linked a pull request Nov 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants