How To Deploy 3rd Party WAR File As Web Facet

I'm working with a Java EE application that has source code for two separate web facets. Building and deploying these is no issue.

However, there's another WAR file that is intended to be deployed as part of the Java EE application that has no source code, just a .war file.

I've never had to deploy such a thing in IntelliJ before. If I create a new web facet, how do I point IntelliJ to use the existing WAR file? Please advise. I'll apologize in advance if this is trivial. I'm just so used to working with source code that I'm having trouble wrapping my head around it. Thank you.

2 comments
Comment actions Permalink

Now there is no way to directly pack WAR file into your Web facet.
However you can unpack WAR, create a separate Web facet (and module) for
it, add libraries from WAR as a module libraries and add unpacked WAR
directory a WEB resource directory to the Web facet.

I'm working with a Java EE application that has source code for two separate web facets. Building and deploying these is no issue.

However, there's another WAR file that is intended to be deployed as part of the Java EE application that has no source code, just a .war file.

I've never had to deploy such a thing in IntelliJ before. If I create a new web facet, how do I point IntelliJ to use the existing WAR file? Please advise. I'll apologize in advance if this is trivial. I'm just so used to working with source code that I'm having trouble wrapping my head around it. Thank you.



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Thank you, Nikolay, I came to exactly that conclusion this morning.

There isn't any source in the WAR, just WEB-INF/classes with compiled code underneath it. I had to add that directory as a dependency. Looks like everything is building just fine now. Thanks so much for your kind attention. Sincerely, %

0

Please sign in to leave a comment.