给应用程序打一个war包

  1. Click /help/img/idea/2017.2/new.png, point to Web Application: Archive and select For 'JavaEEHelloWorld: war exploded'.
  2. /help/img/idea/2017.2/HWJEE034ProjectStructureNewArtifact.png

    A new artifact configuration is created and its settings are shown in the right-hand part of the dialog.

    /help/img/idea/2017.2/HWJEE035ProjectStructureNewArtifactSettings.png


  3. Create a manifest file for your archive: click Create Manifest and agree to the location suggested by IntelliJ IDEA (web/META-INF/MANIFEST.MF).
  4. Click OK in the Project Structure dialog.Select Build | Build Artifacts.
  5. /help/img/idea/2017.2/HWJEE036BuildArtifacts.png
  6. In the Build Artifact popup, point to JavaEEHelloWorld:war and select Build./help/img/idea/2017.2/HWJEE037BuildArtifactPopup.png

    Now if you look at the out/artifacts/JavaEEHelloWorld_war folder, you'll see the archive there.

    /help/img/idea/2017.2/HWJEE038ArtifactInProjectToolWindow.png


©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页