exclude files from jar or war in eclipse

前端 未结 4 1955
别那么骄傲
别那么骄傲 2020-12-01 22:01

Is there a way to tell Eclipse to not include specified files, directories, or patterns in a JAR or WAR?

4条回答
  •  一个人的身影
    2020-12-01 22:29

    to add to what @Rich_Seller said: in Eclipse Indigo:

    • Select your package from the package view right click, and choose Export.
    • Choose Java -> JAR file from the "select an export destination" tree.
    • Click Next to go to the next page of the wizard.

    • Under the "Select the resource to export" you are presented with a tree view here you can select and deselect components that will be included and excluded from the JAR.

提交回复
热议问题