blob: d3b719fcca2bad9df14b550a100fbdc3b94764cb [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>Project Properties: Maven Project</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>
<body>
<p><a id="maven_settings" name="maven_settings"></a></p>
<div id="NBCSH2447"><!-- infolevel="all" infotype="General" --><a id="sthref332" name="sthref332"></a>
<h1>Project Properties: Maven Project</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>The Project Properties window for Maven projects enables you to configure project settings.</p>
<p>The Project Properties window contains the following elements.</p>
<table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="24%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t6">Element</th>
<th align="left" valign="bottom" id="r1c2-t6">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t6" headers="r1c1-t6">
<p>General</p>
</td>
<td align="left" headers="r2c1-t6 r1c2-t6">The General category enables you to set the following properties.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Group Id</p>
</td>
<td align="left" headers="r3c1-t6 r1c2-t6">Specifies the Group Id that is used when building the application.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Artifact Id</p>
</td>
<td align="left" headers="r4c1-t6 r1c2-t6">Specifies the Artifact Id, which is based on the project name</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Version</p>
</td>
<td align="left" headers="r5c1-t6 r1c2-t6">Specifies the version.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Packaging</p>
</td>
<td align="left" headers="r6c1-t6 r1c2-t6">Specifies how the application is packaged.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r7c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Name</p>
</td>
<td align="left" headers="r7c1-t6 r1c2-t6">Specifies the name of the project.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r8c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Description</p>
</td>
<td align="left" headers="r8c1-t6 r1c2-t6">(Optional) Description of the project.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r9c1-t6" headers="r1c1-t6">
<p>Sources</p>
</td>
<td align="left" headers="r9c1-t6 r1c2-t6">The Sources category displays the following properties</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r10c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Project Folder</p>
</td>
<td align="left" headers="r10c1-t6 r1c2-t6">(Read-only) Specifies the location of the parent directory of the project on the local system.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r11c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Source Folder</p>
</td>
<td align="left" headers="r11c1-t6 r1c2-t6">(Read-only) Specifies the location of the directory that contains the Java source files.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r12c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Test Source Folder</p>
</td>
<td align="left" headers="r12c1-t6 r1c2-t6">(Read-only) Specifies the location of the directory that contains the Java test files.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r13c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Source/Binary Format</p>
</td>
<td align="left" headers="r13c1-t6 r1c2-t6">Specifies the JDK version that applies to the lowest Java platform version with which the Java code in your project is compatible. Default options range from JDK 1.3 to 7.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r14c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Encoding</p>
</td>
<td align="left" headers="r14c1-t6 r1c2-t6">Specifies the character encoding the IDE applies when it saves and displays project source files</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r15c1-t6" headers="r1c1-t6">
<p>Configurations</p>
</td>
<td align="left" headers="r15c1-t6 r1c2-t6">The Configurations category of the Properties window of a Maven project enables you to create and select custom configurations for your project.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG630">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r16c1-t6" headers="r1c1-t6">
<p>Frameworks</p>
</td>
<td align="left" headers="r16c1-t6 r1c2-t6">The Frameworks category enables you to add support for a web application framework to the project.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1140">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r17c1-t6" headers="r1c1-t6">
<p>Compile</p>
</td>
<td align="left" headers="r17c1-t6 r1c2-t6">The Compile category enables you to specify the following properties:</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r18c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Compile On Save</p>
</td>
<td align="left" headers="r18c1-t6 r1c2-t6">This option enables you to choose how the IDE handles Java files when the files are modified and saved. When selected, Java files are compiled when you save them and generated class files are stored in the build directory of the project. This option can save you time when you run or debug your application in the IDE.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1119">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r19c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Generate Debugging Info</p>
</td>
<td align="left" headers="r19c1-t6 r1c2-t6">If selected, the compiled classes will include information necessary for stopping at breakpoints and stepping through the application with the debugger.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r20c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Report Use of Deprecated APIs</p>
</td>
<td align="left" headers="r20c1-t6 r1c2-t6">If selected, you are notified in the compilation output of any deprecated APIs that the code uses.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r21c1-t6" headers="r1c1-t6">
<p>Run</p>
</td>
<td align="left" headers="r21c1-t6 r1c2-t6">The Run category enables you to specify options for running your project. The options available will depende upon the type of project.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r22c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Configuration</p>
</td>
<td align="left" headers="r22c1-t6 r1c2-t6">Select a Maven configuration from the dropdown list. You can specify the available configurations for the project in the Configurations category.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG630">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r23c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Main Class</p>
</td>
<td align="left" headers="r23c1-t6 r1c2-t6">Specifies the main class for the application.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG815">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r24c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Arguments</p>
</td>
<td align="left" headers="r24c1-t6 r1c2-t6">Specifies arguments to pass to the main class during application execution.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r25c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Working Directory</p>
</td>
<td align="left" headers="r25c1-t6 r1c2-t6">Specifies a separate working directory that is used during application execution.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r26c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;VM Options</p>
</td>
<td align="left" headers="r26c1-t6 r1c2-t6">Specifies Java virtual machine options to be used for running the main class.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r27c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Server</p>
</td>
<td align="left" headers="r27c1-t6 r1c2-t6">(Web only) Specifies the server to which the web application is deployed. To register servers, choose Tools &gt; Servers from the main menu.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1119">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r28c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Java EE Version</p>
</td>
<td align="left" headers="r28c1-t6 r1c2-t6">(Web only) Specifies which version of Java EE is to be used.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r29c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Context Path</p>
</td>
<td align="left" headers="r29c1-t6 r1c2-t6">(Web only) Specifies a way to distinguish resources in one web application from resources in others that are deployed on the same server instance. The context of an application determines the URL namespace of the contents of the web application. When a web application's context property value is set, you access the web application at <code dir="ltr">http://hostname:port/context/servlet_or_jsp</code>. For example, with the property value set to /HelloWeb, you access the web application at <code dir="ltr">http://hostname:port/HelloWeb/index.jsp</code>.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r30c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Relative URL</p>
</td>
<td align="left" headers="r30c1-t6 r1c2-t6">(Web only) Specifies the URL relative to the context path to run. For example, if you want a specific servlet to be the entry point to a web application, specify the servlet's URL-pattern here. The IDE generates a servlet's URL-pattern in the <code dir="ltr">WEB-INF/web.xml</code> file when you use the New File (Ctrl-N) wizard to create a servlet.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r31c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Browser</p>
</td>
<td align="left" headers="r31c1-t6 r1c2-t6">(Web only) Sselect the browser that will launch when you run the application.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r32c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Display Browser on Run</p>
</td>
<td align="left" headers="r32c1-t6 r1c2-t6">(Web only) Specifies whether the browser is displayed.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r33c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Copy Static Resources on Save</p>
</td>
<td align="left" headers="r33c1-t6 r1c2-t6">(Web only) This option enables you to choose how the IDE handles non-Java files when the files are modified and saved. When selected, the files are automatically copied to the build directory of the project when the files are saved. When not selected the non-Java files are not copied when you save the files. You can invoke the Build command to copy the files to the build directory. This option is automatically enabled when you enable Deploy on Save..</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r34c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Deploy on Save</p>
</td>
<td align="left" headers="r34c1-t6 r1c2-t6">(Web only) When selected, when you save files the Java files are automatically compiled, non-Java files are copied to the build directory and the files are redeployed to the server. Enabling Deploy on Save automatically enables the Copy Static Resources on Save and Compile on Save options. The Deploy on Save option saves you time when you run or debug your application in the IDE and ensures that all new and modified files in the build directory are automatically redeployed to the server.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r35c1-t6" headers="r1c1-t6">
<p>Actions</p>
</td>
<td align="left" headers="r35c1-t6 r1c2-t6">The Actions category enables you to bind IDE actions to Maven goals and save the binding in custom configurations.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG632">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r36c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Configuration</p>
</td>
<td align="left" headers="r36c1-t6 r1c2-t6">Select a configuration from the drop down list to save the binding as part of that configuration. You can create new configurations in the Configurations category.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r37c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Actions</p>
</td>
<td align="left" headers="r37c1-t6 r1c2-t6">Select an IDE action from the list to view the Maven goals that are currently mapped to that action. You can click Add Custom to create a custom action.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r38c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Execute Goals</p>
</td>
<td align="left" headers="r38c1-t6 r1c2-t6">Add or modify the Maven goals that you want to bind to the item that is selected in the list of Actions.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r39c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Activate Profiles</p>
</td>
<td align="left" headers="r39c1-t6 r1c2-t6">Enter the profile or profiles that you want to activate when the selected action is invoked.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r40c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Set Propertiess</p>
</td>
<td align="left" headers="r40c1-t6 r1c2-t6">Enter any properties that you want to set during execution of the action.
<p>Click Add to open a popup menu with common properties.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r41c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Build Recursively (with modules)</p>
</td>
<td align="left" headers="r41c1-t6 r1c2-t6">When selected, modules are built recursively(in multi-module applications).</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r42c1-t6" headers="r1c1-t6">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Build With Dependencies</p>
</td>
<td align="left" headers="r42c1-t6 r1c2-t6">Project dependencies are built when the action is invoked.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r43c1-t6" headers="r1c1-t6">
<p>CheckStyle Formatting</p>
</td>
<td align="left" headers="r43c1-t6 r1c2-t6">Enables you to configure POM to add CheckStyle formatting rules.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r44c1-t6" headers="r1c1-t6">
<p>Hints</p>
</td>
<td align="left" headers="r44c1-t6 r1c2-t6">The Hints category enables you to configure hints for the project.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG613">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<a id="NBCSH2491" name="NBCSH2491"></a>
<hr><p><b>Related Topics</b></p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1111">
<param name="text" value="<html><u>&quot;Configuring a Web Application&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG382">
<param name="text" value="<html><u>&quot;Creating Standard Projects&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG620">
<param name="text" value="<html><u>&quot;Working with Maven in the IDE&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<!-- -->
<!-- -->
<!-- Start Footer -->
<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>