jira-importer commented on issue #887: URL: https://github.com/apache/maven-scm/issues/887#issuecomment-2964631329
**[Svend Hansen](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=svendhhh)** commented (I'm the one who created this but on this bug on the maven release plugin project) I've downloaded the code and added a line that printed out the files it's looking at on line 109 (where the exception is thrown) here: http://maven.apache.org/scm/maven-scm-providers/maven-scm-provider-perforce/xref/org/apache/maven/scm/provider/perforce/command/edit/PerforceEditCommand.html With the line: `String canfile = file.getCanonicalPath();` and the first file looks like `D:\Server\D:\Server\pom.xml` which obviously breaks. Further debug before the line: `File file = new File( workingDirectory, fs.get( i ).getPath() );` shows that the file path of the fs.get(i) file is absolute. I first tried removing the workingDirectory, as it seemed that it wasn't needed here, but that broke a test, so instead I've changed it to: `File file = null;` `if(fs.get( i ).isAbsolute()) file = new File( fs.get( i ).getPath() );` `else file = new File( workingDirectory, fs.get( i ).getPath() );` And now it seems to work (I'm getting a different error much later in the process, but it is now managing the update the pom's versions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org