maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MJAR-28) Using the jar plugin with addClasspath and snapshots can create manifest classpath with incorrect jar versions
Date Wed, 25 Oct 2006 17:31:41 GMT
    [ http://jira.codehaus.org/browse/MJAR-28?page=comments#action_78430 ] 
            
Martin Desruisseaux commented on MJAR-28:
-----------------------------------------

Maybe related to this issue: the manifest classpath generated by Maven ignores the "real"
JAR name as specified in {{<finalName>>}}. For example the Geotools project tried
the following configuration:

{code:xml}
<build>
  <finalName>gt-${artifactId}-${version}</finalName>
{code}

but the manifest classpath generated by Maven contains only {{${artifactId}-${version}.jar}}
entries, which are non-existent JARs.

*Note:* this problem happen only when the JAR dependencis come from the repository. The manifest
classpath is correct if all dependencies were compiled in the same "{{mvn install}}" cycle.


> Using the jar plugin with addClasspath and snapshots can create manifest classpath with
incorrect jar versions
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MJAR-28
>                 URL: http://jira.codehaus.org/browse/MJAR-28
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Mark J. Titorenko
>         Attachments: MJAR-28-patch.txt
>
>
> When the POM contains dependencies to snapshot versions of jars, and snapshot versions
of those jars are downloaded from a remote repository, the name of the jar contained in the
classpath added to the manifest, of the form artifactID-X.X-SNAPSHOT.jar, does not match the
actual name of the jar downloaded, which contains version information of the form artifactID-X.X-YYYYMMDD.HHmmss-V.jar.
> This does not affect snapshot versions which have been directly installed into a local
repository and have no uploaded version within the remote repository, as these jars are named
using the artifactID-X.X-SNAPSHOT.jar form.

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