Hello all --

I wanted to share with you how I solved the dependency clash I experienced
when I enable the CAS restlet module with the latest 3.5.1 version of the
webapp war.

The maven tool provides several means of filtering includes and excludes of
resources, source and libraries while performing a tasks from the war
plugin. Once such filter is the packagingExcludes filter. It allows the
filtering of the contents of the final war during the assembly or packaging
of the war. It does this *after* the working directory has already been
populated. This is somewhat misleading in that the dependency that is to be
filtered remains in the working directory, but does not get included in the
final war file itself.

For filtering out the cglib::cglib-full dependency introduced by the latest
cas-server-webapp transitive dependency that including the Spring json
library brings in, I added the following the following configuration element
to my maven-war-plugin plugin definition used to build the overlay:

                <configuration>
                   
<packagingExcludes>**/cglib-full-*.jar</packagingExcludes>
                </configuration>

That got rid of the unwanted dependency and allowed the restlet module to
work with the latest 3.5.1 release of the CAS server without runtime
StackOverflow failures.

In my research of this problem I came across
https://issues.jasig.org/browse/CAS-1207 that already documents the problem,
but the solution the OP used to get around it wasn't appropriate to our
overlay process at the moment.

I also came across a wiki page detailing the confusing behavior surrounding
the use of the packagingExcludes war plugin element w/r to the final
contents of the work director used to assemble the war. It lives at
http://docs.codehaus.org/display/MAVENUSER/Solving+the+Skinny+Wars+problem
and makes for some interesting reading if you want to know more about maven.

Thanks for reading.

Peace.




--
View this message in context: 
http://jasig.275507.n4.nabble.com/Deploying-CAS-3-5-1-cglib-full-2-0-2-jar-clashes-with-cglib-nodep-2-1-3-jar-tp4656586p4656775.html
Sent from the CAS Developers mailing list archive at Nabble.com.

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to