cancel
Showing results for 
Search instead for 
Did you mean: 

Maven Based Project

Former Member
0 Kudos

Hi folks,

We use Maven as our build tools which requires libraries (including JCo sapjco3.jar) to follow Maven’s file-name conventions. But when we renamed the JCo library to Maven’s naming conventions, it is unusable (e.g. http://stackoverflow.com/questions/24765243/sapjco-3-0-11-with-maven-it-is-not-allowed-to-rename-or-... ). Does SAP provide special JCo library for Maven based projects?

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

HAL9000
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ismed,

there is only one JCo version offered: The SAP JCo SDK that is available from http://service.sap.com/connectors for download.


And you are right that the sapjco3.jar does not allow renaming or repackaging.

But I do not agree that this would make it unusable with Maven. It just does not fit to the Maven default behavior. But you may adapt your Maven project configuration to get it working.

For example, you can use the <stripVersion>true</stripVersion> option in the pom.xml for copying the JCo artifacts without having the default version suffix.

For further info please see the Maven documentation:

http://maven.apache.org/plugins/maven-dependency-plugin/usage.html

Best regards,
Stefan