Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32458

Job that deploy artifacts publish invalid maven metadata

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • Jenkins ver. 1.625.3
      Maven Repository Server Plugin 1.2,1.3

      build has archived the following artifacts:

      13:29:31 Waiting for Jenkins to finish collecting data
      13:29:31 [JENKINS] Archiving /home/acme/workspace/common_core-Fast-DSL/common_core/pom.xml to com.acme/common_core/0.0.1-SNAPSHOT/common_core-0.0.1-SNAPSHOT.pom
      13:29:31 [JENKINS] Archiving /home/acme/workspace/common_core-Fast-DSL/common_core/target/common_core-0.0.1-SNAPSHOT.jar to com.acme/common_core/0.0.1-20160113.133139-2884/common_core-0.0.1-20160113.133139-2884.jar
      13:29:31 [JENKINS] Archiving /home/acme/workspace/common_core-Fast-DSL/common_core/target/common_core-0.0.1-SNAPSHOT-tests.jar to com.acme/common_core/0.0.1-20160113.133139-2884/common_core-0.0.1-20160113.133139-2884-tests.jar

      maven-metadata.xml looks like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <metadata modelVersion="1.1.0">
        <groupId>com.acme</groupId>
        <artifactId>common_core</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <versioning>
          <snapshotVersions>
            <snapshotVersion>
              <extension>pom</extension>
              <value>0.0.1-20160113.132037-12</value>
              <updated>20160113131843</updated>
            </snapshotVersion>
          </snapshotVersions>
        </versioning>
      </metadata>
      

      but the repository only has entries for:

      Thu Jan 14 17:30:47 UTC 2016	DIR	0.0.1-SNAPSHOT	
      Thu Jan 14 17:30:47 UTC 2016	DIR	0.0.1-20160113.133139-2884	

      this results in:

      mvn dependency:get -DrepoUrl=https://jenkins.acme-internal.com/plugin/repository/project/avalon_Fast_DSL/Build/51/repositoryChain/ -Dartifact=com.acme:common_core:0.0.1-SNAPSHOT -DrepoId=jenkins 
      Picked up _JAVA_OPTIONS: -Xms512m -Xmx1536m -XX:PermSize=512m
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-dependency-plugin:2.8:get (default-cli) @ standalone-pom ---
      [WARNING] repositoryUrl parameter is deprecated. Use remoteRepositories instead
      [INFO] Resolving com.acme:common_core:jar:0.0.1-SNAPSHOT with transitive dependencies
      Downloading: https://jenkins.acme-internal.com/plugin/repository/project/avalon_Fast_DSL/Build/51/repositoryChain/com/acme/common_core/0.0.1-SNAPSHOT/maven-metadata.xml
      Downloaded: https://jenkins.acme-internal.com/plugin/repository/project/avalon_Fast_DSL/Build/51/repositoryChain/com/acme/common_core/0.0.1-SNAPSHOT/maven-metadata.xml (442 B at 0.2 KB/sec)
      Downloading: https://jenkins.acme-internal.com/plugin/repository/project/avalon_Fast_DSL/Build/51/repositoryChain/com/acme/common_core/0.0.1-SNAPSHOT/common_core-0.0.1-20160113.132037-12.pom
      Downloaded: https://jenkins.acme-internal.com/plugin/repository/project/avalon_Fast_DSL/Build/51/repositoryChain/com/acme/common_core/0.0.1-SNAPSHOT/common_core-0.0.1-20160113.132037-12.pom (16 KB at 8.4 KB/sec)
      Downloading: https://jenkins.acme-internal.com/plugin/repository/project/avalon_Fast_DSL/Build/51/repositoryChain/com/acme/common_core/0.0.1-SNAPSHOT/common_core-0.0.1-SNAPSHOT.jar
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 7.572 s
      [INFO] Finished at: 2016-01-14T18:27:28+01:00
      [INFO] Final Memory: 17M/491M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:get (default-cli) on project standalone-pom: Couldn't download artifact: Missing:
      [ERROR] ----------
      [ERROR] 1) com.acme:common_core:jar:0.0.1-SNAPSHOT
      [ERROR] 
      [ERROR] Try downloading the file manually from the project website.
      [ERROR] 
      [ERROR] Then, install it using the command:
      [ERROR] mvn install:install-file -DgroupId=com.acme -DartifactId=common_core -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
      [ERROR] 
      [ERROR] Alternatively, if you host your own repository you can deploy the file there:
      [ERROR] mvn deploy:deploy-file -DgroupId=com.acme -DartifactId=common_core -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      [ERROR] 
      [ERROR] Path to dependency:
      [ERROR] 1) org.apache.maven.plugins:maven-downloader-plugin:jar:1.0
      [ERROR] 2) com.acme:common_core:jar:0.0.1-SNAPSHOT
      [ERROR] 
      [ERROR] ----------
      [ERROR] 1 required artifact is missing.
      [ERROR] 
      [ERROR] for artifact:
      [ERROR] org.apache.maven.plugins:maven-downloader-plugin:jar:1.0
      [ERROR] 
      [ERROR] from the specified remote repositories:
      [ERROR] internal-repo (https://mvnrepo.acme-it.com/content/groups/public/, releases=true, snapshots=false),
      [ERROR] jenkins (https://jenkins.acme-internal.com/plugin/repository/project/avalon_Fast_DSL/Build/51/repositoryChain/, releases=true, snapshots=true)

      Same happens for repository and repositoryChain

            magnayn magnayn
            jbochenski Jakub Bochenski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: