Share tomcat(run/debug) configurations across projects.

Is there a way to share server configurations (or other run configurations) across projects?

I've got a single server instance with many different wars running on it. Each war has it's own IDEA project. When I'm debugging remotely on the server it's a pain to have to configure the tomcat debug configuration for each of those projects. Is there a way to share them across all your projects so it doesn't need to be configured for each project?

Thanks,
E

2 comments
Comment actions Permalink

Hello E,

One option is to configure each war as a module in a single IDEA project.

Also you can easily copy run configurations between projects if you use the
directory-based project format. Each run configuration is then stored in
a separate .xml file under .idea/runConfigurations.

Is there a way to share server configurations (or other run
configurations) across projects?

I've got a single server instance with many different wars running on
it. Each war has it's own IDEA project. When I'm debugging remotely on
the server it's a pain to have to configure the tomcat debug
configuration for each of those projects. Is there a way to share them
across all your projects so it doesn't need to be configured for each
project?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks for the info Dmitry.

Copying run configurations is kind of a lame way out. In the time it takes to open up the dir structure and copy to the right one, i can just log into the server and get the debug port.  The repetition still exists, it's just changed form.

As for pulling all the wars in as modules into one project. These are all maven projects and unfortuantely they don't all inherrit one root pom, they each are their own projects.  I didn't think you could pull in multiple maven projects into one intellij project.

Thanks,
E

0

Please sign in to leave a comment.