Re: Maven creating a WAR: strange error about file access
A Maven bug would imply that its a problem of Maven, and therefore repeatable etc, so we would expect to see a lot of people encoutering the problem. Given that a lot of us are very successfully creating our own WARs, and you're the only one who has reported this trouble, I would tend to assume that the problem is in fact a problem on your local system. Given that you're running Windows, I'm going to assume you have an antivirus software installed. Please try disabling your antivirus and try again. It might be nice if you could perhaps boot into Safe Mode and try Maven -- if it is successful, you know that some other process on your box (antivirus etc) is the cause of your troubles. Wayne On 7/26/07, Vaidya, Supriya A (US - Chicago) [EMAIL PROTECTED] wrote: Tried that - still getting the same error... And this with the only window open is the command prompt, after a restart of my system. Is this a Maven bug? Nobody else seems to encounter it... -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 9:55 AM To: Maven Users List Subject: Re: Maven creating a WAR: strange error about file access I would move all your stuff to a folder that has no spaces anywhere in the name and see if the error happens again. Wayne On 7/25/07, Vaidya, Supriya A (US - Chicago) [EMAIL PROTECTED] wrote: [INFO] Error copying EAR modules Embedded error: C:\Supriya\Projects\XXX\Documents\Code\From Mark\19Jun200 7\creditDecision\creditDecisionWAR\target\creditDecisionWAR-2.0.war (The process cannot access the file because it is being used by another process) Now - I have checked the processes through my task manager - and don't see any java processes. I have restarted my comp, opened the cmd window immediately, did not open ANY other application, simply run the mvn clean install, and STILL get this error... what in the world is using the war?? Is this a Maven problem, or am I missing something? Does the space in 'From Mark' matter? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven creating a WAR: strange error about file access
Tried that - still getting the same error... And this with the only window open is the command prompt, after a restart of my system. Is this a Maven bug? Nobody else seems to encounter it... -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 9:55 AM To: Maven Users List Subject: Re: Maven creating a WAR: strange error about file access I would move all your stuff to a folder that has no spaces anywhere in the name and see if the error happens again. Wayne On 7/25/07, Vaidya, Supriya A (US - Chicago) [EMAIL PROTECTED] wrote: [INFO] Error copying EAR modules Embedded error: C:\Supriya\Projects\XXX\Documents\Code\From Mark\19Jun200 7\creditDecision\creditDecisionWAR\target\creditDecisionWAR-2.0.war (The process cannot access the file because it is being used by another process) Now - I have checked the processes through my task manager - and don't see any java processes. I have restarted my comp, opened the cmd window immediately, did not open ANY other application, simply run the mvn clean install, and STILL get this error... what in the world is using the war?? Is this a Maven problem, or am I missing something? Does the space in 'From Mark' matter? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven creating a WAR: strange error about file access
Hi: My project is creating an EAR that contains a WAR (for the servlets) that in turn depends on a JAR (of EJBs). I have the necessary POMs. At the root folder, I execute the following command: mvn clean install Everything goes well (see messages for references below) And then I get this strange error. : : [INFO] Installing C:\Supriya\Projects\XXX\Documents\Code\From Mark\19Jun2 007\creditDecision\creditDecisionEJB\target\creditDecisionEJB-2.0.jar to C:\Docu ments and Settings\supriyavaidya\.m2\repository\com\XXX\credit\decision\s ervice\creditDecisionEJB\2.0\creditDecisionEJB-2.0.jar : : [INFO] Installing C:\Supriya\Projects\XXX\Documents\Code\From Mark\19Jun2 007\creditDecision\creditDecisionWAR\target\creditDecisionWAR-2.0.war to C:\Docu ments and Settings\supriyavaidya\.m2\repository\com\XXX\credit\decision\w eb\creditDecisionWAR\2.0\creditDecisionWAR-2.0.war : : [INFO] Copying artifact[war:com.XXX.credit.decision.web:creditDecisionWAR :2.0] to[creditDecisionWAR-2.0.war] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error copying EAR modules Embedded error: C:\Supriya\Projects\XXX\Documents\Code\From Mark\19Jun200 7\creditDecision\creditDecisionWAR\target\creditDecisionWAR-2.0.war (The process cannot access the file because it is being used by another process) Now - I have checked the processes through my task manager - and don't see any java processes. I have restarted my comp, opened the cmd window immediately, did not open ANY other application, simply run the mvn clean install, and STILL get this error... what in the world is using the war?? Is this a Maven problem, or am I missing something? Does the space in 'From Mark' matter? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Maven creating a WAR: strange error about file access
I would move all your stuff to a folder that has no spaces anywhere in the name and see if the error happens again. Wayne On 7/25/07, Vaidya, Supriya A (US - Chicago) [EMAIL PROTECTED] wrote: [INFO] Error copying EAR modules Embedded error: C:\Supriya\Projects\XXX\Documents\Code\From Mark\19Jun200 7\creditDecision\creditDecisionWAR\target\creditDecisionWAR-2.0.war (The process cannot access the file because it is being used by another process) Now - I have checked the processes through my task manager - and don't see any java processes. I have restarted my comp, opened the cmd window immediately, did not open ANY other application, simply run the mvn clean install, and STILL get this error... what in the world is using the war?? Is this a Maven problem, or am I missing something? Does the space in 'From Mark' matter? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]