I am a new java learner and choose idea as my ide. Now I am confused of the meaning of "Web exploded" as the image shows.
An exploded deployment is an application which is not packaged in a . war, . ear or . jar file but it's contained in a directory using these extensions (. ear, .
There is no difference really. An exploded archive is a tree of folder and files that respects a given structure which your application server can exploit to deploy the application. For a web application for instance, you create a war directory structure.
IntelliJ IDEA needs a run configuration to build the artifact and deploy it to your application server. From the main menu, select Run | Edit Configurations. , expand the Glassfish Server node, and select Local. Fix any warnings that appear at the bottom of the run configuration settings dialog.
File | Project Structure and click Artifacts. Click Add + and 'Web Application:war exploded' then it will pop-up your project and select it and hit OK and then go and do Build > Build Artifact.
Exploded = unpacked. Normally web apps are deployed in war/ear archives (essentially zip
). Using exploded deployment allows updating application without redeploying or restarting the server. The server doesn't need to unpack the web application when it's deployed, it just uses the files that are present in the directory.
This way you can test your changes much faster when developing and debugging, then you can build war/ear artifact and deploy it on the production server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With