How to set _auth for a scoped registry in .npmrc?

So, after some digging through the NPM source code, it turns out there is a way to do this. My solution is below: registry=https://registry.npmjs.org/ @test-scope:registry=http://nexus:8081/nexus/content/repositories/npm-test/ //nexus:8081/nexus/content/repositories/npm-test/:username=admin //nexus:8081/nexus/content/repositories/npm-test/:_password=YWRtaW4xMjM= email=… Explanation: The scope @test-scope specifies that packages with the scope should be published to a different registry than the default registry= when executing the npm publish command. … Read more

How should I set _auth in .npmrc when using a Nexus https npm registry proxy?

Sources: https://help.sonatype.com/repomanager3/nexus-repository-administration/formats/npm-registry/npm-security & https://help.sonatype.com/repomanager3/nexus-repository-administration/formats/npm-registry/publishing-npm-packages Configure registry (its important doing this before configuring the authentication in step 2, because the authentication settings will be based on the registry): npm config set registry=”http://localhost:8081/repository/npm-internal/” Configure authentication using a line like the following example: npm config set _auth=”$(echo -n ‘username:password’ | base64)” Check the current configuration using the following: … Read more

Maven release plugin fails : source artifacts getting deployed twice

Try running mvn -Prelease-profile help:effective-pom. You will find that you have two execution sections for maven-source-plugin The output will look something like this: <plugin> <artifactId>maven-source-plugin</artifactId> <version>2.0.4</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> <execution> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> To fix this problem, find everywhere you have used maven-source-plugin and make sure that you … Read more

how do I get sbt to use a local maven proxy repository (Nexus)?

Step 1: Follow the instructions at Detailed Topics: Proxy Repositories, which I have summarised and added to below: (If you are using Artifactory, you can skip this step.) Create an entirely separate Maven proxy repository (or group) on your corporate Maven repository, to proxy ivy-style repositories such as these two important ones: http://repo.typesafe.com/typesafe/ivy-releases/ http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/ This … Read more

How to store releases/binaries in GitLab?

Update Oct. 2020: GitLab 13.5 now offers: Attach binary assets to Releases If you aren’t currently using GitLab for your releases because you can’t attach binaries to releases, your workflow just got a lot simpler. You now have the ability to attach binaries to a release tag from the gitlab.ci-yml. This extends support of Release … Read more

How to manually deploy artifacts in Nexus Repository Manager OSS 3

I’m using maven deploy file. mvn deploy:deploy-file -DgroupId=my.group.id \ -DartifactId=my-artifact-id \ -Dversion=1.0.0.1 \ -Dpackaging=jar \ -Dfile=foo.jar \ -DgeneratePom=true \ -DrepositoryId=my-repo \ -Durl=http://my-nexus-server.com:8081/repository/maven-releases/ UPDATE: As stated in comments using quotes in url cause NoSuchElementException But I have add server config in my maven (~/.m2/settings.xml). <servers> <server> <id>my-repo</id> <username>admin</username> <password>admin123</password> </server> </servers> References: Maven Apache – Guide … Read more