Skip to content

[MSOURCES-12] size of source jar grows and grows #93

Description

@jira-importer

Matthias Wessendorf opened MSOURCES-12 and commented

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>

Affects: 2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions