maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Xhenseval (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MPARTIFACT-72) m1.1-rc1 Creating an upload-bundle for a plugin without any java code does not work...
Date Tue, 19 Sep 2006 16:54:07 GMT
    [ http://jira.codehaus.org/browse/MPARTIFACT-72?page=comments#action_75232 ] 
            
Benoit Xhenseval commented on MPARTIFACT-72:
--------------------------------------------

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"/>


> m1.1-rc1 Creating an upload-bundle for a plugin without any java code does not work...
> --------------------------------------------------------------------------------------
>
>                 Key: MPARTIFACT-72
>                 URL: http://jira.codehaus.org/browse/MPARTIFACT-72
>             Project: maven-artifact-plugin
>          Issue Type: Bug
>    Affects Versions: 1.8.1
>         Environment: Win 2K
>            Reporter: Benoit Xhenseval
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message