Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The manifest classpath generated by Maven ignores the "real" JAR name as specified in <finalName>. For example the Geotools project tried the following configuration:
<build> <finalName>gt-${artifactId}-${version}</finalName>
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. However this workaround is applicable only to Geotools developpers (in our case), because users of the Geotools library usually download the dependencies from a repository.
This bug may be related to MJAR-28.
Issue Links
- depends upon
-
MSHARED-147
Maven Archiver does not obey project.build.finalName in Class-Path entry
-
- is depended upon by
-
GEOT-995
Reinsert/remove "gt2-" prefix in all module name
-
The problem on Maven Jar plugin is still existing. maven Jar plugin is currently on version 2.2
Does anyone have an update on the problem ? Or a patch /workaround
Thanks