72
72
73
73
<a name =" class_archive" />
74
74
<subsection name =" archive" >
75
+ <p >The <code >< archive> </code > element is the root of the archiver configuration.
76
+ The following table lists all of the possible child elements.</p >
75
77
<table >
76
78
<tr >
77
79
<th >Element</th >
78
- <th >Description</th >
79
80
<th >Type</th >
80
81
<th >Since</th >
82
+ <th >Description</th >
81
83
</tr >
82
84
<tr >
83
- <td >addMavenDescriptor</td >
85
+ <td ><code >addMavenDescriptor</code ></td >
86
+ <td ><code >boolean</code ></td >
87
+ <td ></td >
84
88
<td >
85
89
Whether the created archive will contain these two Maven files:
86
90
<ul >
87
91
<li >
88
- The pom file, located in the archive in
92
+ The < code > pom.xml</ code > file, located in the archive in
89
93
<code >META-INF/maven/${groupId}/${artifactId}/pom.xml</code >
90
94
</li >
91
95
<li >
92
- A <a href =" #pom-properties-content" >pom.properties</a > file,
96
+ A <code >< a href =" #pom-properties-content" >pom.properties</a ></ code > file,
93
97
located in the archive in <code >META-INF/maven/${groupId}/${artifactId}/pom.properties</code >
94
98
</li >
95
99
</ul >
96
100
The default value is <code >true</code >.
97
101
</td >
98
- <td >boolean</td >
99
- <td ></td >
100
102
</tr >
101
103
<tr >
102
- <td >compress</td >
104
+ <td ><code >compress</code ></td >
105
+ <td ><code >boolean</code ></td >
106
+ <td ></td >
103
107
<td >
104
108
Activate compression for the archive.
105
109
The default value is <code >true</code >.
106
110
</td >
107
- <td >boolean</td >
108
- <td ></td >
109
111
</tr >
110
112
<tr >
111
- <td >forced</td >
113
+ <td ><code >forced</code ></td >
114
+ <td ><code >boolean</code ></td >
115
+ <td >2.2</td >
112
116
<td >
113
117
Whether recreating the archive is forced (default) or not. Setting
114
118
this option to <code >false</code >, means that the archiver should compare the
125
129
</p >
126
130
The default value is <code >true</code >.
127
131
</td >
128
- <td >boolean</td >
129
- <td >2.2</td >
130
132
</tr >
131
133
<tr >
132
- <td >index</td >
134
+ <td ><code >index</code ></td >
135
+ <td ><code >boolean</code ></td >
136
+ <td ></td >
133
137
<td >
134
138
<strong >Deprecated:</strong > See <a href =" https://bugs.openjdk.org/browse/JDK-8305597" >JDK-8305597</a >
135
139
<p >
140
144
The default value is <code >false</code >.
141
145
</p >
142
146
</td >
143
- <td >boolean</td >
144
- <td ></td >
145
147
</tr >
146
148
<tr >
147
- <td >pomPropertiesFile</td >
149
+ <td ><code >pomPropertiesFile</code ></td >
150
+ <td ><code >File</code ></td >
151
+ <td >2.3</td >
148
152
<td >
149
153
Use this to override the auto created
150
154
<a href =" #pom-properties-content" >pom.properties</a > file
151
155
(only if <code >addMavenDescriptor</code > is set to <code >true</code >)
152
156
</td >
153
- <td >File</td >
154
- <td >2.3</td >
155
157
</tr >
156
158
<tr >
157
- <td >manifestFile</td >
158
- <td >With this you can supply your own manifest file.</td >
159
- <td >File</td >
159
+ <td ><code >manifestFile</code ></td >
160
+ <td ><code >File</code ></td >
160
161
<td ></td >
162
+ <td >With this you can supply your own manifest file.</td >
161
163
</tr >
162
164
<tr >
163
- <td ><a href =" #class_manifest" >manifest</a ></td >
165
+ <td ><code >< a href =" #class_manifest" >manifest</a ></ code ></td >
164
166
<td ></td >
165
167
<td ></td >
166
168
<td ></td >
167
169
</tr >
168
170
<tr >
169
- <td >manifestEntries</td >
170
- <td >A list of key/value pairs to add to the manifest.</td >
171
- <td >Map</td >
171
+ <td ><code >manifestEntries</code ></td >
172
+ <td ><code >Map</code ></td >
172
173
<td ></td >
174
+ <td >A list of key/value pairs to add to the manifest.</td >
173
175
</tr >
174
176
<tr >
175
- <td ><a href =" #class_manifestSection" >manifestSections</a ></td >
177
+ <td ><code >< a href =" #class_manifestSection" >manifestSections</a ></ code ></td >
176
178
<td ></td >
177
179
<td ></td >
178
180
<td ></td >
183
185
<a name =" pom-properties-content" />
184
186
<subsection name =" pom.properties content" >
185
187
<p >
186
- The auto created <code >pom.properties</code > file will contain the
188
+ The auto created <code >META-INF/maven/${groupId}/${artifactId}/ pom.properties</code > file will contain the
187
189
following content:
188
190
</p >
189
191
<source >
@@ -194,24 +196,28 @@ version=\${project.version}</source>
194
196
195
197
<a name =" class_manifest" />
196
198
<subsection name =" manifest" >
199
+ <p >The <code >< manifest> </code > element configures main section of <code >META-INF/MANIFEST.MF</code >.
200
+ The following table lists all of the possible child elements.</p >
197
201
<table >
198
202
<tr >
199
203
<th >Element</th >
200
- <th >Description</th >
201
204
<th >Type</th >
202
205
<th >Since</th >
206
+ <th >Description</th >
203
207
</tr >
204
208
<tr >
205
- <td >addClasspath</td >
209
+ <td ><code >addClasspath</code ></td >
210
+ <td ><code >boolean</code ></td >
211
+ <td ></td >
206
212
<td >
207
213
Whether to create a <code >Class-Path</code > manifest entry.
208
214
The default value is <code >false</code >.
209
215
</td >
210
- <td >boolean</td >
211
- <td ></td >
212
216
</tr >
213
217
<tr >
214
- <td >addDefaultEntries</td >
218
+ <td ><code >addDefaultEntries</code ></td >
219
+ <td ><code >boolean</code ></td >
220
+ <td >3.4.0</td >
215
221
<td >
216
222
If the manifest will contain these entries:
217
223
<source >
@@ -224,11 +230,11 @@ Java-Version: ${project maven.compiler.release/target}</source>
224
230
<a href =" ./apidocs/org/apache/maven/archiver/BuildHelper.html" >BuildHelper.discoverJavaRelease(...)</a > API.<br />
225
231
The default value is <code >true</code >.
226
232
</td >
227
- <td >boolean</td >
228
- <td >3.4.0</td >
229
233
</tr >
230
234
<tr >
231
- <td >addDefaultImplementationEntries</td >
235
+ <td ><code >addDefaultImplementationEntries</code ></td >
236
+ <td ><code >boolean</code ></td >
237
+ <td >2.1 and 2.6</td >
232
238
<td >
233
239
If the manifest will contain these entries:
234
240
<source >
@@ -237,11 +243,11 @@ Implementation-Version: \${project.version}
237
243
Implementation-Vendor: \${project.organization.name}</source >
238
244
The default value is <code >false</code >.
239
245
</td >
240
- <td >boolean</td >
241
- <td >2.1 and 2.6</td >
242
246
</tr >
243
247
<tr >
244
- <td >addDefaultSpecificationEntries</td >
248
+ <td ><code >addDefaultSpecificationEntries</code ></td >
249
+ <td ><code >boolean</code ></td >
250
+ <td >2.1</td >
245
251
<td >
246
252
If the manifest will contain these entries:
247
253
<source >
@@ -250,11 +256,11 @@ Specification-Version: \${project.artifact.selectedVersion.majorVersion}.\${proj
250
256
Specification-Vendor: \${project.organization.name}</source >
251
257
The default value is <code >false</code >.
252
258
</td >
253
- <td >boolean</td >
254
- <td >2.1</td >
255
259
</tr >
256
260
<tr >
257
- <td >addBuildEnvironmentEntries</td >
261
+ <td ><code >addBuildEnvironmentEntries</code ></td >
262
+ <td ><code >boolean</code ></td >
263
+ <td >3.4.0</td >
258
264
<td >
259
265
If the manifest will contain these entries:
260
266
<source >
@@ -263,21 +269,21 @@ Build-Jdk: ${java.version} (${java.vendor})
263
269
Build-Os: ${os.name} (${os.version}; (${os.arch})</source >
264
270
The default value is <code >false</code >.
265
271
</td >
266
- <td >boolean</td >
267
- <td >3.4.0</td >
268
272
</tr >
269
273
<tr >
270
- <td >addExtensions</td >
274
+ <td ><code >addExtensions</code ></td >
275
+ <td ><code >boolean</code ></td >
276
+ <td ></td >
271
277
<td >
272
278
Whether to create an <code >Extension-List</code > manifest
273
279
entry.
274
280
The default value is <code >false</code >.
275
281
</td >
276
- <td >boolean</td >
277
- <td ></td >
278
282
</tr >
279
283
<tr >
280
- <td >classpathLayoutType</td >
284
+ <td ><code >classpathLayoutType</code ></td >
285
+ <td ><code >String</code ></td >
286
+ <td >2.4</td >
281
287
<td >
282
288
The type of layout to use when formatting entries in the created
283
289
<code >Class-Path</code >. Valid values are: <code >simple</code >,
@@ -288,21 +294,21 @@ Build-Os: ${os.name} (${os.version}; (${os.arch})</source>
288
294
<b >must</b > also set <code >customClasspathLayout</code >.
289
295
The default value is <code >simple</code >.
290
296
</td >
291
- <td >String</td >
292
- <td >2.4</td >
293
297
</tr >
294
298
<tr >
295
- <td >classpathPrefix</td >
299
+ <td ><code >classpathPrefix</code ></td >
300
+ <td ><code >String</code ></td >
301
+ <td ></td >
296
302
<td >
297
303
A text that will be prefixed to all your <code >Class-Path</code >
298
304
entries.
299
305
The default value is <code >"" </code >.
300
306
</td >
301
- <td >String</td >
302
- <td ></td >
303
307
</tr >
304
308
<tr >
305
- <td >customClasspathLayout</td >
309
+ <td ><code >customClasspathLayout</code ></td >
310
+ <td ><code >String</code ></td >
311
+ <td >2.4</td >
306
312
<td >
307
313
The layout expression to use when the layout type set in
308
314
<code >classpathLayoutType</code > has the value <code >custom</code >.
@@ -315,55 +321,55 @@ Build-Os: ${os.name} (${os.version}; (${os.arch})</source>
315
321
<b >Note:</b > If you specify a layout type of <code >custom</code >
316
322
you <b >must</b > set this layout expression.
317
323
</td >
318
- <td >String</td >
319
- <td >2.4</td >
320
324
</tr >
321
325
<tr >
322
- <td >mainClass</td >
323
- <td >The <code >Main-Class</code > manifest entry.</td >
324
- <td >String</td >
326
+ <td ><code >mainClass</code ></td >
327
+ <td ><code >String</code ></td >
325
328
<td ></td >
329
+ <td >The <code >Main-Class</code > manifest entry.</td >
326
330
</tr >
327
331
<tr >
328
- <td >packageName</td >
329
- <td >Package manifest entry.</td >
330
- <td >String</td >
332
+ <td ><code >packageName</code ></td >
333
+ <td ><code >String</code ></td >
331
334
<td ></td >
335
+ <td >Package manifest entry.</td >
332
336
</tr >
333
337
<tr >
334
- <td >useUniqueVersions</td >
338
+ <td ><code >useUniqueVersions</code ></td >
339
+ <td ><code >boolean</code ></td >
340
+ <td >2.4</td >
335
341
<td >
336
342
Whether to use unique timestamp Snapshot versions rather than -SNAPSHOT versions.
337
343
The default value is <code >true</code >.
338
344
</td >
339
- <td >boolean</td >
340
- <td >2.4</td >
341
345
</tr >
342
346
</table >
343
347
</subsection >
344
348
345
349
<a name =" class_manifestSection" />
346
350
<subsection name =" manifestSection" >
351
+ <p >The <code >< manifestSection> </code > element configures sections of <code >META-INF/MANIFEST.MF</code >.
352
+ The following table lists all of the possible child elements.</p >
347
353
<table >
348
354
<tr >
349
355
<th >Element</th >
350
- <th >Description</th >
351
356
<th >Type</th >
352
357
<th >Since</th >
358
+ <th >Description</th >
353
359
</tr >
354
360
<tr >
355
- <td >name</td >
361
+ <td ><code >name</code ></td >
362
+ <td ><code >String</code ></td >
363
+ <td ></td >
356
364
<td >
357
365
The name of the section.
358
366
</td >
359
- <td >String</td >
360
- <td ></td >
361
367
</tr >
362
368
<tr >
363
- <td >manifestEntries</td >
364
- <td >A list of key/value pairs to add to the manifest.</td >
365
- <td >Map</td >
369
+ <td ><code >manifestEntries</code ></td >
370
+ <td ><code >Map</code ></td >
366
371
<td ></td >
372
+ <td >A list of key/value pairs to add to the manifest.</td >
367
373
</tr >
368
374
</table >
369
375
</subsection >
0 commit comments