How do you add JOOQ's 3.17 snaphot build to maven? - jooq

Does JOOQ push the latest non-stable builds to maven central? Or is there some snapshot repo I need to add to pom.xml?

Does JOOQ push the latest non-stable builds to maven central?
Snapshot builds are offered only to paying customers, available from here: https://www.jooq.org/download/versions
Or is there some snapshot repo I need to add to pom.xml?
The above website offers ZIP file downloads. The ZIP file contains two scripts:
maven-install.sh and maven-install.bat to install the snapshot artifacts locally, to your local repository (e.g. ~/.m2)
maven-deploy.sh and maven-deploy.bat to deploy the snapshot artifacts to your artifact repository
There are other options, e.g. using the maven-install-plugin in your build, of course, or build and install the snapshots directly from source code

Related

Artifactory clear cache for remote repository

Does enyone know how to clear cache of remote repository in Artifactory for loading artifacts (for example from maven repo) as well as in clean repository?
I tryed to find in Artifactory plugins, I found cleanup plugin but it cleans all repositories according description but I have to clean exact repo
Zap Cache is the option available with the repository itself, by design, to achieve this requirement.

Jenkin build looking for both repositories for given jar and failing when not present in it

I have a jar xbean-asm9-shaded-4.20.jar present in Nexus repository2 and I have mentioned that repository under in pom.xml. There is one more Nexus repository repository1 mentioned under for other artifacts.
While running Jenkins build it also tries to download xbean-asm9-shaded-4.20.jar from repository1 and fails even though repository2 is mentioned before repository1 in pom.xml.
How can I make it look only under repository2 for xbean-asm9-shaded-4.20.jar

How do I set up GitLab runner to pull from a private NuGet repo on build of my project?

How do I set up GitLab runner to pull from a private NuGet repo on build of my project? For example I have a project using a package from Telerik. When I created the yaml file and tell the CI to build it fails with error unable to find package Telerik.UI.for.Blazor. No packages exist with this id in source(s): nuget.org. I also have a private repo on one of our company servers that I would need to pull packages from.
I have found a solution to this, not sure it is the best solution. I added a NuGet.config file with the package source and credentials as suggested in these links.
https://docs.telerik.com/aspnet-core/getting-started/first-steps-cli
https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file#example-config-file
The project now pulls the dll from Telerik and builds. Only problem is my Telerik creds are now in GitLab.

Publish Gitlab artifacts to Artifactory

I want to publish my Gitlab project's(not a maven project) artifact to JFrog Artifactory. The artifact size is 4.2 GB.
I searched for this but mostly got links to publish Gitlab Maven project to Artifactory. My project is not a maven project.
I have a requirement to keep all source code in Gitlab and artifacts(.war, .tar.gz) in Artifactory.
How do I achieve this?
It sounds like you're looking for Git LFS. This is an extention to Git that allows your Gitlab repository to track artifacts without actually storing them in the repository, instead using some external filestore or artifact management server.
Artifactory supports Git LFS repositories, and you can find the documentation for setting it up here.

How can I deploy spark artifacts to a custom maven repository?

I have a fork of apache spark on github that I build from.
I have a maven repository that our company uses to manage dependencies.
Suppose the url of this maven repository is https://xyz.abc.com/maven.
If I run a command like
./build/mvn -Pyarn -Phadoop-2.6 -Dhadoop.version=2.6.5 -DskipTests install
Then all the jars get deployed to my local maven repository, but what I would really like is for them to be deployed to the repository mentioned above.
How can I do that? Do I need to modify certain files or set environment variables? Do I need to add a credential file somewhere?
I also looked into doing it with sbt, but I could not figure out how to do it with that either.
You want to publish artifact build by maven to remote repository (https://xyz.abc.com/maven).
Take a look at this guide for required configuration.

Resources