java - Save user-uploaded files from Maven Clean -


this webapp developed using maven java on tomcat server.

once user uploads image saved under project/target/projectwithversion/images (this path built using getservlet().getservletcontext().getrealpath("/images");)

this works, each time project cleaned maven deletes target folder, user uploaded images inside.

how can avoided?

you should not run application in target folder created maven. want create war file , deploy tomcat runs somewhere else.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -