No versions could be resolved for groupid.artifactid

I’m having an error while listing the Mavaen Repository Artifacts in my Jenkins server configuration. Error is given below.

No versions could be resolved for groupid.artifactid rtis.rtis_2.11

Error Message
But my Nexus server contains the available rtis versions correctly. My point is how I can retrieve those versions available in Nexus server to my Jenkins server?

  • Determine Failed Stage in Jenkins Declaritive Pipeline
  • Per branch user axis
  • Groovy Postbuild in Jenkins, parsing the log for strings and counting them
  • Getting 502 bad request after deploying Play 2.1.0 app to Cloudbees
  • Running test in parallel with surefire and displaying them properly with the TestNG Jenkins plugin
  • How to checkout ssh remote in github organization Jenkins workflow and use ssh credentials in Jenkinsfile
  • Available versions in Nexus server
    Versions available in Nexus server

    Any help would be greatly appreciated.

    Thank You.

  • How to create HTML report for zap(Owasp) using Python API script which integrates with Jenkins
  • Error on git pull error : cannot open .git/FETCH_HEAD: Permission denied
  • Is it possible to compile bitbucket dependency via SSH (Gradle)?
  • Can I use a GitHub project directly in Maven?
  • How to execute package for one submodule only on Jenkins?
  • Is there a way with Git to make future merges ignore version number difference in a pom file between branches?
  • 3 Solutions collect form web for “No versions could be resolved for groupid.artifactid”

    As I figured out, automatically upadating mavan-metadata.xml file is the solution. In order to update the file, create a task sheduler for rebuild metadata with a cron job.
    Go to Administration -> Scheduled Tasks in Nexus Repo. For more info, please refer to the image given below.
    Cron job

    Jenkins is not finding nexus repository to resolve the artifact.

    Verify these settings are correct in Maven POM:

      <repositories>
        <repository>
          <id>project</id>
          <url>https://yourreposerver/nexus/content/groups/public/</url>
        </repository>
      </repositories>
    
      <pluginRepositories>
        <pluginRepository>
          <id>project</id>
          <url>https://yourreposerver/nexus/content/groups/public/</url>
        </pluginRepository>
      </pluginRepositories>
    

    Also, Jenkins plugin help page, will give you more information on what kind of settings you might be missing while setting up your job.

    You have to specify the type in the dependency to be downloaded. By default in Maven it is ‘jar’. However in your case it it ‘tgz’ so you have to specify that provided that is possible in the Jenkins user interface. I can not see that option but it should be there.

    The other potential problem is that is was flagged as not found in the local repository Jenkins is using. Then you would have to either delete the metadata or force an update of it. On the Maven commandline this would be done with -U however in your UI I am not sure.

    Git Baby is a git and github fan, let's start git clone.