Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7FFABF49D for ; Mon, 8 Apr 2013 13:58:52 +0000 (UTC) Received: (qmail 27695 invoked by uid 500); 8 Apr 2013 13:58:50 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 27615 invoked by uid 500); 8 Apr 2013 13:58:50 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 86055 invoked by uid 99); 6 Apr 2013 16:48:21 -0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of moraleslos@hotmail.com does not designate 216.139.236.26 as permitted sender) Date: Sat, 6 Apr 2013 09:47:56 -0700 (PDT) From: moraleslos To: users@maven.apache.org Message-ID: <1365266876365-5752842.post@n5.nabble.com> Subject: Issue with ManifestResourceTransformer and string length limit for main class MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, 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 e 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: org.apache.maven.plugins maven-shade-plugin 2.0 package shade true META-INF/spring.handlers META-INF/spring.schemas ${app.main.class} Using JDK 1.7_17 and Maven 3.0.5 command line -- View this message in context: http://maven.40175.n5.nabble.com/Issue-with-ManifestResourceTransformer-and-string-length-limit-for-main-class-tp5752842.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org