Forum Discussion

harinadha's avatar
harinadha
Occasional Contributor
8 years ago

SOAP UI and Maven integration - Failed to read artifact descriptor for gnu.cajo:cajo:jar:1.142

Hi All,

 

As per the suggestions available at - https://www.soapui.org/test-automation/maven/maven-2-x.html

have settings.xml and POM.xml in place.

 

When i execute the pom from cmd prompt(/Jenkins), experiencing the below issue : gnu.cajo:cajo:jar:1.142: Failed to read artifact descriptor for gnu.cajo:cajo:jar:1.142: Could not transfer artifact gnu.cajo:cajo:pom:1.142 from/to artifactory ...

 

any thoughts around this?

 

<Error log start>

 

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.588 s
[INFO] Finished at: 2016-08-24T12:09:10-04:00
[INFO] Final Memory: 17M/224M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.smartbear.soapui:soapui-pro-maven-plugin:5.1.2:test (default) on project soapui-maven2-plugin: Execution default of goal com.smartbear.soapui:soapui-pro-maven-plugin:5.1.2:test failed: Plugin com.smartbear.soapui:soapui-pro-maven-plugin:5.1.2 or one of its dependencies could not be resolved: Failed to collect dependencies at com.smartbear.soapui:soapui-pro-maven-plugin:jar:5.1.2 -> com.smartbear.soapui:soapui:jar:5.1.2 -> gnu.cajo:cajo:jar:1.142: Failed to read artifact descriptor for gnu.cajo:cajo:jar:1.142: Could not transfer artifact gnu.cajo:cajo:pom:1.142 from/to artifactory (http://repo1.Company.com/artifactory/repo): Failed to transfer file: http://repo1.Company.com/artifactory/repo/gnu/cajo/cajo/1.142/cajo-1.142.pom. Return code is: 409, ReasonPhrase: Conflict. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException [JENKINS] Archiving C:\APIDeploy\pom.xml to com.smartbear.samples/soapui-maven2-plugin/4.6.4-m-SNAPSHOT/soapui-maven2-plugin-4.6.4-m-SNAPSHOT.pom
channel stopped
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc."
Finished: FAILURE

 

<Error log start>

3 Replies

  • kondasamy's avatar
    kondasamy
    Regular Contributor

    Could you please share which Maven command you are using to run the test cases.

     

    From the log, we can see that you are trying to hit SoapUI Pro dependencies -

    com.smartbear.soapui:soapui-pro-maven-plugin:5.1.2:test

    In case if it is PRO specific, you can post it in SoapUI NG forum or contact the Smartbear support team.

     

    Thanks,

    Kondasamy

    • harinadha's avatar
      harinadha
      Occasional Contributor

      Thank you for the response.

       

      fixed the issue, pls find the below solution.

       

      <Maven settings file Start >

       

      <?xml version="1.0" encoding="UTF-8"?>
      <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
          <localRepository>......\.m2\repository</localRepository>
          <offline>false</offline>
          <pluginGroups>
              <pluginGroup>org.sonatype.plugins</pluginGroup>
              <pluginGroup>org.jvnet.hudson.tools</pluginGroup>
              <pluginGroup>org.apache.maven.plugins</pluginGroup>
              <pluginGroup>org.apache.maven.plugin</pluginGroup>
              <pluginGroup>org.codehaus.mojo</pluginGroup>
          </pluginGroups>

        <!--<mirrors>
            <mirror>
                <id>artifactory</id>
                <name>Artifactory</name>
                <url>https://svn.Company.com</url>
                <mirrorOf>*</mirrorOf>
            </mirror>
        </mirrors>-->
         <servers>
            <server>
                <id>http://repo1.uhc.com/artifactory/repo</id>
                <username>user</username>
                <password>enptpwd</password>
            </server>
        </servers>
          <profiles>
              <profile>
                  <pluginRepositories>
                      <pluginRepository>
                          <id>SmartBearPluginRepository</id>
                          <url>http://www.soapui.org/repository/maven2/</url>
                      </pluginRepository>
                  </pluginRepositories>
              </profile>
          </profiles>
      </settings>

       

      <Maven  settings file End>

       

      and there is no change in the pom.xml

      • kondasamy's avatar
        kondasamy
        Regular Contributor

        Glad that your problem is solved!

         

        Thanks,

        Kondasamy