While IDEA's j2ee build and packaging system is getting better, there is still
often a need for a custom (e.g. Ant-based) build and packaging, especially when
an application has to run on more than one app-server. However, this breaks large
parts of the app-server integrations since they can't build and deploy such modules.
What I'd like to do is to define a j2ee (app, ejb or web) module that references
the location (ear, jar, war) that is built by an Ant script and use that together
with an app-server run-config so it can be automatically or manually deployed.
The simplest thing would be to be able to exclude a module from the build process
which is needed to avoid the pre-built file being overwritten by IDEA. I can also
imagine a "Pre-built APP/EJB/WEB" module-type that only refers to a pre-built file
and does not take part in IDEAs build process. This way there wouldn't be any unused
content-roots, descriptors, etc. As a bonus it would be great to define an Ant-target
to be executed when Make is invoked on the module.
Does this make sense or is there a better way to deal with such applications/modules?