diff --git a/pom.xml b/pom.xml index c30fe3cf..0f6c56f3 100644 --- a/pom.xml +++ b/pom.xml @@ -31,6 +31,8 @@ + ${basedir}/lib + ${lib.directory}/* 11 11 UTF-8 @@ -137,7 +139,48 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-sap-libs + process-sources + + copy + + + true + ${lib.directory} + + + com.sap.conn.jco + sapjco3 + ${sapjco3-version} + ${envType} + ${envClassifier} + true + ${native.lib.filename}.${envType} + + + com.sap.conn.jco + sapjco3 + ${sapjco3-version} + true + sapjco3.jar + + + com.sap.conn.idoc + sapidoc3 + ${sapidoc3-version} + true + sapidoc3.jar + + + + + + org.apache.maven.plugins maven-compiler-plugin @@ -197,6 +240,24 @@ fabric8-maven-plugin ${fabric8-maven-plugin-version} + + org.springframework.boot + spring-boot-maven-plugin + ${spring-boot-version} + + + + + com.sap.conn.idoc + sapidoc3 + + + com.sap.conn.jco + sapjco3 + + + + @@ -302,5 +363,201 @@ redhat-7.0.0.redhat-SNAPSHOT + + win-i386 + + + windows + i386 + + + + win-i686 + dll + sapjco3 + + + + win-x86 + + + windows + x86 + + + + win-i686 + dll + sapjco3 + + + + win-x86_64 + + + windows + x86_64 + + + + win-x86_64 + dll + sapjco3 + + + + win10-x86_64 + + + windows 10 + x86_64 + + + + win-x86_64 + dll + sapjco3 + + + + win32-amd64 + + + windows + amd64 + + + + win-x86_64 + dll + sapjco3 + + + + win10-amd64 + + + windows 10 + amd64 + + + + win-x86_64 + dll + sapjco3 + + + + linux-i386 + + + linux + i386 + + + + linux-i686 + so + libsapjco3 + + + + linux-x86 + + + linux + x86 + + + + linux-i686 + so + libsapjco3 + + + + linux-x86_64 + + + linux + x86_64 + + + + linux-x86_64 + so + libsapjco3 + + + + linux-amd64 + + + linux + amd64 + + + + linux-x86_64 + so + libsapjco3 + + + + macosx-i386 + + + mac os x + i386 + + + + macosx-i686 + dylib + libsapjco3 + + + + macosx-x86 + + + mac os x + x86 + + + + macosx-i686 + dylib + libsapjco3 + + + + macosx-x86_64 + + + mac os x + x86_64 + + + + macosx-x86_64 + dylib + libsapjco3 + + + + macosx-amd64 + + + mac os x + amd64 + + + + macosx-x86_64 + dylib + libsapjco3 + + diff --git a/spring-boot/README.md b/spring-boot/README.md index 838ff5cd..bf0c8f9d 100644 --- a/spring-boot/README.md +++ b/spring-boot/README.md @@ -72,5 +72,40 @@ To run these quick starts you will need: * Maven 3.6.2 or higher * JDK 11 * Red Hat Build of Camel Spring Boot -* SAP JCo3 and IDoc3 libraries (sapjco3.jar, sapidoc3.jar and JCo native library for your OS platform) +* SAP JCo3 and IDoc3 libraries (sapjco3.jar, sapidoc3.jar and JCo native library for your OS platform) installed in your local Maven repository (see how to at the end) * SAP instance with [Flight Data Application](http://help.sap.com/saphelp_erp60_sp/helpdata/en/db/7c623cf568896be10000000a11405a/content.htm) setup. + +--- +Install SAP libraries in your local Maven repository +--- + +To install your three SAP libraries in your Maven repository you will need to run three commands using Maven: + + +mvn install:install-file -DgroupId=com.sap.conn.jco -DartifactId=sapjco3 -Dversion=3.1.4 -Dpackaging=jar -Dfile=sapjco3.jar + +mvn install:install-file -DgroupId=com.sap.conn.idoc -DartifactId=sapidoc3 -Dversion=3.1.1 -Dpackaging=jar -Dfile=sapidoc3.jar + +Installing the JCo native library will depend on the Operating System and architecture you are running. For example: + +for Linux x86 64 bit: + +mvn install:install-file -DgroupId=com.sap.conn.jco -DartifactId=sapjco3 -Dversion=3.1.4 -Dclassifier=linux-x86_64 -Dpackaging=so -Dfile=libsapjco3.so + +MacOS 64 bit: + +mvn install:install-file -DgroupId=com.sap.conn.jco -DartifactId=sapjco3 -Dversion=3.1.4 -Dclassifier=macosx-x86_64 -Dpackaging=dylib -Dfile=libsapjco3.dylib + +Windows 64 bit + +mvn install:install-file -DgroupId=com.sap.conn.jco -DartifactId=sapjco3 -Dversion=3.1.4 -Dclassifier=win-x86_64 -Dpackaging=dll -Dfile=sapjco3.dll + +For more architectures please see the [pom.xml](pom.xml#L376) + +When using different version please also change the version in [pom.xml](pom.xml#L46) + + + + + + diff --git a/spring-boot/sap-idoc-destination-spring-boot/lib/README.txt b/spring-boot/sap-idoc-destination-spring-boot/lib/README.txt deleted file mode 100644 index e8b9ab07..00000000 --- a/spring-boot/sap-idoc-destination-spring-boot/lib/README.txt +++ /dev/null @@ -1 +0,0 @@ -Place your copies of the IDoc and JCo libraries and the JCo native library for your OS platform in this directory. \ No newline at end of file diff --git a/spring-boot/sap-idoc-destination-spring-boot/pom.xml b/spring-boot/sap-idoc-destination-spring-boot/pom.xml index 8df5343a..46293651 100644 --- a/spring-boot/sap-idoc-destination-spring-boot/pom.xml +++ b/spring-boot/sap-idoc-destination-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin diff --git a/spring-boot/sap-idoclist-destination-spring-boot/pom.xml b/spring-boot/sap-idoclist-destination-spring-boot/pom.xml index 1e1647b5..db0a7b7e 100644 --- a/spring-boot/sap-idoclist-destination-spring-boot/pom.xml +++ b/spring-boot/sap-idoclist-destination-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin diff --git a/spring-boot/sap-idoclist-server-spring-boot/pom.xml b/spring-boot/sap-idoclist-server-spring-boot/pom.xml index f087870b..340d2314 100644 --- a/spring-boot/sap-idoclist-server-spring-boot/pom.xml +++ b/spring-boot/sap-idoclist-server-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin diff --git a/spring-boot/sap-qidoc-destination-spring-boot/pom.xml b/spring-boot/sap-qidoc-destination-spring-boot/pom.xml index 662ab3a5..89e478c8 100644 --- a/spring-boot/sap-qidoc-destination-spring-boot/pom.xml +++ b/spring-boot/sap-qidoc-destination-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin diff --git a/spring-boot/sap-qidoclist-destination-spring-boot/pom.xml b/spring-boot/sap-qidoclist-destination-spring-boot/pom.xml index 6a6a39f2..833dfde5 100644 --- a/spring-boot/sap-qidoclist-destination-spring-boot/pom.xml +++ b/spring-boot/sap-qidoclist-destination-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin diff --git a/spring-boot/sap-qrfc-destination-spring-boot/pom.xml b/spring-boot/sap-qrfc-destination-spring-boot/pom.xml index 6ac04f9d..22ef72df 100644 --- a/spring-boot/sap-qrfc-destination-spring-boot/pom.xml +++ b/spring-boot/sap-qrfc-destination-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin diff --git a/spring-boot/sap-srfc-destination-spring-boot/pom.xml b/spring-boot/sap-srfc-destination-spring-boot/pom.xml index e64b755b..2682ac67 100644 --- a/spring-boot/sap-srfc-destination-spring-boot/pom.xml +++ b/spring-boot/sap-srfc-destination-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin diff --git a/spring-boot/sap-srfc-server-spring-boot/pom.xml b/spring-boot/sap-srfc-server-spring-boot/pom.xml index bcdbe6bd..d856b1b0 100644 --- a/spring-boot/sap-srfc-server-spring-boot/pom.xml +++ b/spring-boot/sap-srfc-server-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin diff --git a/spring-boot/sap-trfc-destination-spring-boot/pom.xml b/spring-boot/sap-trfc-destination-spring-boot/pom.xml index f8f690d6..9354687a 100644 --- a/spring-boot/sap-trfc-destination-spring-boot/pom.xml +++ b/spring-boot/sap-trfc-destination-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin diff --git a/spring-boot/sap-trfc-server-spring-boot/pom.xml b/spring-boot/sap-trfc-server-spring-boot/pom.xml index bb850fda..3484a760 100644 --- a/spring-boot/sap-trfc-server-spring-boot/pom.xml +++ b/spring-boot/sap-trfc-server-spring-boot/pom.xml @@ -57,20 +57,6 @@ org.fusesource camel-sap-starter - - com.sap.conn.jco - sapjco3 - ${sapjco3-version} - system - ${basedir}/lib/sapjco3.jar - - - com.sap.conn.idoc - sapidoc3 - ${sapidoc3-version} - system - ${basedir}/lib/sapidoc3.jar - spring-boot:run @@ -82,7 +68,10 @@ - + + org.apache.maven.plugins + maven-dependency-plugin + maven-compiler-plugin