Hello Jerome
(sorry for this late answer, i got lost with too many mailing lists)

many of the imported jars are imported transitively:

On 11/17/06, Jerome Lacoste <[EMAIL PROTECTED]> wrote:

> [INFO] commons-logging-1.0.3.jar classes:17 dependencies:61 => 39,0%
> (31605->12396 bytes)

Off Topic: You may want to bump your commons-logging version.


this is imported from jmimemagic: even If i exclude it and import a newer
release (1.1) i won't save much i guess.

[INFO] commons-codec-1.3.jar classes:25 dependencies:34 => 31,0%
> (46725->14941 bytes)


[INFO] log4j-1.2.8.jar classes:244 dependencies:500 => 18,0%
(352668->66364
> bytes)


this is imported by jmimemagic

you may want to use a smaller logging package. Especially as you use
commons-logging

> [INFO] cglib-nodep-2.1_3.jar classes:258 dependencies:334 => 1,0%
> (324238->5276 bytes)


this is  only with scope=test, so we can't ignore it.

[INFO] easymockclassextension-2.2.jar classes:13 dependencies:71 => 3,0%
> (15887->498 bytes)


same as above.

[INFO] commons-lang-2.2.jar classes:123 dependencies:180 => 4,0%
> (243016->10072 bytes)

Do you use this directly ? If so think about packaging a small version
of commons-lang...


i could, but then i would ended up doing manually what minijar could do for
me..no?


[INFO] commons-fileupload-1.1.1.jar classes:22 dependencies:56 => 16,0%
> (31909->5213 bytes)
> [INFO] oro-2.0.8.jar classes:62 dependencies:90 => 55,0% (65261->35970
> bytes)
> [INFO] xercesImpl-2.6.2.jar classes:784 dependencies:877 => 3,0%
> (1010675->31412 bytes)

1M... Do you need XML ?


those are imported by jmimemagic as well...and even if I don't need it, some
other classes are using it..


[INFO] jmimemagic-0.0.4a.jar classes:9 dependencies:49 => 93,0%
> (55241->51475 bytes)
> [INFO] commons-io-1.1.jar classes:41 dependencies:98 => 48,0%
(61562->29818
> bytes)
> [INFO] commons-httpclient-3.0.1.jar classes:148 dependencies:242 =>
70,0%
> (279781->197911 bytes)
> [INFO] xmlParserAPIs-2.2.1.jar classes:142 dependencies:121 => 29,0%
> (83089->24781 bytes)

I would try to reduce the number of dependencies. XML seems to be 40%
of your 2.4 M. Can you do without ? Then log4j and cglib


if jmimemagic works fine with commons-loggin, i could exclude it...but

Then I would repackage some libs, like commons-lang into
commons-lang-reduced.


are you suggesting to do this manually ?



--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

Reply via email to