Prevent overwriting WAR when deploying

Answered

Everytime I deploy my war, my repository gets overwritten. Because I'm working with a Magnolia CMS, this means that I have to reinstall all the modules and that my changed settings in the project disappear.

I could change the repository directory in my magnolia.properties file to a location outside. But I don't want to change the basic settings.

Because I'm working on different projects at the same time changing to ear isn't an option.

I use a maven project on a Tomcat 9 Server. If I need to post any configurations, just let me know.

Can anyone help me to prevent overwriting my repository? Apparently Eclipse has no problem with these things.

Many thanks in advance.

0
1 comment

Not sure I understand the problem. Do you mean that you keep artifact output path in the repository? Why can't you change the artifact output location in IntelliJ IDEA so that it's outside your repository?

Please clarify your workflow and specify what exactly is overwritten (the specific files and directories).

0

Please sign in to leave a comment.