Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Why are snapshots copied to target/ folder

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 <lgawron@xxxxxxxxx> 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
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



--
"Have you tried turning it off and on again" - The IT Crowd

Back to the top