Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-69

When 'index' and 'addClasspath' are both true, plugin fails.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.4
    • 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

        1. trace.log
          90 kB
          Andrea Aime

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              ankostis Anagnostopoulos Kostis
              Votes:
              8 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: