-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com.sap.cloud.adk.archetype-adapter-component-reuse #39
Comments
Hi @ottfro1 |
in the pom.xml |
We also tested using But then we get error A possible solution is to add dependency but we could not make it work
We think the archetype should have the necessary dependencies from start. |
SAP Business Application Studio - is that a possible IDE? |
https://tools.hana.ondemand.com/#cloudintegration The adapter development process using Eclipse plugin has been deprecated We tested eclipse oxygen - the same error : Build failed: Dependency libs/spring-aop-5.3.23.jar is not a valid OSGi bundle creating a project - maven project or adapter project? |
oxygene is from 2018 - obsolete and outdated? |
2 similar comments
oxygene is from 2018 - obsolete and outdated? |
oxygene is from 2018 - obsolete and outdated? |
Hi @ottfro1, We are in process of updating our Help portal documentation. |
Hi Harshita, thanks for the link, unfortunately we have not been able make the linked solution work for the "reuse archetype" scenario. I think SAP should fix the "reuse archetype" so non-osgi ar packed/bundled automatically. At least there should be a clear path to the solution documented. |
Issue description
We want to use the https://cxf.apache.org/docs/openapifeature.html
Hence we want ot use the
https://camel.apache.org/components/4.0.x/cxfrs-component.html
https://camel.apache.org/components/4.0.x/dataformats/jaxb-dataformat.html
When we use the archetype com.sap.cloud.adk.archetype-adapter-component-reuse for
<component.groupId>org.apache.camel</component.groupId>
<component.artifactId>camel-cxf</component.artifactId>
<component.version>${camel.version}</component.version>
We hit error :
Build failed: Dependency libs/spring-aop-5.3.23.jar is not a valid OSGi bundle
I guess this will be a very common error and it would be good if sap had a documented solution.
There are more spring components with the same problem
spring-beans, spring-context, spring-core, spring-expression, spring-jcl, spring-tx and a bunch of more components
We think the solution should be to use maven
org.apache.felix
maven-bundle-plugin
but so fare we have failed to make it work.
You may be able to use this mehtod https://help.sap.com/docs/integration-suite/sap-integration-suite/create-osgi-bundle?locale=en-US but then the point with using archetype and maven is lost - the process has massive amount of manual work.
A description of how to setup an IDE with java would be good.
SAP should have at least one proven to work IDE with one proven to work java.
When trying this I used NWDS 7.5 sp28 and the bundled maven in eclipse
using sap java SE 1.8
in NWDS "new maven project" and
Group Id se.mycompany.nip.cloud.adk
ArtifactId CIApacheCXF
adapterName : ApacheCXF
adapterId : camel-cxf ApacheCXFID
adapterVendor : org.apache.camel
adapterVersion : 1.0.0
Feedback Type (Optional)
content gaps
Page Title on SAP Help Portal (prefilled)
Develop Adapters Using Archetype
Page URL on SAP Help Portal (prefilled)
https://help.sap.com/docs/integration-suite/sap-integration-suite/develop-adapters-using-archetype
The text was updated successfully, but these errors were encountered: