[ 
http://jira.codehaus.org/browse/MJAR-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

julio benitez updated MJAR-121:
-------------------------------

    Attachment: test_2poms_b.ZIP

>java -jar project_2-1.0.jar

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/co
llections/MultiMap
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.Mult
iMap
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com.test.project_2.Example. Program will exit.

> blank space and new line in manifest classpath
> ----------------------------------------------
>
>                 Key: MJAR-121
>                 URL: http://jira.codehaus.org/browse/MJAR-121
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.2
>            Reporter: julio benitez
>         Attachments: sample_2poms.ZIP, test_2poms_b.ZIP
>
>
> If a project depends on another project,  when we generate the second project 
> the classpath in manifest includes a extra blank space like this.  
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> Created-By: Apache Maven
> Built-By: jbe
> Build-Jdk: 1.6.0_10
> Class-Path: project_1-1.0.jar jdom-1.0.jar log4j-1.2.9.jar commons-col
>  lections-3.2.jar
>  Example attached

-- 
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

        

Reply via email to