Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Artifact Storage, Maven
    • Labels:
      None

      Description

      Hi Team,

      We are building RPM using 'rpm-maven-plugin' and were trying to upload the rpm file into jfrog repository.

      While uploading we are getting below error.
      [Error] [Thread 2] Artifactory response: 403 Forbidden
      {
        "errors": [
          

      {       "status": 404,       "message": "Checksum deploy failed. No existing file with SHA-1: 88541a871cd355569efed07dc9c4237452672d9b"     }

        ]
      }
      [Error] Failed uploading 1 artifacts.
      {
        "status": "failure",
        "totals":

      {     "success": 0,     "failure": 1   }

      }
      Maven RPM plugin:
      <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>rpm-maven-plugin</artifactId>
      <executions>
      <execution>
      <id>generate-rpm</id>
      <phase>install</phase>
      <goals>
      <goal>rpm</goal>
      </goals>
      </execution>
      </executions>
      <configuration>
      <needarch>noarch</needarch>
      <targetOS>linux</targetOS>
      <name>${artifact_name}</name>
      <version>${rpm_version}</version>
      <license>${name}</license>
      <group>default</group>
      <release>${rpm_release}</release>
      <keyname />
      <repackJars>false</repackJars>
      <copyTo>${directory}/${artifact_name}${version}${release}.noarch.rpm</copyTo>
      <requires>
      <require>jre8 >= 1.8</require>
      </requires>
      <repackJars>false</repackJars>
      <defineStatements>
      <defineStatement>_build_sign DSA</defineStatement>
      <defineStatement>_source_filedigest_algorithm md5</defineStatement>
      <defineStatement>_binary_filedigest_algorithm md5</defineStatement>
      <defineStatement>_source_payload w0.gzdio</defineStatement>
      <defineStatement>_binary_payload w0.gzdio</defineStatement>
      <defineStatement>__os_install_post %{nil}</defineStatement>
      </defineStatements>
      <preinstallScriptlet>
      <scriptFile>${directory}/scripts/preinstall.sh</scriptFile>
      </preinstallScriptlet>
      <postinstallScriptlet>
      <scriptFile>${directory}/scripts/postinstall.sh</scriptFile>
      </postinstallScriptlet>
      <preremoveScriptlet>
      <scriptFile>${directory}/scripts/preremove.sh</scriptFile>
      </preremoveScriptlet>
      <postremoveScriptlet>
      <scriptFile>${directory}/scripts/postremove.sh</scriptFile>
      </postremoveScriptlet>
      <defaultFilemode>644</defaultFilemode>
      <defaultDirmode>711</defaultDirmode>
      <defaultUsername>${user}</defaultUsername>
      <defaultGroupname>${groupname}</defaultGroupname>
      <mappings>
      <mapping>
      <directory>${dir_path}</directory>
      <sources>
      <source>
      <location>${basedir}/../target/service-test.jar</location>
      </source>
      </sources>
      </mapping>
      </mappings>
      </configuration>
      </plugin>
       
      CMD: jfrog rt u "(*.rpm)" service/ --recursive=false --props=rpm.metadata.version=test
       
      We have updated in maven settings.xml and deploymentRepo tag in maven for jfrog repo but still failing.
       
      We were successfully deploying the RPM in YUM repository and checksum updated in repodata as well but not working with JFROG.
       
       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ritesh Ritesh Raushan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: