You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Svend Hansen (JIRA)" <ji...@codehaus.org> on 2012/06/13 12:17:22 UTC

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Svend Hansen created MRELEASE-772:
-------------------------------------

             Summary: mvn release:prepare fails with IOException and a write error (Access is denied)
                 Key: MRELEASE-772
                 URL: https://jira.codehaus.org/browse/MRELEASE-772
             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
         Attachments: maven-release-error.txt

When running

{{mvn release:prepare -Dusername=<perforce_user> -Dpassword=<perforce_password>}}

I get the errors:

* java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Posted by "Pascal Verdage (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=310824#comment-310824 ] 

Pascal Verdage commented on MRELEASE-772:
-----------------------------------------

Silly me!
I'll try that. I use a previous version for now.
Thanks.
                
> mvn release:prepare fails with IOException and a write error (Access is denied)
> -------------------------------------------------------------------------------
>
>                 Key: MRELEASE-772
>                 URL: https://jira.codehaus.org/browse/MRELEASE-772
>             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:
> * java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Posted by "Pascal Verdage (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=310801#comment-310801 ] 

Pascal Verdage commented on MRELEASE-772:
-----------------------------------------

Hello,

it seems that the error is corrected in SCM plugin 1.8
Does it need a delivery of the release plugin?
Current version deepends on scm plugin 1.7 as shown in http://svn.apache.org/viewvc/maven/release/tags/maven-release-2.3.2/pom.xml?view=markup

I reproduce a similar error using plugins scm 1.8 and release 2.3.2.
I can provide logs if needed but that seems like flood since the issue is identified.

Regards,
Pascal
                
> mvn release:prepare fails with IOException and a write error (Access is denied)
> -------------------------------------------------------------------------------
>
>                 Key: MRELEASE-772
>                 URL: https://jira.codehaus.org/browse/MRELEASE-772
>             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
>         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:
> * java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Posted by "Svend Hansen (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301072#comment-301072 ] 

Svend Hansen commented on MRELEASE-772:
---------------------------------------

Apart from being almost certain my D drive is a proper partition, I've also created a new workspace on my C drive and run mvn release:prepare on that in the command prompt and I got the same three errors. I didn't get the "file(s) not in client view" error, and I think that one has something to do with cygwin.
                
> mvn release:prepare fails with IOException and a write error (Access is denied)
> -------------------------------------------------------------------------------
>
>                 Key: MRELEASE-772
>                 URL: https://jira.codehaus.org/browse/MRELEASE-772
>             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
>         Attachments: maven-release-error.txt
>
>
> When running
> {{mvn release:prepare -Dusername=<perforce_user> -Dpassword=<perforce_password>}}
> I get the errors:
> * java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Posted by "Svend Hansen (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301076#comment-301076 ] 

Svend Hansen edited comment on MRELEASE-772 at 6/13/12 9:57 AM:
----------------------------------------------------------------

Attached output where it was run with -X for full debug.
                
      was (Author: svendhhh):
    Run with -X for full debug.
                  
> mvn release:prepare fails with IOException and a write error (Access is denied)
> -------------------------------------------------------------------------------
>
>                 Key: MRELEASE-772
>                 URL: https://jira.codehaus.org/browse/MRELEASE-772
>             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
>         Attachments: maven-release-error.txt, mvn_release_output_x.txt
>
>
> When running
> {{mvn release:prepare -Dusername=<perforce_user> -Dpassword=<perforce_password>}}
> I get the errors:
> * java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Posted by "Svend Hansen (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MRELEASE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Svend Hansen updated MRELEASE-772:
----------------------------------

    Attachment: mvn_release_output_x_client_env.txt

I realised that I was using the wrong client/workspace. I've now run "export P4CLIENT=My_Actual_Client". I've attached another output log, with the new output (still the error where it seems to be missing the "pom.xml" at the end of the edit command).
                
> mvn release:prepare fails with IOException and a write error (Access is denied)
> -------------------------------------------------------------------------------
>
>                 Key: MRELEASE-772
>                 URL: https://jira.codehaus.org/browse/MRELEASE-772
>             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
>         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:
> * java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Posted by "Svend Hansen (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301211#comment-301211 ] 

Svend Hansen commented on MRELEASE-772:
---------------------------------------

Hmm... It looks like it creates the basic p4 command:

{{Commandline command = PerforceScmProvider.createP4Command( repo, workingDirectory );}}

then it adds the edit:

{{command.createArg().setValue( "edit" );}}

and _then_ it has a try-catch where it tries to add the files, where it looks like this line:

{{String canfile = file.getCanonicalPath();}}

is throwing an exception:

{{java.io.IOException: The filename, directory name, or volume label syntax is incorrect}}

So I guess it's just the first exception that matters, and the following errors are just caused by that one.

But why is it failing to "canonicalize" the file path?
                
> mvn release:prepare fails with IOException and a write error (Access is denied)
> -------------------------------------------------------------------------------
>
>                 Key: MRELEASE-772
>                 URL: https://jira.codehaus.org/browse/MRELEASE-772
>             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
>         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:
> * java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MRELEASE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MRELEASE-772.
-----------------------------------

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

Fixed in [r1382379|http://svn.apache.org/viewvc?rev=1382379&view=rev]
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: https://jira.codehaus.org/browse/MRELEASE-772
>             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:
> * java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301169#comment-301169 ] 

Robert Scholte commented on MRELEASE-772:
-----------------------------------------

This is in fact a [SCM#perforce|https://jira.codehaus.org/browse/SCM/component/11194]-issue. It seems like the order of the arguments matter. The 'edit' is implemented, so it looks like the behaviour has changed.
You should have a look at the [PerforceEditCommand|http://maven.apache.org/scm/maven-scm-providers/maven-scm-provider-perforce/xref/org/apache/maven/scm/provider/perforce/command/edit/PerforceEditCommand.html], which indeed adds the {{edit}} as final argument. That's where a fix should be applied.

Further usage details, see [maven-scm-provider-perforce|http://maven.apache.org/scm/maven-scm-providers/maven-scm-provider-perforce/index.html]
                
> mvn release:prepare fails with IOException and a write error (Access is denied)
> -------------------------------------------------------------------------------
>
>                 Key: MRELEASE-772
>                 URL: https://jira.codehaus.org/browse/MRELEASE-772
>             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
>         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:
> * java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-772) mvn release:prepare fails with IOException and a write error (Access is denied)

Posted by "Svend Hansen (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MRELEASE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Svend Hansen updated MRELEASE-772:
----------------------------------

    Attachment: mvn_release_output_x.txt

Run with -X for full debug.
                
> mvn release:prepare fails with IOException and a write error (Access is denied)
> -------------------------------------------------------------------------------
>
>                 Key: MRELEASE-772
>                 URL: https://jira.codehaus.org/browse/MRELEASE-772
>             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
>         Attachments: maven-release-error.txt, mvn_release_output_x.txt
>
>
> When running
> {{mvn release:prepare -Dusername=<perforce_user> -Dpassword=<perforce_password>}}
> I get the errors:
> * java.io.IOException: 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: http://stackoverflow.com/questions/10999403/maven-releaseprepare-ioexception) 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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira