I added maven-jetty-plugin to my pom.xml
, and execute goal jetty:run-war
. All work fine. But when I want hot-redeploy of project, after some changes on source code, I need to repeat goal package
on my project (I think because I deployed project as .war, not as unassembled webapp).
But when I run package
goal, I get an error: Could not copy webapp sources... [C:\..\workspace\PROJECT_NAME\target\PROJECT_NAME-0.0.1-SNAPSHOT
] - It is because files that must be deleted by Maven when executing goal package
are corrupted(busy) by started Jetty server.
How to solve this problem?
Thanks.