File: f1_maven006.htm

package info (click to toggle)
libnb-platform18-java 12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 729,624 kB
  • sloc: java: 5,058,967; xml: 574,432; php: 78,788; javascript: 29,039; ansic: 10,278; sh: 6,386; cpp: 4,612; jsp: 3,643; sql: 1,097; makefile: 540; objc: 288; perl: 277; haskell: 93
file content (408 lines) | stat: -rwxr-xr-x 19,546 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<!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>