maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <>
Subject [jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)
Date Mon, 08 Oct 2012 17:55:36 GMT


Robert Scholte closed MRELEASE-772.

       Resolution: Fixed
    Fix Version/s: 2.4
         Assignee: Robert Scholte

Fixed in [r1382379|]
Meanwhile you can add a {{<dependencies/>}}-section within the {{plugin}}-definiton
of the {{maven-release-plugin}} in your {{pom.xml}} and add the scm-dependencies with the
right version.

> mvn release:prepare fails with IOException and a write error (Access is denied)
> -------------------------------------------------------------------------------
>                 Key: MRELEASE-772
>                 URL:
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.3.1
>         Environment: Windows 7 both command prompt and cygwin using Perforce for SCM
>            Reporter: Svend Hansen
>            Assignee: Robert Scholte
>             Fix For: 2.4
>         Attachments: maven-release-error.txt, mvn_release_output_x_client_env.txt, mvn_release_output_x.txt
> When running
> {{mvn release:prepare -Dusername=<perforce_user> -Dpassword=<perforce_password>}}
> I get the errors:
> * The filename, directory name, or volume label syntax is incorrect
> * [ERROR] CommandLineException Exit code: 1 - Usage: add/edit/delete [-c changelist#]
[ -d -f -k -n -v ] [-t type] files...
> Missing/wrong number of arguments.
> * [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.1:prepare
(default-cli) on project root-project: Error writing POM: D:\Server\pom.xml (Access is denied)
-> [Help 1]
> The full output is attached.
> Sometimes I also get the error:
> * [ERROR] D:\Server\pom.xml - file(s) not in client view.
> Though I created the client in the same location I'm running from, and I'm not sure that
error is related to the others (as the others also occur when that one doesn't).
> It's been suggested (on stackoverflow:
that the error has to do with my D drive being a mapped drive, though I don't think it is
as it's not listed if I run {{subst}}. However, I think it _must_ be at least a partition
on the same hard drive, unless my PC has three physical drives :P (work PC), but I guess that
shouldn't make any difference to the program?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message