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
Post a Comment