overwrite duplicate attachement
-------------------------------

                 Key: MOJO-1506
                 URL: http://jira.codehaus.org/browse/MOJO-1506
             Project: Mojo
          Issue Type: Improvement
          Components: dita
         Environment: DITA 1.5.1 M2
maven dita plugin
            Reporter: Igor Jacy Lino Campista


Trying to use the "mvn site" command in my maven infrastructure executes twice 
the maven dita plugin and after that it fails with the exception below. Would 
it be possible to have an extra parameter to allow overwriting the attachment 
and so the build won't fail on such scenario?.



[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Duplicate file attachment found: 
C:\calypso_tools\calypso_trunk\documentation\calypso-developer-environment-installation-guide\target\pdf\calypso-devenv-installation-guide.pdf
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Duplicate file 
attachment found: 
C:\calypso_tools\calypso_trunk\documentation\calypso-developer-environment-installation-guide\target\pdf\calypso-devenv-installation-guide.pdf
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1190)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1022)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:647)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Duplicate file 
attachment found: 
C:\calypso_tools\calypso_trunk\documentation\calypso-developer-environment-installation-guide\target\pdf\calypso-devenv-installation-guide.pdf
        at 
org.codehaus.mojo.dita.AbstractProjectMojo.checkForDuplicateAttachArtifact(AbstractProjectMojo.java:158)
        at 
org.codehaus.mojo.dita.DitaRunMojo.attachSingleOuput(DitaRunMojo.java:400)
        at 
org.codehaus.mojo.dita.DitaRunMojo.attachTheOuput(DitaRunMojo.java:374)
        at org.codehaus.mojo.dita.DitaRunMojo.execute(DitaRunMojo.java:155)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        ... 21 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40 seconds
[INFO] Finished at: Tue Mar 02 15:33:33 CET 2010
[INFO] Final Memory: 36M/395M
[INFO] ------------------------------------------------------------------------



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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to