Background: We would like use Maven to build up the neo project and install on the cloud server via “maven install”, somehow we meet an issue which can be represent via following steps:
- Prepare the neo project which can successfully run locally;
- Include the maven dependency of neo SDK as follow:
<dependency>
<groupId>com.sap.cloud</groupId>
<artifactId>neo-java-web-api</artifactId>
<version>1.74.20</version>
</dependency>
- Remove any SAP server runtime in Build Path of eclipse
- Run “maven install” to get the war package, there are all libs embed inside the “/WEB_INF/libs” include the neo SDK libs like javax.servlet etc..
- Deploy this war package into cloud server (neo.ondemand.com), start the app, the web application can’t start up.
Workarounds:
Base on the situation we’re facing, we had two non-perfect ways:
- Remove the neo SDK libs (8 jar files) manually from packaged war file under “/WEB_INF/libs”;
- Replace the maven build instead of SAP neo eclipse plug-in;
Question:
Those two workaround solutions can’t meet current requirement of automatically build and install by maven, so could you help us on how to install the project into cloud server via maven correctly , thank a lot.