maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From moraleslos <>
Subject Issue with ManifestResourceTransformer and string length limit for main class
Date Sat, 06 Apr 2013 16:47:56 GMT

I've added a maven-shade-plugin for the infamous Spring issues when creating
an uber jar.  Anyway in my ManifestResourceTransformer I specify my
executable class.  When I run mvn clean/install and then try to execute the
jar, I get a class not found issue.  When I expand the jar file that Maven
created and opened the Manifest.MF file, the class name for Main-Class was
placed in two lines.  This is what it looks like:

Manifest-Version: 1.0
Build-Jdk: 1.7.0_17
Built-By: Dell
Created-By: Apache Maven
Main-Class: com.albeingters.buslogics.variablespeedcontroller.BusVSGat
Archiver-Version: Plexus Archiver

Notice above that the "e" was put on the next line.  For testing purposes,
when I truncated the class name a couple of characters, everything seemed to
work fine.  So looks like Maven has some type of string length limit for the
main class.  Below is my pom configuration for that shader:


Using JDK 1.7_17 and Maven 3.0.5 command line

View this message in context:
Sent from the Maven - Users mailing list archive at

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

View raw message