Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8
-
Fix Version/s: 1.9
-
Component/s: None
-
Labels:None
-
Environment:Win 2K
-
Number of attachments :
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
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"/>