maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Eckenfels <>
Subject Re: Class size
Date Sun, 01 Nov 2015 22:16:27 GMT
Am Sun, 1 Nov 2015 16:34:13 -0500
schrieb aalok singhvi <>:

> Hello,
> I have a basic question...
> If i compile a simple hello world java program using javac in ant i
> get a different size as compared to class compiled with maven plugin.
> My java source and target it 1.6.
> What is the reason. Can anyone help me with this. I will really
> appreciate your help.

There are multiple compiler settings which can influence class size.
Including debug information (source file, line, local vars - defaults
to on in Maven and off on Ant) and I guess presence of some annoation

Are you using the same java version for compiling with Ant and Maven?
(and youare sure you do not use eclipse or jikes?

Ithink you could dump the classes with "javap -l -c -s -p -verbose" to
see potential differences. How big of a difference do you see?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message