Maven is a framework that provides help with managing the project lifecycle, including building and managing dependencies. For more information, see Section 7.9, "Preparing a JAR File for Deployment Outside the IDE."įor information on how to customize an Ant build script, see Section 5.2.3.4, "Customizing the IDE-Generated Ant Script."įor information on how to modify a build JAR file, see Section 7.7, "Building a JAR File." This simplifies running the application outside the IDE. The IDE also adds each of the JAR files to the Class-Path element in the application JAR's manifest.mf file. Before delivering your application to users, use the Clean and Build command to generate fresh versions of the project's distributable files.įor standard projects that have a main class specified, the IDE automatically copies any JAR files on the project's classpath to the dist/lib folder when you build the application. However, the compile-on-save feature does not build your application JAR file. This compile-on-save feature enables you to run or debug your applications in the IDE without having to wait for the projects to be built. Override IDE-generated Ant targets or create new targets in build.xml.īy default, the IDE compiles the classes in a standard project when you save them. With standard Java projects, you can customize the build process by doing any of the following:Įnter basic options, such as classpath settings and JAR filters, in the Project Properties dialog box. If you are using a free-form Java project, the IDE uses your existing Ant build script. With Ant, if you are using a standard Java project, the IDE generates an Ant build script based on the options you enter in the project's Project Properties dialog box. ![]() ![]() NetBeans provides both Ant and Maven for building your Java applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |