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" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -