You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/10/03 19:39:26 UTC
(maven-acr-plugin) branch master updated (d26768c -> 845af63)
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven-acr-plugin.git
from d26768c Leave the configured excludes unchanged
new 8c20d1c Document Main-Class in the Application Client FAQ
new 1d6e8a2 Move Application Client manifest docs from FAQ to usage
new 845af63 Document Main-Class as optional per Jakarta EE
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/site/markdown/faq.md | 85 -------------------------------------------
src/site/markdown/index.md | 2 +-
src/site/markdown/usage.md.vm | 61 +++++++++++++++++++++++++++++++
src/site/site.xml | 1 -
4 files changed, 62 insertions(+), 87 deletions(-)
delete mode 100644 src/site/markdown/faq.md
(maven-acr-plugin) 03/03: Document Main-Class as optional per Jakarta EE
Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-acr-plugin.git
commit 845af6349315a9d76965c94065c661c7644694c6
Author: Abdullah <89...@users.noreply.github.com>
AuthorDate: Sun Aug 30 09:54:26 2026 +0000
Document Main-Class as optional per Jakarta EE
---
src/site/markdown/usage.md.vm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/site/markdown/usage.md.vm b/src/site/markdown/usage.md.vm
index 6554af4..a92cec9 100644
--- a/src/site/markdown/usage.md.vm
+++ b/src/site/markdown/usage.md.vm
@@ -64,8 +64,13 @@ The plugin does not invent a default `Main-Class`. If you do not set
`archive.manifest.mainClass` (and you do not supply a custom manifest that
already has one), the generated jar has no `Main-Class` entry.
-The Java EE specification still requires an Application Client to declare a
-`Main-Class`. Configure Maven Archiver:
+Jakarta EE treats a jar as an application client module if it has a
+`Main-Class` manifest attribute *or* a `META-INF/application-client.xml`
+descriptor; `Main-Class` is not required.
+See the [Jakarta EE 11 platform spec](https://jakarta.ee/specifications/platform/11/jakarta-platform-spec-11.0#a3179).
+Some runtimes (GlassFish) also accept the main class as a launch argument.
+
+To put `Main-Class` in the manifest, configure Maven Archiver:
```xml
<project>
(maven-acr-plugin) 02/03: Move Application Client manifest docs from FAQ to usage
Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-acr-plugin.git
commit 1d6e8a29aacc75f4a5ae33c87ab876f52ce4a3de
Author: Abdullah <89...@users.noreply.github.com>
AuthorDate: Sun Aug 30 00:53:53 2026 +0000
Move Application Client manifest docs from FAQ to usage
No default Main-Class unless archive.manifest.mainClass or a custom manifest sets one.
---
src/site/markdown/faq.md | 119 ------------------------------------------
src/site/markdown/index.md | 2 +-
src/site/markdown/usage.md.vm | 57 +++++++++++++++++++-
src/site/site.xml | 1 -
4 files changed, 56 insertions(+), 123 deletions(-)
diff --git a/src/site/markdown/faq.md b/src/site/markdown/faq.md
deleted file mode 100644
index 0a53cf9..0000000
--- a/src/site/markdown/faq.md
+++ /dev/null
@@ -1,119 +0,0 @@
----
-title: Frequently Asked Questions
----
-
-<!--
-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.
--->
-
-<a id="top"></a>
-
-# Frequently Asked Questions
-
-1. [How can I specify a Main-Class: entry in the manifest of an Application Client jar?](#How_can_I_specify_a_Main-Class.3A_entry_in_the_manifest_of_an_Application_Client_jar.3F)
-2. [How can I specify a Class-Path: entry in the manifest of an Application Client jar?](#How_can_I_specify_a_Class-Path.3A_entry_in_the_manifest_of_an_Application_Client_jar.3F)
-3. [Why the app-client packaging type is not recognized?](#extensions)
-
-### How can I specify a Main-Class: entry in the manifest of an Application Client jar?
-
-The Java EE specification requires an Application Client jar to declare a `Main-Class`. Configure Maven Archiver:
-
-```xml
-<project>
- ...
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-acr-plugin</artifactId>
- <version>${project.version}</version>
- ...
- <configuration>
- <archive>
- <manifest>
- <mainClass>fully.qualified.MainClass</mainClass>
- </manifest>
- </archive>
- </configuration>
- ...
- </plugin>
- </plugins>
- </build>
- ...
-</project>
-```
-
-Please see [Make The Jar Executable](/shared/maven-archiver/examples/classpath.html) for more
-information. You can also point Archiver at your own manifest file; see
-[Using a Custom Manifest File](/shared/maven-archiver/examples/manifestFile.html).
-
-### How can I specify a Class-Path: entry in the manifest of an Application Client jar?
-
-You just have to configure it:
-
-```xml
-<project>
- ...
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-acr-plugin</artifactId>
- <version>${project.version}</version>
- ...
- <configuration>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- </manifest>
- </archive>
- </configuration>
- ...
- </plugin>
- </plugins>
- </build>
- ...
-</project>
-```
-
-Please see the [Maven Archiver Reference](/shared/maven-archiver/examples/classpath.html) for more
-information about controlling the exact format of the generated class path entries.
-
-<a id="extensions"></a>
-
-### Why the app-client packaging type is not recognized?
-
-Maven does not know about that packaging type so you need to configure your project accordingly as follows:
-
-```xml
-<project>
- ...
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-acr-plugin</artifactId>
- <version>${project.version}</version>
- <extensions>true</extensions>
- ...
- </plugin>
- </plugins>
- </build>
- ...
-</project>
-```
diff --git a/src/site/markdown/index.md b/src/site/markdown/index.md
index 667f242..e677087 100644
--- a/src/site/markdown/index.md
+++ b/src/site/markdown/index.md
@@ -36,7 +36,7 @@ This plugin generates J2EE Application Client file.
General instructions on how to use the ACR Plugin can be found on the [usage page](./usage.html). Some more specific use cases are described in the examples given below.
-In case you still have questions regarding the plugin's usage, please have a look at the [FAQ](./faq.html) and feel free to contact the [user mailing list](./mailing-lists.html). The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the [mail archive](./mailing-lists.html).
+In case you still have questions regarding the plugin's usage, feel free to contact the [user mailing list](./mailing-lists.html). The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the [mail archive](./mailing-lists.html).
If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our [issue tracker](./issue-management.html). When creating a new issue, please provide a comprehensive description of your concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. Of course, patches are wel [...]
diff --git a/src/site/markdown/usage.md.vm b/src/site/markdown/usage.md.vm
index 88bbebc..6554af4 100644
--- a/src/site/markdown/usage.md.vm
+++ b/src/site/markdown/usage.md.vm
@@ -58,5 +58,58 @@ The ACR Plugin is used to package a JavaEE Application Client module. There are
mvn acr:acr
```
-The Java EE specification requires an Application Client to declare a `Main-Class` in its manifest.
-See the [FAQ](./faq.html) for how to configure that with Maven Archiver.
+## Manifest entries
+
+The plugin does not invent a default `Main-Class`. If you do not set
+`archive.manifest.mainClass` (and you do not supply a custom manifest that
+already has one), the generated jar has no `Main-Class` entry.
+
+The Java EE specification still requires an Application Client to declare a
+`Main-Class`. Configure Maven Archiver:
+
+```xml
+<project>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-acr-plugin</artifactId>
+ <version>${project.version}</version>
+ ...
+ <configuration>
+ <archive>
+ <manifest>
+ <mainClass>fully.qualified.MainClass</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ ...
+ </plugin>
+ </plugins>
+ </build>
+ ...
+</project>
+```
+
+See [Make The Jar Executable](/shared/maven-archiver/examples/classpath.html)
+and [Using a Custom Manifest File](/shared/maven-archiver/examples/manifestFile.html).
+
+To generate a `Class-Path` entry:
+
+```xml
+<configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+</configuration>
+```
+
+See the [Maven Archiver Reference](/shared/maven-archiver/examples/classpath.html)
+for the exact format of those entries.
+
+Maven does not know the `app-client` packaging type unless the plugin is
+loaded as an extension (`<extensions>true</extensions>`), as in the example
+above.
diff --git a/src/site/site.xml b/src/site/site.xml
index 04ff057..c54c06e 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -26,7 +26,6 @@ under the License.
<item name="Introduction" href="index.html"/>
<item name="Plugin Documentation" href="plugin-info.html"/>
<item name="Usage" href="usage.html"/>
- <item name="FAQ" href="faq.html"/>
<!-- According to https://issues.apache.org/jira/browse/MNGSITE-152 -->
<item name="License" href="https://www.apache.org/licenses/"/>
<item name="Download" href="download.html"/>
(maven-acr-plugin) 01/03: Document Main-Class in the Application Client FAQ
Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-acr-plugin.git
commit 8c20d1c7250e10d437a220bda79acd767c6581d0
Author: Abdullah <89...@users.noreply.github.com>
AuthorDate: Fri Aug 28 06:40:07 2026 +0000
Document Main-Class in the Application Client FAQ
The Java EE spec requires an Application Client jar to declare
Main-Class. The FAQ only covered Class-Path.
#61
---
src/site/markdown/faq.md | 38 ++++++++++++++++++++++++++++++++++++--
src/site/markdown/usage.md.vm | 3 +++
2 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/src/site/markdown/faq.md b/src/site/markdown/faq.md
index bbce590..0a53cf9 100644
--- a/src/site/markdown/faq.md
+++ b/src/site/markdown/faq.md
@@ -25,8 +25,42 @@ under the License.
# Frequently Asked Questions
-1. [How can I specify a Class-Path: entry in the manifest of an Application Client jar?](#How_can_I_specify_a_Class-Path.3A_entry_in_the_manifest_of_an_Application_Client_jar.3F)
-2. [Why the app-client packaging type is not recognized?](#extensions)
+1. [How can I specify a Main-Class: entry in the manifest of an Application Client jar?](#How_can_I_specify_a_Main-Class.3A_entry_in_the_manifest_of_an_Application_Client_jar.3F)
+2. [How can I specify a Class-Path: entry in the manifest of an Application Client jar?](#How_can_I_specify_a_Class-Path.3A_entry_in_the_manifest_of_an_Application_Client_jar.3F)
+3. [Why the app-client packaging type is not recognized?](#extensions)
+
+### How can I specify a Main-Class: entry in the manifest of an Application Client jar?
+
+The Java EE specification requires an Application Client jar to declare a `Main-Class`. Configure Maven Archiver:
+
+```xml
+<project>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-acr-plugin</artifactId>
+ <version>${project.version}</version>
+ ...
+ <configuration>
+ <archive>
+ <manifest>
+ <mainClass>fully.qualified.MainClass</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ ...
+ </plugin>
+ </plugins>
+ </build>
+ ...
+</project>
+```
+
+Please see [Make The Jar Executable](/shared/maven-archiver/examples/classpath.html) for more
+information. You can also point Archiver at your own manifest file; see
+[Using a Custom Manifest File](/shared/maven-archiver/examples/manifestFile.html).
### How can I specify a Class-Path: entry in the manifest of an Application Client jar?
diff --git a/src/site/markdown/usage.md.vm b/src/site/markdown/usage.md.vm
index a21308e..88bbebc 100644
--- a/src/site/markdown/usage.md.vm
+++ b/src/site/markdown/usage.md.vm
@@ -57,3 +57,6 @@ The ACR Plugin is used to package a JavaEE Application Client module. There are
```shell
mvn acr:acr
```
+
+The Java EE specification requires an Application Client to declare a `Main-Class` in its manifest.
+See the [FAQ](./faq.html) for how to configure that with Maven Archiver.