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

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

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -