@anirban37 could you please help me a work around ?
@rajesh0708, I am assuming you are creating the project from a maven archetype considering these statements. You are allset, in my opinion. I hope you know how to install maven dependencies to your local repositories. Just use the below commands.
mvn install:install-file -Dfile=sapjco3.jar -DgroupId=com.sap.conn.jco -DartifactId=sapjco3 -Dversion=3 -Dpackaging=jar -Dclassifier=windowsx86_64
mvn install:install-file -Dfile=sapidoc3.jar -DgroupId=com.sap.conn.jco -DartifactId=sapidoc3 -Dversion=3 -Dpackaging=jar
mvn install:install-file -Dfile=sapjco3.dll -DgroupId=com.sap.conn.jco-native -DartifactId=sapjco3 -Dversion=3 -Dpackaging=dll
mvn install:install-file -Dfile=sapjco3.jar -DgroupId=com.sap.conn.jco -DartifactId=sapjco3 -Dversion=3 -Dpackaging=jar -Dclassifier=linuxx86_64
mvn install:install-file -Dfile=libsapjco3.so -DgroupId=com.sap.conn.jco-native -DartifactId=sapjco3 -Dversion=3 -Dpackaging=so
Also, you should see a Profiles tag in your pom.xml file. On Windows based OS, it should activate by default to Windows. Although, while deploying to cloudhub, you'll need to build by specifying the Linux profile, as Cloudhub is deployed on a Linux based OS. So your command for build before deploying should `mvn clean package -P Linux`(or whatever is the profile id in your pom.xml file)