Maven 1.x Artifact Plugin
  1. Maven 1.x Artifact Plugin
  2. MPARTIFACT-72

m1.1-rc1 Creating an upload-bundle for a plugin without any java code does not work...

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.9
    • Labels:
      None
    • Environment:
      Win 2K
    • Number of attachments :
      0

      Description

      Hi

      Currently using 1.8.1-SNAPSHOT

      If I call the target artifact:create-upload-bundle on a maven plugin which does NOT have any java code (only some jelly), it looks like there is a problem in the artifact plugin (or the javadoc one). The javadoc plugin fails (as there are no java code) but the artifact plugin cannot handle the failure and stops as well. I believe that it should carry on.

      any quick suggestion?

      thanks

      Benoit

      -------------

      artifact:create-upload-bundle:
      java:prepare-filesystem:

      java:compile:
      [echo] No java source files to compile.

      java:jar-resources:

      test:test:
      [echo] No tests to run.

      jar:jar:

      [mkdir] Created dir: C:\project\qalab\maven-qalab-plugin\target\bundle
      [copy] Copying 1 file to C:\project\qalab\maven-qalab-plugin\target\bundle
      [echo] Rewriting POM...
      [copy] Copying 1 file to C:\project\qalab\maven-qalab-plugin\target\bundle
      [echo] Copying license: C:\project\qalab\maven-qalab-plugin/LICENSE.txt
      [copy] Copying 1 file to C:\project\qalab\maven-qalab-plugin\target\bundle
      [jar] Building MANIFEST-only jar: C:\project\qalab\maven-qalab-plugin\target\bundle\maven-qalab-plugin-0.9.2-sources
      .jar
      xdoc:init-i18n:

      xdoc:init:
      [echo] Generates the directory structure required for xdocs

      maven-javadoc-plugin:report:
      [mkdir] Created dir: C:\project\qalab\maven-qalab-plugin\target\javadoc
      [mkdir] Created dir: C:\project\qalab\maven-qalab-plugin\target\javadoc\src
      [echo] *******************************************
      [echo] * No sources found. Javadoc not created ! *
      [echo] *******************************************

      javadoc:

      javadoc:jar:

      BUILD FAILED
      File...... file:/C:/Documents and Settings/xhensevb/.maven/cache/maven-artifact-plugin-1.8.1-SNAPSHOT/plugin.jelly
      Element... ant:copy
      Line...... 225
      Column.... 141
      Warning: Could not find file C:\project\qalab\maven-qalab-plugin\target\maven-qalab-plugin-0.9.2_javadoc.jar to copy.
      Total time : 30 seconds
      Finished at : 19 September 2006 17:34:10 BST

        Activity

        Hide
        Benoit Xhenseval added a comment -

        Solution: add failonerror="false" on the <ant:copy on line 225

        <!-- Add javadocs -->
        <attainGoal name="javadoc:jar"/>
        <ant:copy failonerror="false" file="$

        {maven.build.dir}/${maven.final.name}_javadoc.jar" tofile="${maven.build.dir}

        /bundle/$

        {maven.final.name}

        -javadoc.jar"/>

        Show
        Benoit Xhenseval added a comment - Solution: add failonerror="false" on the <ant:copy on line 225 <!-- Add javadocs --> <attainGoal name="javadoc:jar"/> <ant:copy failonerror="false" file="$ {maven.build.dir}/${maven.final.name}_javadoc.jar" tofile="${maven.build.dir} /bundle/$ {maven.final.name} -javadoc.jar"/>

          People

          • Assignee:
            Lukas Theussl
            Reporter:
            Benoit Xhenseval
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: