How can I create a war file of my project in NetBeans?

后端 未结 10 2089
深忆病人
深忆病人 2020-12-04 17:39

How can I create a war file of my project in NetBeans?

相关标签:
10条回答
  • 2020-12-04 18:28

    Right click your project, hit "Clean and Build". Netbeans does the rest.

    under the dist directory of your app, you should find a pretty looking .war all ready for deployment.

    0 讨论(0)
  • 2020-12-04 18:32

    I had to right-click the build.xml file and choose "run". Only then would the .war file be created.

    0 讨论(0)
  • 2020-12-04 18:33

    Simplest way is to Check the Output - Build tab: It would display the location of war file.
    It will have something like:

    Installing D:\Project\target\Tool.war to C:\Users\myname.m2\repository\com\tool\1.0\Tool-1.0.war

    0 讨论(0)
  • 2020-12-04 18:35

    If NetBeans haven't created your dist folder, execute the do-dist ant target:

    In commandline navigate to the directory of your project, the one containing a build.xml file
    > ant do-dist
    

    If ant runs fine (most likely), your dist folder will be created, containing the .war file.

    0 讨论(0)
提交回复
热议问题