Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 1616 invoked from network); 7 Dec 2007 23:55:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2007 23:55:30 -0000 Received: (qmail 78892 invoked by uid 500); 7 Dec 2007 23:55:18 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 78844 invoked by uid 500); 7 Dec 2007 23:55:18 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 78833 invoked by uid 99); 7 Dec 2007 23:55:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2007 15:55:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2007 23:55:18 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 9E88114A8043 for ; Fri, 7 Dec 2007 17:54:57 -0600 (CST) Message-ID: <9660738.1197071697647.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Fri, 7 Dec 2007 17:54:57 -0600 (CST) From: "Olivier Lamy (JIRA)" To: issues@maven.apache.org Subject: [jira] Closed: (MJAR-60) Adding directories to manifest classpath entry is not possible In-Reply-To: <74282009.1161281900768.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MJAR-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Olivier Lamy closed MJAR-60. ---------------------------- Assignee: Olivier Lamy Resolution: Cannot Reproduce I have just tested on cygwin an no problem {noformat} $ uname CYGWIN_NT-5.1 {noformat} I have added an it for this case with the attached project (svn rev 602276). If you have the issue again reopen and please provide an it test. Thanks. > Adding directories to manifest classpath entry is not possible > -------------------------------------------------------------- > > Key: MJAR-60 > URL: http://jira.codehaus.org/browse/MJAR-60 > Project: Maven 2.x Jar Plugin > Issue Type: Bug > Affects Versions: 2.1 > Environment: WinXP SP2, cygwin > Reporter: Bugittaa Pahasti > Assignee: Olivier Lamy > Fix For: 2.2 > > Attachments: MJAR-60.zip > > > > org.apache.maven.plugins > maven-jar-plugin > > > > main.Class > true > lib > > > config/ > > > > > Manifest specification requires directories to include slash at the end, but if that is added the build will fail. WIth config the build works fine (but resources aren't found as the slash is missing). The error is: > [INFO] Building jar: xxx-1.0-SNAPSHOT.jar > [DEBUG] adding directory META-INF/ > [DEBUG] adding entry META-INF/MANIFEST.MF > ... > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] Error assembling JAR > Embedded error: Problem creating jar: c:\main\java\module\target\classes (Access is denied) > [INFO] ------------------------------------------------------------------------ > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling JAR > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling JAR > at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:162) > at org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:174) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) > ... 16 more > Caused by: org.codehaus.plexus.archiver.ArchiverException: Problem creating jar: c:\main\java\module\target\classes (Access is denied) > at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:424) > at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchive(AbstractZipArchiver.java:250) > at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:402) > at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:155) > ... 19 more > Caused by: java.io.FileNotFoundException: c:\main\java\module\target\classes (Access is denied) > at java.io.RandomAccessFile.open(Native Method) > at java.io.RandomAccessFile.(Unknown Source) > at org.codehaus.plexus.archiver.zip.ZipFile.(ZipFile.java:147) > at org.codehaus.plexus.archiver.zip.ZipFile.(ZipFile.java:132) > at org.codehaus.plexus.archiver.jar.JarArchiver.grabFilesAndDirs(JarArchiver.java:906) > at org.codehaus.plexus.archiver.jar.JarArchiver.createIndexList(JarArchiver.java:476) > at org.codehaus.plexus.archiver.jar.JarArchiver.finalizeZipOutputStream(JarArchiver.java:417) > at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:357) > ... 22 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira