This is a bug in m2e-wtp, can you please open an issue in
https://issues.sonatype.org/browse/MECLIPSEWTP ?
I'll try to fix that today.

Regards,

Fred Bricon

On Wed, Jan 18, 2012 at 1:34 PM, Leszek Gawron <[email protected]> wrote:

> Hello,
>
> When I am using m2e with maven war project it turns out that every
> snapshot dependency I declare gets copied to target/ folder.
>
> Apart from the file being copied eclipse holds a lock on it. This means
> you cannot go to command line and do 'mvn clean install' because it will:
>
>  [INFO] BUILD FAILURE
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] Total time: 0.272s
>> [INFO] Finished at: Wed Jan 18 13:32:09 CET 2012
>> [INFO] Final Memory: 3M/15M
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [ERROR] Failed to execute goal 
>> org.apache.maven.plugins:**maven-clean-plugin:2.4.1:clean
>> (default-clean) on project tornister-webapp: Failed to clean pr
>> oject: Failed to delete C:\dev\tornister\target\**
>> squash-spring-extensions-0.0.**1-20110725.114001-8.jar -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>
>
> What is the rationale behind this functionality? The exact same file is
> cached in local m2 repository. Why copy it?
>
> My regards
>  lg
>
> --
> Leszek Gawron                            http://lgawron.posterous.com
> ______________________________**_________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users>
>



-- 
"Have you tried turning it off and on again" - The IT Crowd
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to