Skip to main content

Hello,

I want to deploy an application to the Cloudhub. I am using SAP connector in the application and it works in the local well (I am using all the necessery libraries sapjco3.jar, sapidoc3.jar, sapjco3.dll) but when I deployed to the CloudHub its giving an error:

 

* Mule Plugin 'com.sap.conn.jco:libsapjco3' is depended upon in the project multiple times with versions ('3.0.18, 3.0.18') in the dependency graph.

 

I know Cloudhub 2.0 need to linux library sucs as libsapjco3.so I've also included my pom.xml file

 

<sharedLibraries>

<sharedLibrary>

<groupId>com.sap.conn.jco</groupId>

<artifactId>com.sap.conn.jco.sapjco3</artifactId>

</sharedLibrary>

<sharedLibrary>

<groupId>com.sap.conn.idoc</groupId>

<artifactId>com.sap.conn.idoc.sapidoc3</artifactId>

</sharedLibrary>

<sharedLibrary>

<groupId>com.sap.conn.jco</groupId>

<artifactId>libsapjco3</artifactId>

</sharedLibrary>

</sharedLibraries>

And the dependencies like:

<dependency>

<groupId>com.sap.conn.jco</groupId>

<artifactId>com.sap.conn.jco.sapjco3</artifactId>

<version>3.x.x</version>

</dependency>

<dependency>

<groupId>com.sap.conn.idoc</groupId>

<artifactId>com.sap.conn.idoc.sapidoc3</artifactId>

<version>3.x.x</version>

</dependency>

<dependency>

<groupId>com.sap.conn.jco</groupId>

<artifactId>libsapjco3</artifactId>

<version>3.0.18</version>

<type>so</type>

</dependency>

I've tried many options but no matter what I did it didn't work.

Any suggestion would be great.

1 Antwort
  1. 9. Mai 2024, 10:59

    You should not use regex-based dependency in POM>xml with .x.x, Please put the proper version and use it.

     

    Else try adding the below in SharedLibrary as well and see if it works:

    <type>so</type>

    If you are using duplicate or transitive then use exclude in pom

0/9000