Uploaded image for project: 'Maven Source Plugin'
  1. Maven Source Plugin
  2. MSOURCES-12

size of source jar grows and grows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.2
    • None
    • None

    Description

      I am seeing this, when using the 2.0.2 source plugin inside my release profile and runing

      mvn release:perform -Prelease

      [INFO] Building jar: d:\Apache_release\last\target\checkout\maven-faces-plugin\target\maven-faces-plugin-1.0.0-incubating-javadoc.jar
      [INFO] Preparing source:jar
      [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
      [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
      [INFO] [scm:update

      {execution: getting-scm.revision}

      ]
      [INFO] Executing: svn --non-interactive update
      [INFO] Working directory: d:\Apache_release\last\target\checkout\maven-faces-plugin
      [INFO] Storing revision in 'scm.revision' project property.
      [INFO] [source:jar

      {execution: attach-sources}

      ]
      [INFO] Building jar: d:\Apache_release\last\target\checkout\maven-faces-plugin\target\maven-faces-plugin-1.0.0-incubating-sources.jar
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error creating source archive: Problem creating jar: There is not enough space on the disk (and the archive is probably corrupt but I could not delete it)

      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 8 minutes 42 seconds
      [INFO] Finished at: Wed Feb 14 09:13:58 CET 2007
      [INFO] Final Memory: 15M/31M
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR

      This work around helped (instead using the 2.0.2 maven-source-plugin)
      <plugin>
      <!-- This should possibly better be done by using a resource
      definition. However, if we declare a resource with
      ${basedir} as the base directory, then the
      maven-source-plugin will add the whole directory to
      its contents.
      -->
      <artifactId>maven-antrun-plugin</artifactId>
      <executions>

      <execution>
      <phase>generate-resources</phase>
      <configuration>
      <tasks>
      <copy todir="${project.build.outputDirectory}/META-INF">
      <fileset dir="${basedir}">
      <include name="LICENSE.txt" />
      <include name="NOTICE.txt" />

      </fileset>
      </copy>
      </tasks>
      </configuration>
      <goals>
      <goal>run</goal>
      </goals>
      </execution>

      </executions>
      </plugin>

      Attachments

        Activity

          People

            Unassigned Unassigned
            matzew Matthias Wessendorf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: