2

I am using ngdbc.jar to connect Java and HANA. Now I want to build a Web application. So I searched for the equivalent Maven repository but I could not find that one.

I found mostly for the cloud ones and finally found this one:

  <dependency>
    <groupId>com.sap.cloud</groupId>
    <artifactId>neo-java-web-api</artifactId>
    <version>1.53.18.2</version>
    <scope>provided</scope>
  </dependency>

Can any one tell which repository I can use instead of ngdbc.jar? Any help is appreciated

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
  • 3
    why don't you just include ngdbc.jar directly in your web app? – Yohanes Gultom Feb 24 '17 at 06:49
  • How to include the jar in my maven project? –  Feb 24 '17 at 06:57
  • 1
    You can either install it to local repo or just include it from system path http://stackoverflow.com/questions/4955635/how-to-add-local-jar-files-in-maven-project – Yohanes Gultom Feb 24 '17 at 06:57
  • @YohanesGultom Do you know where to get the ngdbc.jar because I want to check with alternative versions and check.But I could not find it in online.Could you help me? –  Feb 27 '17 at 01:56

3 Answers3

3

SAP doesn't allowed redistribution of ngdbc.jar in their TC as mentioned here. So you won't find any legal one online.

Your only option is to include the jar from your local. Something like:

<dependency>
    <groupId>sample</groupId>
    <artifactId>com.sample</artifactId>
    <version>1.0</version>
    <scope>system</scope>
    <systemPath>${project.basedir}/src/main/resources/yourJar.jar</systemPath>
</dependency>
Community
  • 1
  • 1
Yohanes Gultom
  • 3,782
  • 2
  • 25
  • 38
2

described here here how to deal with the missing ngdbc.jar:

https://github.com/claboran/priceimporter

claboran
  • 116
  • 2
  • 3
1

I tried to install the jar file as a dependency by

install:install-file -Dfile=C:\ngdbc.jar -DgroupId=com.han.driver -DartifactId=hana -Dversion=1.0 -Dpackaging=jar 

in Maven which is pretty handy and good way.hope this helps someone dealing with custom jars.