Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1
-
None
-
None
Description
When both the 'index' and 'addClasspath' are true, the plugin fails to create jar with the following msg:
Embedded error: Problem creating jar: **/target/classes (Is a directory)
A typical configuration to produce the error would be:
<plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <index>true</index> <manifest> <addClasspath>true</addClasspath> </manifest> </configuration> </plugin>
The issue below (about including dependency files in index) claims that it introduced this bug:
http://jira.codehaus.org/browse/MJAR-40
I'm posting this issue so that to ensure that version 2.2-SNAPSHOT does not suffer from the same problem.
Attachments
Attachments
Issue Links
- duplicates
-
MJAR-111 Index creation fails when classpath is set in manifest
- Closed
-
MJAR-97 Using <addClasspath> when you have no dependencies fails with FileNotFoundException
- Closed
-
MJAR-108 Using parameter index=true in archiver creates a build error : Embedded error: Problem creating jar: ....myJar\target\classes (Accès refusé)
- Closed
- is duplicated by
-
MJAR-131 Access denied on classes directory when setting manifest
- Closed
- relates to
-
MJAR-40 Incomplete jar indexes
- Closed