maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Kettler (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MJAR-41) Cannot specify additional classpath entries in jar manifest when using addClasspath
Date Fri, 02 Jun 2006 05:04:43 GMT
    [ http://jira.codehaus.org/browse/MJAR-41?page=comments#action_66450 ] 

Tim Kettler commented on MJAR-41:
---------------------------------

Is it really illegal to have more than one Class-Path entry in a manifest?

See http://java.sun.com/j2se/1.5.0/docs/guide/extensions/spec.html. Especially the line 'Multiple
Class-Path headers may be specified, and are combined sequentially.'.

The document is for Java 1.5. I haven't checked if this beaviour is also true for earlier
java versions.


> Cannot specify additional classpath entries in jar manifest when using addClasspath
> -----------------------------------------------------------------------------------
>
>          Key: MJAR-41
>          URL: http://jira.codehaus.org/browse/MJAR-41
>      Project: Maven 2.x Jar Plugin
>         Type: Bug

>     Versions: 2.1, 2.0
>  Environment: Maven 2.0.4, maven-jar-plugin 2.0 and 2.1-SNAPSHOT, JDK 1.5.0_06, Windows
XP
>     Reporter: Fredrik Vraalsen

>
>
> The plugin configuration snippet below leads to the generation of an illegal jar manifest
file, as it contains two Class-Path entries.  This works in Maven 1.1b2 by adding the following
to project.properties:
> maven.jar.manifest.classpath.add=true
> maven.jar.classpath=help/ resources/
> For more information, please see http://www.nabble.com/classpath-in-jar-manifest-t1582724.html
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-jar-plugin</artifactId>
> 	<configuration>
> 		<archive>
> 			<manifest>
> 				<addClasspath>true</addClasspath>
> 			</manifest>
> 			<manifestEntries>
> 				<Class-Path>help/ resources/</Class-Path>
> 			</manifestEntries>
> 		</archive>
> 	</configuration>
> </plugin>

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


Mime
View raw message