You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by ma...@srsi.de on 2011/04/15 13:43:06 UTC
License und usage of CXF
Hello there,
I have three short questions about CXF.
1. Is it possible to pack all the 64 CXF libs in one jar to use it? The
architecture of my software makes it almost impossible to import so many
chars.
2. I made this by generating the class files to one jar. Is that conform
with the license? Does anybody know that? If yes, are there addition
things I have to take care of?
3. If I understood this correct I just have to add the apache license
2.0 to my software when I use CSF. Is that correct?
Thank you in advance!
Re: License und usage of CXF
Posted by Ron Wheeler <rw...@artifact-software.com>.
On 15/04/2011 7:43 AM, mail@srsi.de wrote:
> Hello there,
>
> I have three short questions about CXF.
>
> 1. Is it possible to pack all the 64 CXF libs in one jar to use it? The
> architecture of my software makes it almost impossible to import so many
> chars.
CXF has a bundle that includes all the libraries.
It also solves the problem about incompatible property files that are
included in the individual libraries so that the bundle has fully
functional properties.
Here is the dependency that we use.
I have included the exclusions that we use to get rid of the transitive
dependencies that we want to control and provide elsewhere.
You can remove the ones that you don't want.
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle</artifactId>
<version>${cxf-bundle.version}</version>
<exclusions>
<exclusion>
<artifactId>spring-beans</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring-context</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>aopalliance</artifactId>
<groupId>aopalliance</groupId>
</exclusion>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
<exclusion>
<artifactId>spring-core</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring-jms</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring-context-support</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>spring-web</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>commons-lang</artifactId>
<groupId>commons-lang</groupId>
</exclusion>
<exclusion>
<artifactId>oro</artifactId>
<groupId>oro</groupId>
</exclusion>
<exclusion>
<artifactId>commons-collections</artifactId>
<groupId>commons-collections</groupId>
</exclusion>
<exclusion>
<artifactId>spring-tx</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>dom4j</artifactId>
<groupId>dom4j</groupId>
</exclusion>
<exclusion>
<artifactId>commons-codec</artifactId>
<groupId>commons-codec</groupId>
</exclusion>
<exclusion>
<artifactId>antlr</artifactId>
<groupId>antlr</groupId>
</exclusion>
<exclusion>
<artifactId>velocity</artifactId>
<groupId>org.apache.velocity</groupId>
</exclusion>
<exclusion>
<artifactId>xercesImpl</artifactId>
<groupId>xerces</groupId>
</exclusion>
<exclusion>
<artifactId>xml-apis</artifactId>
<groupId>xml-apis</groupId>
</exclusion>
</exclusions>
</dependency>
> 2. I made this by generating the class files to one jar. Is that conform
> with the license? Does anybody know that? If yes, are there addition
> things I have to take care of?
> 3. If I understood this correct I just have to add the apache license
> 2.0 to my software when I use CSF. Is that correct?
>
> Thank you in advance!
>
>
Re: License und usage of CXF
Posted by Daniel Kulp <dk...@apache.org>.
On Friday 15 April 2011 7:43:06 AM mail@srsi.de wrote:
> Hello there,
>
> I have three short questions about CXF.
>
> 1. Is it possible to pack all the 64 CXF libs in one jar to use it? The
> architecture of my software makes it almost impossible to import so many
> chars.
Possible, but not easy or recommended.
> 2. I made this by generating the class files to one jar.
That won't work. You need to also combine/merge the various files in META-
INF which is pretty tricky. I would suggest using our pom at:
http://svn.apache.org/repos/asf/cxf/trunk/distribution/bundle/all/
as a starting point. It uses the maven-shade-plugin to merge the various
things in META-INF together correctly. If you take that pom and start
stripping out things you don't need, you can likely get a smaller jar that has
less stuff in it.
> Is that conform
> with the license? Does anybody know that? If yes, are there addition
> things I have to take care of?
If all you do is combine the cxf-* things together, the above use of the
maven-shade-plugin will pretty much handle everything for you. It merges
together the variout NOTICE files and such so the result should be acceptable
from a legal standpoint. If you also have it merge in the various Spring
jars and JAXB and SAAJ and other non-cxf things, then you could be getting
into other legal issues and you'd need to consult whatever legal council you
have.
> 3. If I understood this correct I just have to add the apache license
> 2.0 to my software when I use CXF. Is that correct?
You would also need to reproduce the contents of the NOTICE file someplace in
your software as well.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com