You probably try to build a fat jar and do it wrongly, which is one of the reasons fat jars are evil.