Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE92218BF9 for ; Fri, 7 Aug 2015 20:25:57 +0000 (UTC) Received: (qmail 22367 invoked by uid 500); 7 Aug 2015 20:25:57 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 22300 invoked by uid 500); 7 Aug 2015 20:25:57 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 22288 invoked by uid 99); 7 Aug 2015 20:25:57 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2015 20:25:57 +0000 Received: from server.dankulp.com (cn1.dankulp.com [64.85.173.253]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 03EBF1A009C for ; Fri, 7 Aug 2015 20:25:56 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: reduce CXF dependencies for JAXRS? From: Daniel Kulp In-Reply-To: Date: Fri, 7 Aug 2015 16:25:51 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: dev@cxf.apache.org X-Mailer: Apple Mail (2.2104) > On Aug 7, 2015, at 3:23 PM, Romain Manni-Bucau = wrote: >=20 > used an older version but xmlschema and woodstox removal would be good = (why > not recommanded if I dont use XML parsing?) We use XML internally for various config things and setup stuff. I = really have no idea if CXF would even start properly without woodstox. = You=E2=80=99d have to try it. 95% sure it won=E2=80=99t work without xmlschema either. Many cxf-core = classes have xmlschema params/returns as part of the method signatures. Dan > Romain Manni-Bucau > @rmannibucau | Blog > | Github = | > LinkedIn | Tomitriber > >=20 > 2015-08-07 11:18 GMT-07:00 Daniel Kulp : >=20 >>=20 >>> On Aug 7, 2015, at 2:13 PM, Daniel Kulp wrote: >>>=20 >>> You should be able to get rid of the wsdl stuff. We pulled all = the >> wsdl stuff out of core specifically for this reason. >>>=20 >>> XmlSchema would definitely be required. Way too much in core = depends on >> that. With 3.1.x, I=E2=80=99m not seeing a dependency on = cxf-rt-bindings-xml >> either. >>=20 >> I think with 3.1.x, the minimal for a client would be: >>=20 >> [INFO] org.apache.cxf.samples:jax_rs_basic:jar:3.1.3-SNAPSHOT >> [INFO] +- = org.apache.cxf:cxf-rt-transports-http:jar:3.1.3-SNAPSHOT:compile >> [INFO] | \- org.apache.cxf:cxf-core:jar:3.1.3-SNAPSHOT:compile >> [INFO] | +- = org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:compile >> [INFO] | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile >> [INFO] | \- = org.apache.ws.xmlschema:xmlschema-core:jar:2.2.1:compile >> [INFO] +- = org.apache.cxf:cxf-rt-frontend-jaxrs:jar:3.1.3-SNAPSHOT:compile >> [INFO] | \- javax.annotation:javax.annotation-api:jar:1.2:compile >> [INFO] +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile >>=20 >> With some system settings, you could possibly remove woodstox, but = that >> would be highly NOT recommended. >>=20 >> Dan >>=20 >>=20 >>=20 >>>=20 >>>=20 >>> Dan >>>=20 >>>=20 >>>=20 >>>=20 >>>> On Aug 7, 2015, at 1:30 PM, Romain Manni-Bucau = >> wrote: >>>>=20 >>>> Hi guys, >>>>=20 >>>> just a very open idea for now but I think it would be great to be = able >> to >>>> use CXF JAXRS client with a bit less dependencies. >>>>=20 >>>> Here the origin of the issue: I created several small "all in one" = jar >>>> recently mainly simplifying rest calls (let take a github or jira = REST >>>> client as sample if you want to see a concrete sample). Of course I = used >>>> CXF for the JAXRS client - WebClient actually - and the only issue = I got >>>> was the size of the jar. >>>>=20 >>>> In my case I don't care about xml stuff (mainly use String as = payloads) >> so >>>> wonder if we could get rid of wsdl, xmlschema, cxf-rt-bindings-xml = etc >> as >>>> mandatory dependencies. >>>>=20 >>>> wdyt? >>>>=20 >>>> Romain Manni-Bucau >>>> @rmannibucau | Blog >>>> | Github < >> https://github.com/rmannibucau> | >>>> LinkedIn | Tomitriber >>>> >>>=20 >>> -- >>> Daniel Kulp >>> dkulp@apache.org - http://dankulp.com/blog >>> Talend Community Coder - http://coders.talend.com >>>=20 >>=20 >> -- >> Daniel Kulp >> dkulp@apache.org - http://dankulp.com/blog >> Talend Community Coder - http://coders.talend.com >>=20 >>=20 --=20 Daniel Kulp dkulp@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com