Stephan Klevenz created OLINGO-29:
-------------------------------------
Summary: Avoid server only inclusions for client side code
Key: OLINGO-29
URL: https://issues.apache.org/jira/browse/OLINGO-29
Project: Olingo
Issue Type: Improvement
Components: odata2-core
Affects Versions: 0.0.0
Reporter: Stephan Klevenz
Assignee: Stephan Klevenz
Fix For: 1.1.0
The odata-code module has currently a dependency to CXF and HTTP Servlet API
which is not necessarily wanted for a client implementation.
As workaround a client app can exclude CXF from the odata-core dependency:
<dependency>
<groupId>com.sap.core.odata</groupId>
<artifactId>com.sap.core.odata.core</artifactId>
<version>${version.sap.odata}</version>
<exclusions>
<exclusion>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
</exclusion>
</exclusions>
</dependency>
A better solution would be to have a server only module that collects all
server side dependencies:
module dependencies | purpose | intended use
-------------------------------------------------------------
api | no dependencies | server and client
core | gson, commons-codec | server and client
core-server | servlet, jax-rs | only server
--
This message was sent by Atlassian JIRA
(v6.1#6144)