How to build .war file manually

Hi,

I want to build .war files for my web project, but I just want to do this "sometimes" not everytime I make/build the project. Does anybody know if there is a way to start this process manually?

thanks in advance
Martin

0
3 comments
Avatar
Permanently deleted user

Use ANT? http://ant.apache.org/manual/CoreTasks/war.html

Something tells me I am missing exactly what you are trying to do.

In what scenario do you NOT want the war created? Are you talking about during local debug sessions? You can alternately deploy in exploded format when doing local development. Project Settings->Web Module->Java EE Build Settings->Uncheck create war (I believe the default) and instead check create exploded directory

0
Avatar
Permanently deleted user

I think you're talking about a feature similar to "Export war" in Eclipse, right?

As far as I can tell, there is no such functionality in IntelliJ.

As a workaround you have to:

1. Create / enable "Create a web facet war file" on a web facet
2. Build the module containing the web facet
3. disable "Create a web facet war file"

Definitely, not very UI friendly.

Please add a JIRA issue about this: http://www.jetbrains.net/jira/browse/IDEA

0
Avatar
Permanently deleted user

yes, you are right. My workflow is intented by the way it was solved by eclipse.
Manually switching the checkbox is too complicated, there are too many clicks to do so.
I will write an ANT file then, this has the effort that I can automatically change some configuration stuff for the other environment.

Thank you!!
Martin

0

Please sign in to leave a comment.