Eclipse本身自带的导出功能异常丰富,可以导出JAR、WAR、EAR、ZIP、 TAR等各种类型的包文件,以下一篇文章介绍了如何导出JAR,导出其他类型的包文件则类似,可以自行参考。
To create a new JAR file in the workbench:
In the Package Explorer, you can optionally pre-select one or more Java elements to export. (These will be automatically selected in the JAR Package Specification wizard page, described in Step 4.)
From the menu bar, select File > Export.
Select JAR file, then click Next.
In the Jar Package Specification page, select the resources that you want to export in the Select the resources to export field.
Select the appropriate check box to specify whether you want to Export generated class files and resources or Export Java source files and resources.
Note: Selected resources are exported in both cases.
In the Select the export destination field, either type or click Browse to select a location for the JAR file.
Select or clear the Compress the contents of the JAR file check box.
Select or clear the Overwrite existing files without warning check box. If you clear thischeck box, then you will be prompted to confirm the replacement of each file that will be overwritten.
Note: The overwrite option is applied when writing the JAR file, the JAR description, and the manifest file.
You have two options:
Click Finish to create the JAR file immediately.
Click Next to use the JAR Packaging Options page to set advanced options, create a JAR description, or change the default manifest.
Sorry, the comment form is closed at this time.
使用maven之后这些功能基本用不到了。。。