[Yanel-dev] Question regarding duplicate library versions used in Yanel

Michael Wechner michael.wechner at wyona.com
Tue Nov 8 19:56:52 CET 2011


Am 08.11.11 17:49, schrieb basZero:
> Hi Michael,
>
> I suspect that my "git fetch" in the local yanel repo did not work as 
> expected.
> I deleted now my local git repo of yanel and fetched it again from github.
>
> Now it looks much better, but still I see the following duplicates (or 
> non-matching version numbers between API and Impl):
>
> So these libs are
> backport-util-concurrent-2.2.jar
> backport-util-concurrent-3.1.jar

same for me
>
> commons-beanutils-1.6.jar
> commons-beanutils-1.7.0.jar

same for me
>
> commons-collections-2.1.jar
> commons-collections-3.2.jar

I have got one more even:

commons-collections-2.1.jar  commons-collections-3.1.jar  
commons-collections-3.2.jar
>
> commons-logging-1.0.4.jar but the API is version 1.1 (maybe this has 
> to be like this, I don't know, I'm just mentioning it):
> commons-logging-api-1.1.jar

same for me

commons-logging-1.0.4.jar    commons-logging-1.1.jar
>
> dom4j-1.5.2.jar
> dom4j-1.6.1.jar

same for me
>
> All others have been cleaned up. Sorry for the first list, but I guess 
> you should have a look at these libs here.
>
> I looked at different locations for this analysis:
> - First I deleted the local maven repository and built yanel from 
> scratch. In the Maven repo you see more duplicates but that can be 
> (e.g. older contribution resources or whatever might have an old 
> dependency). But as long as these resources are not used, it won't harm.
>
> - Secondly after a clean build followed by the regular build of Yanel, 
> I checked the libs in YANEL/build/webapps/ROOT/WEB-INF/lib : from here 
> I put together the list above.
>
> Let me know what you think,

I agree we should clean this up or at least add them to the list of 
duplicates at

src/build/build.properties (property duplicated.libs)

I have created a github issue:

https://github.com/wyona/yanel/issues/8

Thanks

Michael



> Cheers
> Balz
>
>
>
> On Tue, Nov 8, 2011 at 4:30 PM, basZero <baszero at gmail.com 
> <mailto:baszero at gmail.com>> wrote:
>
>     Hi Michael,
>
>     I installed Yanel from scratch today and noticed the following:
>
>     After calling the ./build.sh I checked out what libraries (JARs)
>     are actually loaded and packaged for Yanel.
>     I see that some libraries are included in different versions and I
>     think that should not be the case, right? Because you don't know
>     which version gets actually loaded by the classloader in the JVM...
>
>     Duplicate libraries are:
>
>     |wyona-org-commons-1.0-dev-r51356.jar
>     wyona-org-commons-1.0-dev-r59402.jar
>
>     backport-util-concurrent-2.2.jar
>     backport-util-concurrent-3.1.jar
>
>     commons-beanutils-1.6.jar
>     commons-beanutils-1.7.0.jar
>
>     commons-logging-1.0.4.jar
>     commons-logging-1.1.1.jar
>
>     ./yarep/yarep-core/1.0-dev-r50708/yarep-core-1.0-dev-r50708.jar
>     ./yarep/yarep-core/1.0-dev-rfb5ff05f92fa91672a54c447ef78d7b66b858b46/yarep-core-1.0-dev-rfb5ff05f92fa91672a54c447ef78d7b66b858b46.jar
>
>     ./yarep/yarep-impl/1.0-dev-r50708/yarep-impl-1.0-dev-r50708.jar
>     ./yarep/yarep-impl/1.0-dev-rfb5ff05f92fa91672a54c447ef78d7b66b858b46/yarep-impl-1.0-dev-rfb5ff05f92fa91672a54c447ef78d7b66b858b46.jar
>     |
>
>
>
>     I analyzed the wyona commons:
>     - r51356 gets referenced by ./yarep/dependencies.xml
>     - r59402 gets referenced by
>
>     ./yanel/src/build/dependencies.xml
>     ./yanel/build/lib/pom-core.xml
>
>     and I think some other files like
>     ./yanel/src/build/pom-core.xml
>     ./yanel-patch-resource/src/build/dependencies.xml
>     ./yanel-patch-resource/src/build/pom-core.xml
>     ./yanel-snapshot/src/build/dependencies.xml
>     ./yanel-snapshot/src/build/pom-core.xml
>     If this is done by purpose, can you explain the reason?
>     Thanks for any feedback,
>
>     Cheers
>     Balz
>
>     *Balz Schreier*
>     Zwischengas AG
>     CTO / Fotograf
>
>     Kürzlich publizierter Highlight: Arosa ClassicCar 2011
>     <http://www.zwischengas.com/de/HR/rennberichte/Arosa-ClassicCar-2011-Sonne-Freude-Geschwindigkeit.html>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20111108/b3ac549c/attachment-0001.html>


More information about the Yanel-development mailing list