[Git][java-team/maven-archiver][master] 15 commits: New upstream version 3.6.3
Emmanuel Bourg (@ebourg)
gitlab at salsa.debian.org
Wed Oct 28 11:30:52 GMT 2026
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / maven-archiver
Commits:
fa020aa5 by Emmanuel Bourg at 2024-11-04T08:55:46+01:00
New upstream version 3.6.3
- - - - -
31d2faf4 by Emmanuel Bourg at 2026-10-28T01:52:40+01:00
Converted debian/watch to the version 5 format
- - - - -
1b24e8b6 by Emmanuel Bourg at 2026-10-28T01:52:53+01:00
New upstream version 3.6.4
- - - - -
622471d0 by Emmanuel Bourg at 2026-10-28T01:52:54+01:00
New upstream version 3.6.5
- - - - -
51f9c6d2 by Emmanuel Bourg at 2026-10-28T01:52:54+01:00
New upstream version 3.6.6
- - - - -
e885c2cc by Emmanuel Bourg at 2026-10-28T01:53:01+01:00
Update upstream source from tag 'upstream/3.6.6'
Update to upstream version '3.6.6'
with Debian dir 62023629df57842329bb758357f7cff4486ed07c
- - - - -
84707691 by Emmanuel Bourg at 2026-10-28T01:53:19+01:00
Refreshed the patch
- - - - -
119ffe5d by Emmanuel Bourg at 2026-10-28T01:53:19+01:00
New dependency on libplexus-xml-java
- - - - -
5a35355e by Emmanuel Bourg at 2026-10-28T10:12:54+01:00
Depend on libmaven-parent-java to resolve the inherited dependencies
- - - - -
81f74925 by Emmanuel Bourg at 2026-10-28T10:12:54+01:00
Standards-Version updated to 4.7.4
- - - - -
ca64d0fd by Emmanuel Bourg at 2026-10-28T10:12:54+01:00
Removed the Priority field
- - - - -
a4ad5a69 by Emmanuel Bourg at 2026-10-28T10:12:55+01:00
Removed Torsten Werner from the Uploaders list (Closes: #1139083)
- - - - -
bdb54ecf by Emmanuel Bourg at 2026-10-28T10:12:55+01:00
Removed the build dependency on libmaven-shared-utils-java
- - - - -
b0ea8d1d by Emmanuel Bourg at 2026-10-28T10:12:55+01:00
Marked the bug #955290 as closed in 3.6.0-1
- - - - -
1f410be3 by Emmanuel Bourg at 2026-10-28T10:12:55+01:00
Upload to unstable
- - - - -
27 changed files:
- .github/pull_request_template.md
- .github/workflows/maven-verify.yml
- + .github/workflows/pr-automation.yml
- + .github/workflows/release-drafter.yml
- README.md
- debian/changelog
- debian/control
- debian/libmaven-archiver-java.poms
- debian/maven.rules
- debian/patches/02-use-changelog-date-as-pom.properties-timestamp.patch
- debian/watch
- pom.xml
- + src/main/java/org/apache/maven/archiver/BuildHelper.java
- src/main/java/org/apache/maven/archiver/MavenArchiver.java
- src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
- − src/site/apt/examples/manifestEntries.apt
- − src/site/apt/examples/manifestFile.apt
- src/site/apt/examples/classpath.apt → src/site/markdown/examples/classpath.md
- src/site/apt/examples/manifest.apt → src/site/markdown/examples/manifest.md
- + src/site/markdown/examples/manifestEntries.md
- + src/site/markdown/examples/manifestFile.md
- src/site/apt/examples/manifestSections.apt → src/site/markdown/examples/manifestSections.md
- src/site/site.xml
- src/site/xdoc/index.xml.vm
- src/test/java/org/apache/maven/archiver/ManifestConfigurationTest.java
- src/test/java/org/apache/maven/archiver/MavenArchiveConfigurationTest.java
- src/test/java/org/apache/maven/archiver/MavenArchiverTest.java
Changes:
=====================================
.github/pull_request_template.md
=====================================
@@ -1,29 +1,23 @@
-Following this checklist to help us incorporate your
+Following this checklist to help us incorporate your
contribution quickly and easily:
- - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/MSHARED) filed
- for the change (usually before you start working on it). Trivial changes like typos do not
- require a JIRA issue. Your pull request should address just this issue, without
- pulling in other changes.
- - [ ] Each commit in the pull request should have a meaningful subject line and body.
- - [ ] Format the pull request title like `[MSHARED-XXX] - Fixes bug in ApproximateQuantiles`,
- where you replace `MSHARED-XXX` with the appropriate JIRA issue. Best practice
- is to use the JIRA issue title in the pull request title and in the first line of the
- commit message.
- - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- - [ ] Run `mvn clean verify` to make sure basic checks pass. A more thorough check will
- be performed on your pull request automatically.
- - [ ] You have run the integration tests successfully (`mvn -Prun-its clean verify`).
+- [ ] Your pull request should address just one issue, without pulling in other changes.
+- [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
+- [ ] Each commit in the pull request should have a meaningful subject line and body.
+ Note that commits might be squashed by a maintainer on merge.
+- [ ] Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
+ This may not always be possible but is a best-practice.
+- [ ] Run `mvn verify` to make sure basic checks pass.
+ A more thorough check will be performed on your pull request automatically.
+- [ ] You have run the integration tests successfully (`mvn -Prun-its verify`).
If your pull request is about ~20 lines of code you don't need to sign an
[Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure
please ask on the developers list.
-To make clear that you license your contribution under
+To make clear that you license your contribution under
the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
you have to acknowledge this by using the following check-box.
- - [ ] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
-
- - [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
-
+- [ ] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
+- [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
=====================================
.github/workflows/maven-verify.yml
=====================================
@@ -25,3 +25,8 @@ jobs:
build:
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml at v4
+ with:
+ maven4-enabled: true
+ # default -Prun-its fails with mvn4 - profile not found
+ ff-goal: 'verify'
+ verify-goal: 'verify'
=====================================
.github/workflows/pr-automation.yml
=====================================
@@ -0,0 +1,27 @@
+# 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.
+
+name: PR Automation
+on:
+ pull_request_target:
+ types:
+ - closed
+
+jobs:
+ pr-automation:
+ name: PR Automation
+ uses: apache/maven-gh-actions-shared/.github/workflows/pr-automation.yml at v4
=====================================
.github/workflows/release-drafter.yml
=====================================
@@ -0,0 +1,29 @@
+# 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.
+
+name: Release Drafter
+on:
+ push:
+ branches:
+ - maven-archiver-3.x
+ workflow_dispatch:
+
+jobs:
+ update_release_draft:
+ uses: apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml at v4
+ with:
+ config-name: 'release-drafter-3.x.yml'
=====================================
README.md
=====================================
@@ -17,15 +17,18 @@
Contributing to [Apache Maven Archiver](https://maven.apache.org/shared/maven-archiver/)
======================
-[][jira]
-[][license]
-[](https://search.maven.org/artifact/org.apache.maven/maven-archiver)
-[](https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/maven/shared/archiver/README.md)
+[][license] [](https://search.maven.org/artifact/org.apache.maven/maven-archiver)
+[](https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/maven/shared/archiver/README.md)
+[][build-3]
+[][test-results-3]
+
+Maven 4: [master](https://github.com/apache/maven-archiver/tree/master) [](https://search.maven.org/artifact/org.apache.maven.shared/maven-archiver)
+[](https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/maven/shared/maven-archiver/README.md)
[][build]
[][test-results]
-You have found a bug or you have an idea for a cool new feature? Contributing
+You have found a bug, or you have an idea for a cool new feature? Contributing
code is a great way to give something back to the open source community. Before
you dig right into the code, there are a few guidelines that we need
contributors to follow so that we can have a chance of keeping on top of
@@ -34,7 +37,6 @@ things.
Getting Started
---------------
-+ Make sure you have a [JIRA account](https://issues.apache.org/jira/).
+ Make sure you have a [GitHub account](https://github.com/signup/free).
+ If you're planning to implement a new feature, it makes sense to discuss your changes
on the [dev list][ml-list] first.
@@ -60,41 +62,29 @@ There are some guidelines which will make applying PRs easier for us:
+ Create minimal diffs - disable on save actions like reformat source code or organize imports.
If you feel the source code should be reformatted, create a separate PR for this change.
+ Check for unnecessary whitespace with `git diff --check` before committing.
-+ Make sure your commit messages are in the proper format. Your commit message should contain the key of the JIRA issue.
-```
-[MSHARED-XXX] - Subject of the JIRA Ticket
- Optional supplemental description.
-```
+ Make sure you have added the necessary tests (JUnit/IT) for your changes.
-+ Run all the tests with `mvn -Prun-its verify` to assure nothing else was accidentally broken.
++ Run all the tests with `mvn verify` to assure nothing else was accidentally broken.
+ Submit a pull request to the repository in the Apache organization.
-+ Update your JIRA ticket and include a link to the pull request in the ticket.
If you plan to contribute on a regular basis, please consider filing a [contributor license agreement][cla].
-Making Trivial Changes
-----------------------
-
-For changes of a trivial nature to comments and documentation, it is not always
-necessary to create a new ticket in JIRA. In this case, it is appropriate to
-start the first line of a commit with '(doc)' instead of a ticket number.
-
Additional Resources
--------------------
+ [Contributing patches](https://maven.apache.org/guides/development/guide-maven-development.html#Creating_and_submitting_a_patch)
-+ [Apache Maven Shared Components project page][jira]
+ [Contributor License Agreement][cla]
+ [General GitHub documentation](https://help.github.com/)
+ [GitHub pull request documentation](https://help.github.com/send-pull-requests/)
-+ [Apache Maven Twitter Account](https://twitter.com/ASFMavenProject)
-+ #Maven IRC channel on freenode.org
++ [Apache Maven X Account](https://x.com/ASFMavenProject)
++ [Apache Maven Bluesky Account](https://bsky.app/profile/maven.apache.org)
++ [Apache Maven Mastodon Account](https://mastodon.social/deck/@ASFMavenProject@fosstodon.org)
-[jira]: https://issues.apache.org/jira/projects/MSHARED/
[license]: https://www.apache.org/licenses/LICENSE-2.0
[ml-list]: https://maven.apache.org/mailing-lists.html
[code-style]: https://maven.apache.org/developers/conventions/code.html
[cla]: https://www.apache.org/licenses/#clas
[maven-wiki]: https://cwiki.apache.org/confluence/display/MAVEN/Index
[test-results]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-archiver/job/master/lastCompletedBuild/testReport/
+[test-results-3]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-archiver/job/maven-archiver-3.x/lastCompletedBuild/testReport/
[build]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-archiver/job/master/
+[build-3]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-archiver/job/maven-archiver-3.x/
=====================================
debian/changelog
=====================================
@@ -1,3 +1,18 @@
+maven-archiver (3.6.6-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream release
+ - Refreshed the patch
+ - New dependency on libplexus-xml-java
+ - Depend on libmaven-parent-java to resolve the inherited dependencies
+ * Removed the build dependency on libmaven-shared-utils-java
+ * Standards-Version updated to 4.7.4
+ * Removed the Priority field
+ * Removed Torsten Werner from the Uploaders list (Closes: #1139083)
+ * Converted debian/watch to the version 5 format
+
+ -- Emmanuel Bourg <ebourg at apache.org> Wed, 28 Oct 2026 09:50:32 +0100
+
maven-archiver (3.6.2-1) unstable; urgency=medium
* Team upload.
@@ -11,7 +26,7 @@ maven-archiver (3.6.2-1) unstable; urgency=medium
maven-archiver (3.6.0-1) unstable; urgency=medium
* Team upload.
- * New upstream release
+ * New upstream release (Closes: #955290)
- Refreshed the patches
- Depend on libplexus-archiver-java (>= 4.3)
- Depend on libassertj-core-java (>= 3.14)
=====================================
debian/control
=====================================
@@ -1,23 +1,25 @@
Source: maven-archiver
Section: java
-Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders:
- Torsten Werner <twerner at debian.org>,
Ludovic Claude <ludovic.claude at laposte.net>
Build-Depends:
debhelper-compat (= 13),
default-jdk,
junit5 (>= 5.9),
libassertj-core-java (>= 3.14),
- libmaven-shared-utils-java,
+ libeclipse-sisu-maven-plugin-java,
+ libmaven-parent-java,
+ libmaven-plugin-tools-java,
libmaven3-core-java,
libmockito-java,
+ libmodello-maven-plugin-java,
libplexus-archiver-java (>= 4.3),
libplexus-interpolation-java,
libplexus-utils2-java,
+ libplexus-xml-java,
maven-debian-helper (>= 2.2)
-Standards-Version: 4.7.0
+Standards-Version: 4.7.4
Vcs-Git: https://salsa.debian.org/java-team/maven-archiver.git
Vcs-Browser: https://salsa.debian.org/java-team/maven-archiver
Homepage: http://maven.apache.org/shared/maven-archiver/
=====================================
debian/libmaven-archiver-java.poms
=====================================
@@ -25,4 +25,4 @@
# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
# Empty by default. [mh_install]
#
-pom.xml --no-parent --has-package-version
+pom.xml --has-package-version
=====================================
debian/maven.rules
=====================================
@@ -21,3 +21,4 @@ org.apache.maven maven-core * s/.*/3.x/ * *
org.apache.maven maven-model * s/.*/3.x/ * *
org.codehaus.plexus plexus-utils * s/.*/2.x/ * *
+org.apache.maven.shared maven-shared-components pom s/.*/debian/ * *
=====================================
debian/patches/02-use-changelog-date-as-pom.properties-timestamp.patch
=====================================
@@ -4,7 +4,7 @@ Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/775010
--- a/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
+++ b/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
-@@ -144,7 +144,8 @@
+@@ -124,7 +124,8 @@
if (customPomPropertiesFile != null) {
p = loadPropertiesFile(customPomPropertiesFile);
} else {
=====================================
debian/watch
=====================================
@@ -1,3 +1,5 @@
-version=4
-opts="repack,compression=xz,uversionmangle=s/-(alpha|beta|M)-/~$1/" \
- https://github.com/apache/maven-archiver/tags .*/maven-archiver-([\d\.]+).tar.gz
+Version: 5
+Mode: git
+Source: https://github.com/apache/maven-archiver.git
+Matching-Pattern: refs/tags/maven-archiver-([\d.]+)
+Compression: xz
=====================================
pom.xml
=====================================
@@ -22,26 +22,26 @@
<parent>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-components</artifactId>
- <version>41</version>
+ <version>45</version>
<relativePath />
</parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven-archiver</artifactId>
- <version>3.6.2</version>
+ <version>3.6.6</version>
<name>Apache Maven Archiver</name>
<description>Provides utility methods for creating JARs and other archive files from a Maven project.</description>
<scm>
- <connection>scm:git:https://gitbox.apache.org/repos/asf/maven-archiver.git</connection>
- <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-archiver.git</developerConnection>
- <tag>maven-archiver-3.6.2</tag>
+ <connection>scm:git:https://github.com/apache/maven-archiver.git</connection>
+ <developerConnection>scm:git:https://github.com/apache/maven-archiver.git</developerConnection>
+ <tag>maven-archiver-3.6.6</tag>
<url>https://github.com/apache/maven-archiver/tree/${project.scm.tag}</url>
</scm>
<issueManagement>
- <system>jira</system>
- <url>https://issues.apache.org/jira/issues/?jql=project%3DMSHARED+AND+component%3Dmaven-archiver</url>
+ <system>GitHub Issues</system>
+ <url>https://github.com/apache/maven-archiver/issues</url>
</issueManagement>
<ciManagement>
<system>Jenkins</system>
@@ -55,23 +55,13 @@
</distributionManagement>
<properties>
- <mavenVersion>3.2.5</mavenVersion>
+ <mavenVersion>3.9.12</mavenVersion>
<javaVersion>8</javaVersion>
- <project.build.outputTimestamp>2024-03-24T22:30:44Z</project.build.outputTimestamp>
+ <version.plexus-utils>3.6.0</version.plexus-utils>
+ <version.plexus-xml>3.0.2</version.plexus-xml>
+ <project.build.outputTimestamp>2025-12-20T18:24:58Z</project.build.outputTimestamp>
</properties>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.junit</groupId>
- <artifactId>junit-bom</artifactId>
- <version>5.10.2</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
<dependencies>
<!--
Apache Maven dependencies
@@ -82,18 +72,34 @@
<version>${mavenVersion}</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>${mavenVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ <version>${mavenVersion}</version>
+ <scope>provided</scope>
+ </dependency>
<!--
Plexus dependencies
-->
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
- <version>4.9.2</version>
+ <version>4.10.4</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-interpolation</artifactId>
- <version>1.27</version>
+ <version>1.29</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-xml</artifactId>
</dependency>
<!--
Test dependencies
@@ -111,7 +117,7 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
- <version>3.25.3</version>
+ <version>3.27.6</version>
<scope>test</scope>
</dependency>
<dependency>
@@ -127,4 +133,22 @@
<scope>test</scope>
</dependency>
</dependencies>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <redirectTestOutputToFile>true</redirectTestOutputToFile>
+ <excludedEnvironmentVariables>
+ <excludedEnvironmentVariable>SOURCE_DATE_EPOCH</excludedEnvironmentVariable>
+ </excludedEnvironmentVariables>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
</project>
=====================================
src/main/java/org/apache/maven/archiver/BuildHelper.java
=====================================
@@ -0,0 +1,133 @@
+/*
+ * 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.
+ */
+package org.apache.maven.archiver;
+
+import java.util.Arrays;
+import java.util.Map;
+
+import org.apache.maven.model.Plugin;
+import org.apache.maven.model.PluginContainer;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.util.xml.Xpp3Dom;
+
+/**
+ * Helper to detect info about build info in a MavenProject, as configured in plugins.
+ *
+ * @since 3.6.5
+ */
+public class BuildHelper {
+ /**
+ * Tries to determine the target Java release from the following sources (until one is found)
+ * <ol>
+ * <li>use {@code release} configuration of {@code org.apache.maven.plugins:maven-compiler-plugin}</li>
+ * <li>use {@code maven.compiler.release<} property</li>
+ * <li>use {@code target} configuration of {@code org.apache.maven.plugins:maven-compiler-plugin}</li>
+ * <li>use {@code maven.compiler.target} property</li>
+ * </ol>
+ *
+ * @param project not null
+ * @return the Java release version configured in the project, or null if not configured
+ */
+ public static String discoverJavaRelease(MavenProject project) {
+ Plugin compiler = getCompilerPlugin(project);
+
+ String jdk = getPluginParameter(project, compiler, "release", "maven.compiler.release");
+
+ if (jdk == null) {
+ jdk = getPluginParameter(project, compiler, "target", "maven.compiler.target");
+ }
+
+ return normalizeJavaVersion(jdk);
+ }
+
+ /**
+ * Normalize Java version, for versions 5 to 8 where there is a 1.x alias.
+ *
+ * @param jdk can be null
+ * @return normalized version if an alias was used
+ */
+ public static String normalizeJavaVersion(String jdk) {
+ if (jdk != null
+ && jdk.length() == 3
+ && Arrays.asList("1.5", "1.6", "1.7", "1.8").contains(jdk)) {
+ jdk = jdk.substring(2);
+ }
+ return jdk;
+ }
+
+ public static Plugin getCompilerPlugin(MavenProject project) {
+ return getPlugin(project, "org.apache.maven.plugins:maven-compiler-plugin");
+ }
+
+ /**
+ * Get plugin from project based on coordinates {@code groupId:artifactId}.
+ *
+ * @param project not null
+ * @param pluginGa {@code groupId:artifactId}
+ * @return the plugin from build or pluginManagement, if available in project
+ */
+ public static Plugin getPlugin(MavenProject project, String pluginGa) {
+ Plugin plugin = getPlugin(project.getBuild(), pluginGa);
+ if (plugin == null) {
+ plugin = getPlugin(project.getPluginManagement(), pluginGa);
+ }
+ return plugin;
+ }
+
+ /**
+ * Get plugin parameter value if configured in current project.
+ *
+ * @param project not null
+ * @param plugin can be null
+ * @param parameter the parameter name when configured in plugin's configuration
+ * @param defaultValueProperty the property name when default value is used for the plugin parameter
+ * @return the value, or null if not configured at all, but using internal default from plugin.
+ */
+ public static String getPluginParameter(
+ MavenProject project, Plugin plugin, String parameter, String defaultValueProperty) {
+ String value = getPluginParameter(plugin, parameter);
+ if (value == null) {
+ value = project.getProperties().getProperty(defaultValueProperty);
+ }
+ return value;
+ }
+
+ private static Plugin getPlugin(PluginContainer container, String pluginGa) {
+ if (container == null) {
+ return null;
+ }
+ Map<String, Plugin> pluginsAsMap = container.getPluginsAsMap();
+ return pluginsAsMap.get(pluginGa);
+ }
+
+ private static String getPluginParameter(Plugin plugin, String parameter) {
+ if (plugin != null) {
+ Xpp3Dom pluginConf = (Xpp3Dom) plugin.getConfiguration();
+
+ if (pluginConf != null) {
+ Xpp3Dom target = pluginConf.getChild(parameter);
+
+ if (target != null) {
+ return target.getValue();
+ }
+ }
+ }
+ return null;
+ }
+}
=====================================
src/main/java/org/apache/maven/archiver/MavenArchiver.java
=====================================
@@ -66,7 +66,6 @@ import static org.apache.maven.archiver.ManifestConfiguration.CLASSPATH_LAYOUT_T
*
* @author <a href="evenisse at apache.org">Emmanuel Venisse</a>
* @author kama
- * @version $Id: $Id
*/
public class MavenArchiver {
@@ -98,10 +97,6 @@ public class MavenArchiver {
"${artifact.groupIdPath}/${artifact.artifactId}/" + "${artifact.baseVersion}/${artifact.artifactId}-"
+ "${artifact.baseVersion}${dashClassifier?}.${artifact.extension}";
- private static final Instant DATE_MIN = Instant.parse("1980-01-01T00:00:02Z");
-
- private static final Instant DATE_MAX = Instant.parse("2099-12-31T23:59:59Z");
-
private static final List<String> ARTIFACT_EXPRESSION_PREFIXES;
static {
@@ -253,7 +248,7 @@ public class MavenArchiver {
Manifest m = new Manifest();
if (config.isAddDefaultEntries()) {
- handleDefaultEntries(m, entries);
+ handleDefaultEntries(project, m, entries);
}
if (config.isAddBuildEnvironmentEntries()) {
@@ -584,24 +579,10 @@ public class MavenArchiver {
// Configure the jar
archiver.addConfiguredManifest(manifest);
-
archiver.setCompress(archiveConfiguration.isCompress());
-
archiver.setRecompressAddedZips(archiveConfiguration.isRecompressAddedZips());
-
- archiver.setIndex(archiveConfiguration.isIndex());
-
archiver.setDestFile(archiveFile);
- // make the archiver index the jars on the classpath, if we are adding that to the manifest
- if (archiveConfiguration.getManifest().isAddClasspath()) {
- List<String> artifacts = project.getRuntimeClasspathElements();
- for (String artifact : artifacts) {
- File f = new File(artifact);
- archiver.addConfiguredIndexJars(f);
- }
- }
-
archiver.setForced(forced);
if (!archiveConfiguration.isForced() && archiver.isSupportingForced()) {
// TODO Should issue a warning here, but how do we get a logger?
@@ -611,7 +592,9 @@ public class MavenArchiver {
String automaticModuleName = manifest.getMainSection().getAttributeValue("Automatic-Module-Name");
if (automaticModuleName != null) {
- if (!isValidModuleName(automaticModuleName)) {
+ if (automaticModuleName.isEmpty()) {
+ manifest.getMainSection().removeAttribute("Automatic-Module-Name");
+ } else if (!isValidModuleName(automaticModuleName)) {
throw new ManifestException("Invalid automatic module name: '" + automaticModuleName + "'");
}
}
@@ -620,12 +603,17 @@ public class MavenArchiver {
archiver.createArchive();
}
- private void handleDefaultEntries(Manifest m, Map<String, String> entries) throws ManifestException {
+ private void handleDefaultEntries(MavenProject project, Manifest m, Map<String, String> entries)
+ throws ManifestException {
String createdBy = this.createdBy;
if (createdBy == null) {
createdBy = createdBy(CREATED_BY, "org.apache.maven", "maven-archiver");
}
addManifestAttribute(m, entries, "Created-By", createdBy);
+ String javaVersion = BuildHelper.discoverJavaRelease(project);
+ if (javaVersion != null) {
+ addManifestAttribute(m, entries, "Java-Version", javaVersion);
+ }
if (buildJdkSpecDefaultEntry) {
addManifestAttribute(m, entries, "Build-Jdk-Spec", System.getProperty("java.specification.version"));
}
@@ -727,8 +715,7 @@ public class MavenArchiver {
* @return the parsed timestamp, may be <code>null</code> if <code>null</code> input or input contains only 1
* character
* @since 3.5.0
- * @throws IllegalArgumentException if the outputTimestamp is neither ISO 8601 nor an integer, or it's not within
- * the valid range 1980-01-01T00:00:02Z to 2099-12-31T23:59:59Z
+ * @throws IllegalArgumentException if the outputTimestamp is neither ISO 8601 nor an integer
* @deprecated Use {@link #parseBuildOutputTimestamp(String)} instead.
*/
@Deprecated
@@ -757,28 +744,32 @@ public class MavenArchiver {
* <p>Either as {@link java.time.format.DateTimeFormatter#ISO_OFFSET_DATE_TIME} or as a number representing seconds
* since the epoch (like <a href="https://reproducible-builds.org/docs/source-date-epoch/">SOURCE_DATE_EPOCH</a>).
*
+ * <p>Since 3.6.4, if not configured or disabled, the {@code SOURCE_DATE_EPOCH} environment variable is used as
+ * a fallback value, to ease forcing Reproducible Build externally when the build has not enabled it natively in POM.
+ *
* @param outputTimestamp the value of {@code ${project.build.outputTimestamp}} (may be {@code null})
* @return the parsed timestamp as an {@code Optional<Instant>}, {@code empty} if input is {@code null} or input
* contains only 1 character (not a number)
* @since 3.6.0
- * @throws IllegalArgumentException if the outputTimestamp is neither ISO 8601 nor an integer, or it's not within
- * the valid range 1980-01-01T00:00:02Z to 2099-12-31T23:59:59Z
+ * @throws IllegalArgumentException if the outputTimestamp is neither ISO 8601 nor an integer.
+ * @see <a href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318">Maven Wiki "Reproducible/Verifiable
+ * Builds"</a>
*/
public static Optional<Instant> parseBuildOutputTimestamp(String outputTimestamp) {
- // Fail-fast on nulls
- if (outputTimestamp == null) {
- return Optional.empty();
+ // Fail fast on null and no timestamp configured (1 character configuration is useful to override
+ // a full value during pom inheritance)
+ if (outputTimestamp == null || (outputTimestamp.length() < 2 && !isNumeric(outputTimestamp))) {
+ // Reproducible Builds not configured or disabled => fallback to SOURCE_DATE_EPOCH env
+ outputTimestamp = System.getenv("SOURCE_DATE_EPOCH");
+ if (outputTimestamp == null) {
+ return Optional.empty();
+ }
}
// Number representing seconds since the epoch
if (isNumeric(outputTimestamp)) {
- return Optional.of(Instant.ofEpochSecond(Long.parseLong(outputTimestamp)));
- }
-
- // no timestamp configured (1 character configuration is useful to override a full value during pom
- // inheritance)
- if (outputTimestamp.length() < 2) {
- return Optional.empty();
+ final Instant date = Instant.ofEpochSecond(Long.parseLong(outputTimestamp));
+ return Optional.of(date);
}
try {
@@ -787,11 +778,6 @@ public class MavenArchiver {
.withOffsetSameInstant(ZoneOffset.UTC)
.truncatedTo(ChronoUnit.SECONDS)
.toInstant();
-
- if (date.isBefore(DATE_MIN) || date.isAfter(DATE_MAX)) {
- throw new IllegalArgumentException(
- "'" + date + "' is not within the valid range " + DATE_MIN + " to " + DATE_MAX);
- }
return Optional.of(date);
} catch (DateTimeParseException pe) {
throw new IllegalArgumentException(
@@ -800,7 +786,6 @@ public class MavenArchiver {
}
private static boolean isNumeric(String str) {
-
if (str.isEmpty()) {
return false;
}
=====================================
src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
=====================================
@@ -18,22 +18,22 @@
*/
package org.apache.maven.archiver;
-import java.io.BufferedReader;
+import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
-import java.io.PrintWriter;
-import java.io.StringReader;
-import java.io.StringWriter;
+import java.io.Writer;
+import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
+import java.nio.file.Path;
+import java.util.Arrays;
import java.util.Properties;
+import java.util.stream.Collectors;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.archiver.Archiver;
+import org.codehaus.plexus.util.io.CachingWriter;
/**
* This class is responsible for creating the <code>pom.properties</code> file
@@ -51,44 +51,25 @@ public class PomPropertiesUtil {
}
}
- private boolean sameContents(Properties props, File file) throws IOException {
- if (!file.isFile()) {
- return false;
+ private void createPropertiesFile(Properties properties, Path outputFile) throws IOException {
+ Path outputDir = outputFile.getParent();
+ if (outputDir != null) {
+ Files.createDirectories(outputDir);
}
-
- Properties fileProps = loadPropertiesFile(file);
- return fileProps.equals(props);
- }
-
- private void createPropertiesFile(Properties properties, File outputFile, boolean forceCreation)
- throws IOException {
- File outputDir = outputFile.getParentFile();
- if (outputDir != null && !outputDir.isDirectory() && !outputDir.mkdirs()) {
- throw new IOException("Failed to create directory: " + outputDir);
- }
- if (!forceCreation && sameContents(properties, outputFile)) {
- return;
- }
-
- try (PrintWriter pw = new PrintWriter(outputFile, "ISO-8859-1");
- StringWriter sw = new StringWriter()) {
-
- properties.store(sw, null);
-
- List<String> lines = new ArrayList<>();
- try (BufferedReader r = new BufferedReader(new StringReader(sw.toString()))) {
- String line;
- while ((line = r.readLine()) != null) {
- if (!line.startsWith("#")) {
- lines.add(line);
- }
- }
- }
-
- Collections.sort(lines);
- for (String l : lines) {
- pw.println(l);
- }
+ // For reproducible builds, sort the properties and drop comments.
+ // The java.util.Properties class doesn't guarantee order so we have
+ // to write the file using a Writer.
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ properties.store(baos, null);
+ // The encoding can be either UTF-8 or ISO-8859-1, as any non ascii character
+ // is transformed into a \\uxxxx sequence anyway
+ String output = Arrays.stream(
+ baos.toString(StandardCharsets.ISO_8859_1.name()).split("\\r?\\n"))
+ .filter(line -> !line.startsWith("#"))
+ .sorted()
+ .collect(Collectors.joining("\n", "", "\n"));
+ try (Writer writer = new CachingWriter(outputFile, StandardCharsets.ISO_8859_1)) {
+ writer.write(output);
}
}
@@ -100,7 +81,6 @@ public class PomPropertiesUtil {
* @param archiver {@link org.codehaus.plexus.archiver.Archiver}
* @param customPomPropertiesFile optional custom pom properties file
* @param pomPropertiesFile The pom properties file.
- * @param forceCreation force creation true/false
* @throws org.codehaus.plexus.archiver.ArchiverException archiver exception.
* @throws java.io.IOException IO exception.
* @deprecated please use {@link #createPomProperties(MavenProject, Archiver, File, File, boolean)}
@@ -153,7 +133,7 @@ public class PomPropertiesUtil {
p.setProperty("version", version);
- createPropertiesFile(p, pomPropertiesFile, forceCreation);
+ createPropertiesFile(p, pomPropertiesFile.toPath());
archiver.addFile(pomPropertiesFile, "META-INF/maven/" + groupId + "/" + artifactId + "/pom.properties");
}
=====================================
src/site/apt/examples/manifestEntries.apt deleted
=====================================
@@ -1,79 +0,0 @@
- ------
- Manifest Entries
- ------
- Dennis Lundberg
- ------
- 2008-01-01
- ------
-
- ~~ 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.
-
-Manifest Entries
-
- If you find that the other configuration options for Maven Archiver are not
- enough for manipulating the manifest, you can add your own entries to it.
- This is done with the <<<\<manifestEntries\>>>> configuration element.
-
- In this example we'll add some entries to the manifest by specifying what we'd
- like in the <<<\<configuration\>>>>/<<<\<archive\>>>> element of
- maven-jar-plugin.
-
- <<Note:>> As with all the examples here, this configuration can be used in all
- plugins that use Maven Archiver, not just maven-jar-plugin as in this example.
-
-+-----+
-<project>
- <url>http://some.url.org/</url>
- ...
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- ...
- <configuration>
- <archive>
- <manifestEntries>
- <mode>development</mode>
- <url>${project.url}</url>
- </manifestEntries>
- </archive>
- </configuration>
- ...
- </plugin>
- </plugins>
- </build>
- ...
-</project>
-+-----+
-
- As you see above you can use literal values or you can have values from the
- POM interpolated into literals or simply use straight POM expressions. So this
- is what your resultant manifest will look like inside the created jar:
-
-+-----+
-Manifest-Version: 1.0
-Created-By: Apache Maven ${maven.version}
-Build-Jdk: ${java.version}
-mode: development
-url: http://some.url.org/
-+-----+
-
- <<Note:>> If your pom.xml does not have the <<<\<url\>>>> element, referenced
- through interpolation, then the entry <<<url>>> will <<not>> be in the
- manifest.
=====================================
src/site/apt/examples/manifestFile.apt deleted
=====================================
@@ -1,61 +0,0 @@
- ------
- Use Your Own Manifest File
- ------
- Dennis Lundberg
- ------
- 2008-01-01
- ------
-
- ~~ 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.
-
-Use Your Own Manifest File
-
- By default, Maven Archiver creates the manifest file for you. It is
- sometimes useful to use your own hand crafted manifest file. Say that you
- want to use the manifest file <<<src/main/resources/META-INF/MANIFEST.MF>>>.
- This is done with the <<<\<manifestFile\>>>> configuration element by setting
- the value to the location of your file.
-
- The content of your own manifest file will be merged with the entries
- created by Maven Archiver. If you specify an entry in your own manifest file
- it will override the value created by Maven Archiver.
-
- <<Note:>> As with all the examples here, this configuration can be used in all
- plugins that use Maven Archiver, not just maven-jar-plugin as in this example.
-
-+-----+
-<project>
- ...
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- ...
- <configuration>
- <archive>
- <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- ...
- </plugin>
- </plugins>
- </build>
- ...
-</project>
-+-----+
=====================================
src/site/apt/examples/classpath.apt → src/site/markdown/examples/classpath.md
=====================================
@@ -1,54 +1,46 @@
- ------
- Set Up The Classpath
- ------
- Dennis Lundberg
- ------
- 2008-01-01
- ------
-
- ~~ 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.
-
-Set Up The Classpath
-
-* {Contents}
-
- * {{{Add}Add A Class-Path Entry To The Manifest}}
-
- * {{{Make}Make The Jar Executable}}
-
- * {{{Prefix}Altering The Classpath: Defining a Classpath Directory Prefix}}
-
- * {{{Repository}Altering The Classpath: Using a Maven Repository-Style Classpath}}
-
- * {{{Custom}Altering The Classpath: Using a Custom Classpath Format}}
-
- * {{{Snapshot}Handling Snapshot Versions}}
-
- []
-
-* {Add} A Class-Path Entry To The Manifest
-
- \[{{{Contents}Top}}\]
-
- Maven Archiver can add the classpath of your project to the manifest. This is
- done with the <<<\<addClasspath\>>>> configuration element.
-
-+-----+
+---
+title: Set Up The Classpath
+author:
+ - Dennis Lundberg
+date: 2008-01-01
+---
+<!--
+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.
+-->
+
+# Set Up The Classpath
+
+## <a id="Contents">Contents</a>
+
+- [Add A Class-Path Entry To The Manifest](#Add)
+- [Make The Jar Executable](#Make)
+- [Altering The Classpath: Defining a Classpath Directory Prefix](#Prefix)
+- [Altering The Classpath: Using a Maven Repository-Style Classpath](#Repository)
+- [Altering The Classpath: Using a Custom Classpath Format](#Custom)
+- [Handling Snapshot Versions](#Snapshot)
+
+## <a id="Add">Add A Class-Path Entry To The Manifest</a>
+
+[[Top](#Contents)]
+
+Maven Archiver can add the classpath of your project to the manifest. This is done with the `<addClasspath>` configuration element.
+
+```xml
<project>
...
<build>
@@ -83,29 +75,24 @@ Set Up The Classpath
</dependencies>
...
</project>
-+-----+
+```
- The manifest produced using the above configuration would look like this:
+The manifest produced using the above configuration would look like this:
-+-----+
+```
Manifest-Version: 1.0
Created-By: Apache Maven ${maven.version}
Build-Jdk: ${java.version}
Class-Path: plexus-utils-1.1.jar commons-lang-2.1.jar
-+-----+
-
+```
-* {Make} The Jar Executable
+## <a id="Make">Make The Jar Executable</a>
- \[{{{Contents}Top}}\]
+[[Top](#Contents)]
- If you want to create an executable jar file, you need to configure Maven
- Archiver accordingly. You need to tell it which main class to use. This is
- done with the <<<\<mainClass\>>>> configuration element. Here is a sample
- <<<pom.xml>>> configured to add the classpath and use the class
- <<<fully.qualified.MainClass>>> as the main class:
+If you want to create an executable jar file, you need to configure Maven Archiver accordingly. You need to tell it which main class to use. This is done with the `<mainClass>` configuration element. Here is a sample `pom.xml` configured to add the classpath and use the class `fully.qualified.MainClass` as the main class:
-+-----+
+```xml
<project>
...
<build>
@@ -141,28 +128,25 @@ Class-Path: plexus-utils-1.1.jar commons-lang-2.1.jar
</dependencies>
...
</project>
-+-----+
+```
- The manifest produced using the above configuration would look like this:
+The manifest produced using the above configuration would look like this:
-+-----+
+```
Manifest-Version: 1.0
Created-By: Apache Maven ${maven.version}
Build-Jdk: ${java.version}
Main-Class: fully.qualified.MainClass
Class-Path: plexus-utils-1.1.jar commons-lang-2.1.jar
-+-----+
-
+```
-* Altering The Classpath: Defining a Classpath Directory {Prefix}
+## <a id="Prefix">Altering The Classpath: Defining a Classpath Directory Prefix</a>
- \[{{{Contents}Top}}\]
+[[Top](#Contents)]
- Sometimes it is useful to be able to alter the classpath, for example when
- {{{/plugins/maven-war-plugin/examples/skinny-wars.html}creating skinny war-files}}.
- This can be achieved with the <<<\<classpathPrefix\>>>> configuration element.
+Sometimes it is useful to be able to alter the classpath, for example when [creating skinny war-files](/plugins/maven-war-plugin/examples/skinny-wars.html). This can be achieved with the `<classpathPrefix>` configuration element.
-+-----+
+```xml
<project>
...
<build>
@@ -195,26 +179,23 @@ Class-Path: plexus-utils-1.1.jar commons-lang-2.1.jar
</dependencies>
...
</project>
-+-----+
+```
- The manifest classpath produced using the above configuration would look like this:
+The manifest classpath produced using the above configuration would look like this:
-+-----+
+```
Class-Path: lib/plexus-utils-1.1.jar lib/commons-lang-2.1.jar
-+-----+
+```
-* Altering The Classpath: Using a Maven {Repository}-Style Classpath
+## <a id="Repository">Altering The Classpath: Using a Maven Repository-Style Classpath</a>
- \[{{{Contents}Top}}\]
+[[Top](#Contents)]
- <(Since: 2.3, see below)>
+_(Since: 2.3, see below)_
- Occasionally, you may want to include a Maven repository-style directory structure in your
- archive. If you wish to reference the dependency archives within those directories in your
- manifest classpath, try using the <<<\<classpathLayoutType\>>>> element with a value of
- <<<'repository'>>>, like this:
+Occasionally, you may want to include a Maven repository-style directory structure in your archive. If you wish to reference the dependency archives within those directories in your manifest classpath, try using the `<classpathLayoutType>` element with a value of `'repository'`, like this:
-+-----+
+```xml
<project>
...
<build>
@@ -249,26 +230,23 @@ Class-Path: lib/plexus-utils-1.1.jar lib/commons-lang-2.1.jar
</dependencies>
...
</project>
-+-----+
+```
- The manifest classpath produced using the above configuration would look like this:
+The manifest classpath produced using the above configuration would look like this:
-+-----+
+```
Class-Path: lib/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar lib/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
-+-----+
+```
-* Altering The Classpath: Using a {Custom} Classpath Format
+## <a id="Custom">Altering The Classpath: Using a Custom Classpath Format</a>
- \[{{{Contents}Top}}\]
+[[Top](#Contents)]
- <(Since: 2.4)>
+_(Since: 2.4)_
- At times, you may have dependency archives in a custom format within your own archive, one that doesn't
- conform to any of the above classpath layouts. If you wish to define a custom layout for dependency archives
- within your archive's manifest classpath, try using the <<<\<classpathLayoutType\>>>> element with a value of
- <<<'custom'>>>, along with the <<<\<customClasspathLayout\>>>> element, like this:
+At times, you may have dependency archives in a custom format within your own archive, one that doesn't conform to any of the above classpath layouts. If you wish to define a custom layout for dependency archives within your archive's manifest classpath, try using the `<classpathLayoutType>` element with a value of `'custom'`, along with the `<customClasspathLayout>` element, like this:
-+-----+
+```xml
<project>
...
<build>
@@ -302,80 +280,51 @@ Class-Path: lib/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar lib/co
</dependencies>
...
</project>
-+-----+
-
- This classpath layout is a little more involved than the previous examples.
- To understand how the value of the <<<\<customClasspathLayout\>>>> configuration
- is interpreted, it's useful to understand the rules applied when resolving
- expressions within the value:
-
- [[1]] If present, trim off the prefix 'artifact.' from the expression.
-
- [[2]] Attempt to resolve the expression as a reference to the Artifact using
- reflection (eg. <<<'artifactId'>>> becomes a reference to the method
- <<<'getArtifactId()'>>>).
+```
- [[3]] Attempt to resolve the expression as a reference to the ArtifactHandler of
- the current Artifact, again using reflection (eg. <<<'extension'>>> becomes a reference
- to the method <<<'getExtension()'>>>).
+This classpath layout is a little more involved than the previous examples. To understand how the value of the `<customClasspathLayout>` configuration is interpreted, it's useful to understand the rules applied when resolving expressions within the value:
- [[4]] Attempt to resolve the expression as a key in the special-case Properties instance,
- which contains the following mappings:
+1. If present, trim off the prefix 'artifact.' from the expression.
+1. Attempt to resolve the expression as a reference to the Artifact using reflection (eg. `'artifactId'` becomes a reference to the method `'getArtifactId()'`).
+1. Attempt to resolve the expression as a reference to the ArtifactHandler of the current Artifact, again using reflection (eg. `'extension'` becomes a reference to the method `'getExtension()'`).
+1. Attempt to resolve the expression as a key in the special-case Properties instance, which contains the following mappings:
+ - `'dashClassifier'`: If the Artifact has a classifier, this will be `'-$artifact.classifier'`, otherwise this is an empty string.
+ - `'dashClassifier?'`: This is a synonym of `'dashClassifier'`.
+ - `'groupIdPath'`: This is the equivalent of `'$artifact.groupId'`, with all `'.'` characters replaced by `'/'`.
- * <<<'dashClassifier'>>>: If the Artifact has a classifier, this will be
- <<<'-${artifact.classifier}'>>>, otherwise this
- is an empty string.
+The manifest classpath produced using the above configuration would look like this:
- * <<<'dashClassifier?'>>>: This is a synonym of <<<'dashClassifier'>>>.
-
- * <<<'groupIdPath'>>>: This is the equivalent of <<<'${artifact.groupId}'>>>,
- with all <<<'.'>>> characters replaced by <<<'/'>>>.
-
- []
-
- []
-
- The manifest classpath produced using the above configuration would look like this:
-
-+-----+
+```
Class-Path: WEB-INF/lib/org/codehaus/plexus/plexus-utils-1.1.jar WEB-INF/lib/commons-lang/commons-lang-2.1.jar
-+-----+
-
+```
-* Handling {Snapshot} Versions
+## <a id="Snapshot">Handling Snapshot Versions</a>
- \[{{{Contents}Top}}\]
+[[Top](#Contents)]
- <(Since 2.4)>
+_(Since 2.4)_
- Depending on how you construct your archive, you may have the ability to specify whether
- snapshot dependency archives are included with the version suffix <<<'-SNAPSHOT'>>>, or
- whether the unique timestamp and build-number for that archive is used. For instance,
- the {{{/plugins/maven-assembly-plugin}Assembly Plugin}} allows
- you to make this decision in the <<<\<outputFileNameMapping\>>>> element of its
- <<<\<dependencySet>>>> descriptor section.
+Depending on how you construct your archive, you may have the ability to specify whether snapshot dependency archives are included with the version suffix `'-SNAPSHOT'`, or whether the unique timestamp and build-number for that archive is used. For instance, the [Assembly Plugin](/plugins/maven-assembly-plugin) allows you to make this decision in the `<outputFileNameMapping>` element of its `<dependencySet>` descriptor section.
-** Forcing the use of -SNAPSHOT versions when using the simple (default) or repository classpath layout
+### Forcing the use of -SNAPSHOT versions when using the simple (default) or repository classpath layout
- To force the use of <<<'-SNAPSHOT'>>> version naming, simply disable the <<<\<useUniqueVersions\>>>>
- configuration element, like this:
+To force the use of `'-SNAPSHOT'` version naming, simply disable the `<useUniqueVersions>` configuration element, like this:
-+-----+
+```xml
<useUniqueVersions>false</useUniqueVersions>
-+-----+
+```
-** Forcing the use of -SNAPSHOT versions with custom layouts
+### Forcing the use of -SNAPSHOT versions with custom layouts
- To force the use of <<<'-SNAPSHOT'>>> version naming, simply replace <<<'${artifact.version}'>>>
- with <<<'${artifact.baseVersion}'>>> in the custom layout example above, so it looks like this:
+To force the use of `'-SNAPSHOT'` version naming, simply replace `'$artifact.version'` with `'$artifact.baseVersion'` in the custom layout example above, so it looks like this:
-+-----+
+```xml
<customClasspathLayout>WEB-INF/lib/${artifact.groupIdPath}/${artifact.artifactId}-${artifact.baseVersion}${dashClassifier?}.${artifact.extension}</customClasspathLayout>
-+-----+
+```
- The full example configuration would look like this:
+The full example configuration would look like this:
-+-----+
+```xml
<project>
...
<build>
@@ -396,4 +345,4 @@ Class-Path: WEB-INF/lib/org/codehaus/plexus/plexus-utils-1.1.jar WEB-INF/lib/com
</build>
...
</project>
-+-----+
+```
=====================================
src/site/apt/examples/manifest.apt → src/site/markdown/examples/manifest.md
=====================================
@@ -1,56 +1,48 @@
- ------
- Manifest
- ------
- Dennis Lundberg
- ------
- 2008-01-01
- ------
+---
+title: Manifest
+author:
+ - Dennis Lundberg
+date: 2008-01-01
+---
+<!--
+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
- ~~ 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.
+ http://www.apache.org/licenses/LICENSE-2.0
-Manifest
+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.
+-->
+# Manifest
-* Default Manifest
+## Default Manifest
- The default manifest created by Maven Archiver will contain the following
- bits of information:
+The default manifest created by Maven Archiver will contain the following bits of information:
-+-----+
+```
Manifest-Version: 1.0
Created-By: Apache Maven ${maven.version}
Build-Jdk: ${java.version}
-+-----+
+```
- <<Note:>> The <<<Build-Jdk>>> does not take toolchains configuration into account. It is the same
- JDK version as running the Maven instance.
+**Note:** The `Build-Jdk` does not take toolchains configuration into account. It is the same JDK version as running the Maven instance.
-* Adding Implementation And Specification Details
+## Adding Implementation And Specification Details
- Starting with version 2.1, Maven Archiver no longer creates the
- Implementation and Specification details in the manifest by default.
- If you want them in your manifest you have to say so explicitly in your configuration.
+Starting with version 2.1, Maven Archiver no longer creates the Implementation and Specification details in the manifest by default. If you want them in your manifest you have to say so explicitly in your configuration.
- <<Note:>> Because this is a recent change in Maven Archiver, different plugins
- may or may not have started using it yet. Please check the documentation for
- the plugin you want to use. In this example we use maven-jar-plugin 2.1 which
- was the first version of that plugin to use this new feature.
+**Note:** Because this is a recent change in Maven Archiver, different plugins may or may not have started using it yet. Please check the documentation for the plugin you want to use. In this example we use maven-jar-plugin 2.1 which was the first version of that plugin to use this new feature.
-+-----+
+```xml
<project>
...
<build>
@@ -74,11 +66,11 @@ Build-Jdk: ${java.version}
</build>
...
</project>
-+-----+
+```
- The resulting manifest would contain these pieces of information:
+The resulting manifest would contain these pieces of information:
-+-----+
+```properties
Manifest-Version: 1.0
Created-By: Apache Maven ${maven.version}
Build-Jdk: ${java.version}
@@ -88,8 +80,6 @@ Specification-Vendor: ${project.organization.name}
Implementation-Title: ${project.name}
Implementation-Version: ${project.version}
Implementation-Vendor: ${project.organization.name}
-+-----+
+```
- <<Note:>> If your pom.xml does not have an <<<\<organization\>>>>/<<<\<name\>>>>
- element, then the <<<Specification-Vendor>>> and <<<Implementation-Vendor>>>
- entries will <<not>> be in the manifest.
+**Note:** If your pom.xml does not have an `<organization>`/`<name>` element, then the `Specification-Vendor` and `Implementation-Vendor` entries will **not** be in the manifest.
=====================================
src/site/markdown/examples/manifestEntries.md
=====================================
@@ -0,0 +1,70 @@
+---
+title: Manifest Entries
+author:
+ - Dennis Lundberg
+date: 2008-01-01
+---
+<!--
+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.
+-->
+# Manifest Entries
+
+If you find that the other configuration options for Maven Archiver are not enough for manipulating the manifest, you can add your own entries to it. This is done with the `<manifestEntries>` configuration element.
+
+In this example we'll add some entries to the manifest by specifying what we'd like in the `<configuration>`/`<archive>` element of maven-jar-plugin.
+
+**Note:** As with all the examples here, this configuration can be used in all plugins that use Maven Archiver, not just maven-jar-plugin as in this example.
+
+```xml
+<project>
+ <url>http://some.url.org/</url>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ ...
+ <configuration>
+ <archive>
+ <manifestEntries>
+ <mode>development</mode>
+ <url>${project.url}</url>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ ...
+ </plugin>
+ </plugins>
+ </build>
+ ...
+</project>
+```
+
+As you see above you can use literal values or you can have values from the POM interpolated into literals or simply use straight POM expressions. So this is what your resultant manifest will look like inside the created jar:
+
+```properties
+Manifest-Version: 1.0
+Created-By: Apache Maven ${maven.version}
+Build-Jdk: ${java.version}
+mode: development
+url: http://some.url.org/
+```
+
+**Note:** If your pom.xml does not have the `<url>` element, referenced through interpolation, then the entry `url` will **not** be in the manifest.
+
=====================================
src/site/markdown/examples/manifestFile.md
=====================================
@@ -0,0 +1,53 @@
+---
+title: Use Your Own Manifest File
+author:
+ - Dennis Lundberg
+date: 2008-01-01
+---
+<!--
+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.
+-->
+# Use Your Own Manifest File
+
+By default, Maven Archiver creates the manifest file for you. It is sometimes useful to use your own hand crafted manifest file. Say that you want to use the manifest file `src/main/resources/META-INF/MANIFEST.MF`. This is done with the `<manifestFile>` configuration element by setting the value to the location of your file.
+
+The content of your own manifest file will be merged with the entries created by Maven Archiver. If you specify an entry in your own manifest file it will override the value created by Maven Archiver.
+
+**Note:** As with all the examples here, this configuration can be used in all plugins that use Maven Archiver, not just maven-jar-plugin as in this example.
+
+```xml
+<project>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ ...
+ <configuration>
+ <archive>
+ <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ ...
+ </plugin>
+ </plugins>
+ </build>
+ ...
+</project>
+```
=====================================
src/site/apt/examples/manifestSections.apt → src/site/markdown/examples/manifestSections.md
=====================================
@@ -1,41 +1,37 @@
- ------
- Manifest Sections
- ------
- Olivier Lamy
- Dennis Lundberg
- ------
- 2008-01-01
- ------
+---
+title: Manifest Sections
+author:
+ - Olivier Lamy
+ - Dennis Lundberg
+date: 2008-01-01
+---
+<!--
+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
- ~~ 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.
+ http://www.apache.org/licenses/LICENSE-2.0
-Manifest Sections
+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.
+-->
+# Manifest Sections
- The <<<\<manifestSections\>>>> element provides a way to add custom manifest
- sections. It contains a list of
- <<<\<{{{../index.html#class_manifestSection}manifestSection}}\>>>> elements.
+The `<manifestSections>` element provides a way to add custom manifest sections. It contains a list of [`<manifestSection>`](../index.html#class_manifestSection) elements.
- <<Note:>> As with all the examples here, this configuration can be used in all
- plugins that use Maven Archiver, not just maven-jar-plugin as in this example.
+**Note:** As with all the examples here, this configuration can be used in all plugins that use Maven Archiver, not just maven-jar-plugin as in this example.
- Given this configuration:
+Given this configuration:
-+-----+
+```xml
<project>
...
<build>
@@ -68,11 +64,11 @@ Manifest Sections
</build>
...
</project>
-+-----+
+```
- The following content will end up in the manifest:
+The following content will end up in the manifest:
-+-----+
+```
Manifest-Version: 1.0
Created-By: Apache Maven ${maven.version}
Build-Jdk: ${java.version}
@@ -82,4 +78,4 @@ id: nice foo
Name: bar
id: nice bar
-+-----+
+```
=====================================
src/site/site.xml
=====================================
@@ -19,13 +19,8 @@ specific language governing permissions and limitations
under the License.
-->
-<project xmlns="http://maven.apache.org/DECORATION/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 https://maven.apache.org/xsd/decoration-1.8.0.xsd">
- <skin>
- <groupId>org.apache.maven.skins</groupId>
- <artifactId>maven-fluido-skin</artifactId>
- <version>1.9</version>
- </skin>
+<site xmlns="http://maven.apache.org/SITE/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd">
<body>
<menu name="Overview">
<item name="Introduction" href="index.html"/>
@@ -45,4 +40,4 @@ under the License.
<item name="Use Your Own Manifest File" href="examples/manifestFile.html"/>
</menu>
</body>
-</project>
+</site>
=====================================
src/site/xdoc/index.xml.vm
=====================================
@@ -33,8 +33,7 @@
for that plugin.
</p>
- <source>
-<<a href="#class_archive">archive</a>>
+ <source><<a href="#class_archive">archive</a>>
<addMavenDescriptor/>
<compress/>
<forced/>
@@ -67,48 +66,51 @@
</manifestEntries>
<manifestSection/>
</manifestSections>
-</archive>
- </source>
+</archive></source>
<a name="class_archive"/>
<subsection name="archive">
+ <p>The <code><archive></code> element is the root of the archiver configuration.
+ The following table lists all of the possible child elements.</p>
<table>
<tr>
<th>Element</th>
- <th>Description</th>
<th>Type</th>
<th>Since</th>
+ <th>Description</th>
</tr>
<tr>
- <td>addMavenDescriptor</td>
+ <td><code>addMavenDescriptor</code></td>
+ <td><code>boolean</code></td>
+ <td></td>
<td>
Whether the created archive will contain these two Maven files:
<ul>
<li>
- The pom file, located in the archive in
+ The <code>pom.xml</code> file, located in the archive in
<code>META-INF/maven/${groupId}/${artifactId}/pom.xml</code>
</li>
<li>
- A <a href="#pom-properties-content">pom.properties</a> file,
+ A <code><a href="#pom-properties-content">pom.properties</a></code> file,
located in the archive in <code>META-INF/maven/${groupId}/${artifactId}/pom.properties</code>
</li>
</ul>
The default value is <code>true</code>.
</td>
- <td>boolean</td>
- <td></td>
</tr>
<tr>
- <td>compress</td>
+ <td><code>compress</code></td>
+ <td><code>boolean</code></td>
+ <td></td>
<td>
Activate compression for the archive.
The default value is <code>true</code>.
</td>
- <td>boolean</td>
- <td></td>
</tr>
<tr>
- <td>forced</td>
+ <td><code>forced</code></td>
+ <td><code>boolean</code></td>
+ <td>2.2</td>
<td>
Whether recreating the archive is forced (default) or not. Setting
this option to <code>false</code>, means that the archiver should compare the
@@ -125,11 +127,11 @@
</p>
The default value is <code>true</code>.
</td>
- <td>boolean</td>
- <td>2.2</td>
</tr>
<tr>
- <td>index</td>
+ <td><code>index</code></td>
+ <td><code>boolean</code></td>
+ <td></td>
<td>
<strong>Deprecated:</strong> See <a href="https://bugs.openjdk.org/browse/JDK-8305597">JDK-8305597</a>
<p>
@@ -140,39 +142,37 @@
The default value is <code>false</code>.
</p>
</td>
- <td>boolean</td>
- <td></td>
</tr>
<tr>
- <td>pomPropertiesFile</td>
+ <td><code>pomPropertiesFile</code></td>
+ <td><code>File</code></td>
+ <td>2.3</td>
<td>
Use this to override the auto created
<a href="#pom-properties-content">pom.properties</a> file
(only if <code>addMavenDescriptor</code> is set to <code>true</code>)
</td>
- <td>File</td>
- <td>2.3</td>
</tr>
<tr>
- <td>manifestFile</td>
- <td>With this you can supply your own manifest file.</td>
- <td>File</td>
+ <td><code>manifestFile</code></td>
+ <td><code>File</code></td>
<td></td>
+ <td>With this you can supply your own manifest file.</td>
</tr>
<tr>
- <td><a href="#class_manifest">manifest</a></td>
+ <td><code><a href="#class_manifest">manifest</a></code></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
- <td>manifestEntries</td>
- <td>A list of key/value pairs to add to the manifest.</td>
- <td>Map</td>
+ <td><code>manifestEntries</code></td>
+ <td><code>Map</code></td>
<td></td>
+ <td>A list of key/value pairs to add to the manifest.</td>
</tr>
<tr>
- <td><a href="#class_manifestSection">manifestSections</a></td>
+ <td><code><a href="#class_manifestSection">manifestSections</a></code></td>
<td></td>
<td></td>
<td></td>
@@ -183,98 +183,100 @@
<a name="pom-properties-content"/>
<subsection name="pom.properties content">
<p>
- The auto created <code>pom.properties</code> file will contain the
+ The auto created <code>META-INF/maven/${groupId}/${artifactId}/pom.properties</code> file will contain the
following content:
</p>
- <source>
-artifactId=\${project.artifactId}
+ <source>artifactId=\${project.artifactId}
groupId=\${project.groupId}
version=\${project.version}</source>
</subsection>
<a name="class_manifest"/>
<subsection name="manifest">
+ <p>The <code><manifest></code> element configures main section of <code>META-INF/MANIFEST.MF</code>.
+ The following table lists all of the possible child elements.</p>
<table>
<tr>
<th>Element</th>
- <th>Description</th>
<th>Type</th>
<th>Since</th>
+ <th>Description</th>
</tr>
<tr>
- <td>addClasspath</td>
+ <td><code>addClasspath</code></td>
+ <td><code>boolean</code></td>
+ <td></td>
<td>
Whether to create a <code>Class-Path</code> manifest entry.
The default value is <code>false</code>.
</td>
- <td>boolean</td>
- <td></td>
</tr>
<tr>
- <td>addDefaultEntries</td>
+ <td><code>addDefaultEntries</code></td>
+ <td><code>boolean</code></td>
+ <td>3.4.0</td>
<td>
If the manifest will contain these entries:
- <source>
-Created-By: Maven Archiver ${maven-archiver.version}
-Build-Jdk-Spec: ${java.specification.version}</source>
- Since 3.5.0, the default value of <code>Created-By</code> entry can be overridden using
+ <source>Created-By: Maven Archiver ${project.version}
+Build-Jdk-Spec: ${java.specification.version}
+Java-Version: ${project maven.compiler.release/target}</source>
+ Since 3.5.0, the default value of <code>Created-By</code> entry can be overridden (usually by plugin code) using
<a href="./apidocs/org/apache/maven/archiver/MavenArchiver.html">MavenArchiver.setCreatedBy(...)</a> API.<br />
+ Since 3.6.5, <code>Java-Version</code> entry is discovered by
+ <a href="./apidocs/org/apache/maven/archiver/BuildHelper.html">BuildHelper.discoverJavaRelease(...)</a> API.<br />
The default value is <code>true</code>.
</td>
- <td>boolean</td>
- <td>3.4.0</td>
</tr>
<tr>
- <td>addDefaultImplementationEntries</td>
+ <td><code>addDefaultImplementationEntries</code></td>
+ <td><code>boolean</code></td>
+ <td>2.1 and 2.6</td>
<td>
If the manifest will contain these entries:
- <source>
-Implementation-Title: \${project.name}
+ <source>Implementation-Title: \${project.name}
Implementation-Version: \${project.version}
Implementation-Vendor: \${project.organization.name}</source>
The default value is <code>false</code>.
</td>
- <td>boolean</td>
- <td>2.1 and 2.6</td>
</tr>
<tr>
- <td>addDefaultSpecificationEntries</td>
+ <td><code>addDefaultSpecificationEntries</code></td>
+ <td><code>boolean</code></td>
+ <td>2.1</td>
<td>
If the manifest will contain these entries:
- <source>
-Specification-Title: \${project.name}
+ <source>Specification-Title: \${project.name}
Specification-Version: \${project.artifact.selectedVersion.majorVersion}.\${project.artifact.selectedVersion.minorVersion}
Specification-Vendor: \${project.organization.name}</source>
The default value is <code>false</code>.
</td>
- <td>boolean</td>
- <td>2.1</td>
</tr>
<tr>
- <td>addBuildEnvironmentEntries</td>
+ <td><code>addBuildEnvironmentEntries</code></td>
+ <td><code>boolean</code></td>
+ <td>3.4.0</td>
<td>
If the manifest will contain these entries:
- <source>
-Build-Tool: ${maven.build.version}
+ <source>Build-Tool: ${maven.build.version}
Build-Jdk: ${java.version} (${java.vendor})
Build-Os: ${os.name} (${os.version}; (${os.arch})</source>
The default value is <code>false</code>.
</td>
- <td>boolean</td>
- <td>3.4.0</td>
</tr>
<tr>
- <td>addExtensions</td>
+ <td><code>addExtensions</code></td>
+ <td><code>boolean</code></td>
+ <td></td>
<td>
Whether to create an <code>Extension-List</code> manifest
entry.
The default value is <code>false</code>.
</td>
- <td>boolean</td>
- <td></td>
</tr>
<tr>
- <td>classpathLayoutType</td>
+ <td><code>classpathLayoutType</code></td>
+ <td><code>String</code></td>
+ <td>2.4</td>
<td>
The type of layout to use when formatting entries in the created
<code>Class-Path</code>. Valid values are: <code>simple</code>,
@@ -285,21 +287,21 @@ Build-Os: ${os.name} (${os.version}; (${os.arch})</source>
<b>must</b> also set <code>customClasspathLayout</code>.
The default value is <code>simple</code>.
</td>
- <td>String</td>
- <td>2.4</td>
</tr>
<tr>
- <td>classpathPrefix</td>
+ <td><code>classpathPrefix</code></td>
+ <td><code>String</code></td>
+ <td></td>
<td>
A text that will be prefixed to all your <code>Class-Path</code>
entries.
The default value is <code>""</code>.
</td>
- <td>String</td>
- <td></td>
</tr>
<tr>
- <td>customClasspathLayout</td>
+ <td><code>customClasspathLayout</code></td>
+ <td><code>String</code></td>
+ <td>2.4</td>
<td>
The layout expression to use when the layout type set in
<code>classpathLayoutType</code> has the value <code>custom</code>.
@@ -312,55 +314,55 @@ Build-Os: ${os.name} (${os.version}; (${os.arch})</source>
<b>Note:</b> If you specify a layout type of <code>custom</code>
you <b>must</b> set this layout expression.
</td>
- <td>String</td>
- <td>2.4</td>
</tr>
<tr>
- <td>mainClass</td>
- <td>The <code>Main-Class</code> manifest entry.</td>
- <td>String</td>
+ <td><code>mainClass</code></td>
+ <td><code>String</code></td>
<td></td>
+ <td>The <code>Main-Class</code> manifest entry.</td>
</tr>
<tr>
- <td>packageName</td>
- <td>Package manifest entry.</td>
- <td>String</td>
+ <td><code>packageName</code></td>
+ <td><code>String</code></td>
<td></td>
+ <td>Package manifest entry.</td>
</tr>
<tr>
- <td>useUniqueVersions</td>
+ <td><code>useUniqueVersions</code></td>
+ <td><code>boolean</code></td>
+ <td>2.4</td>
<td>
Whether to use unique timestamp Snapshot versions rather than -SNAPSHOT versions.
The default value is <code>true</code>.
</td>
- <td>boolean</td>
- <td>2.4</td>
</tr>
</table>
</subsection>
<a name="class_manifestSection"/>
<subsection name="manifestSection">
+ <p>The <code><manifestSection></code> element configures sections of <code>META-INF/MANIFEST.MF</code>.
+ The following table lists all of the possible child elements.</p>
<table>
<tr>
<th>Element</th>
- <th>Description</th>
<th>Type</th>
<th>Since</th>
+ <th>Description</th>
</tr>
<tr>
- <td>name</td>
+ <td><code>name</code></td>
+ <td><code>String</code></td>
+ <td></td>
<td>
The name of the section.
</td>
- <td>String</td>
- <td></td>
</tr>
<tr>
- <td>manifestEntries</td>
- <td>A list of key/value pairs to add to the manifest.</td>
- <td>Map</td>
+ <td><code>manifestEntries</code></td>
+ <td><code>Map</code></td>
<td></td>
+ <td>A list of key/value pairs to add to the manifest.</td>
</tr>
</table>
</subsection>
=====================================
src/test/java/org/apache/maven/archiver/ManifestConfigurationTest.java
=====================================
@@ -33,7 +33,7 @@ class ManifestConfigurationTest {
}
@Test
- void XXX() {
+ void classpathLayouttTypeSimple() {
assertThat(manifestConfiguration.getClasspathLayoutType())
.isEqualTo(ManifestConfiguration.CLASSPATH_LAYOUT_TYPE_SIMPLE);
}
=====================================
src/test/java/org/apache/maven/archiver/MavenArchiveConfigurationTest.java
=====================================
@@ -39,7 +39,6 @@ class MavenArchiveConfigurationTest {
archive.setManifest(new ManifestConfiguration());
archive.setForced(false);
archive.setCompress(false);
- archive.setIndex(false);
}
@Test
=====================================
src/test/java/org/apache/maven/archiver/MavenArchiverTest.java
=====================================
@@ -44,7 +44,10 @@ import java.util.jar.JarFile;
import java.util.jar.Manifest;
import java.util.stream.Stream;
import java.util.zip.ZipEntry;
+import java.util.zip.ZipFile;
+import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
+import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.handler.ArtifactHandler;
import org.apache.maven.artifact.handler.DefaultArtifactHandler;
@@ -65,9 +68,13 @@ import org.junit.jupiter.params.provider.EmptySource;
import org.junit.jupiter.params.provider.NullAndEmptySource;
import org.junit.jupiter.params.provider.ValueSource;
+import static org.apache.maven.archiver.MavenArchiver.parseBuildOutputTimestamp;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatCode;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
+import static org.codehaus.plexus.archiver.util.Streams.bufferedOutputStream;
+import static org.codehaus.plexus.archiver.util.Streams.fileOutputStream;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -76,10 +83,6 @@ class MavenArchiverTest {
public int compare(Artifact o1, Artifact o2) {
return o1.getArtifactId().compareTo(o2.getArtifactId());
}
-
- public boolean equals(Object o) {
- return false;
- }
}
@ParameterizedTest
@@ -323,7 +326,7 @@ class MavenArchiverTest {
}
@Test
- void testDashesInClassPath_MSHARED_134() throws Exception {
+ void testDashesInClassPathMSHARED134() throws Exception {
File jarFile = new File("target/test/dummyWithDashes.jar");
JarArchiver jarArchiver = getCleanJarArchiver(jarFile);
@@ -351,7 +354,7 @@ class MavenArchiverTest {
}
@Test
- void testDashesInClassPath_MSHARED_182() throws Exception {
+ void testDashesInClassPathMSHARED182() throws Exception {
File jarFile = new File("target/test/dummy.jar");
JarArchiver jarArchiver = getCleanJarArchiver(jarFile);
MavenArchiver archiver = getMavenArchiver(jarArchiver);
@@ -562,9 +565,37 @@ class MavenArchiverTest {
}
/*
- * Test to make sure that manifest sections are present in the manifest prior to the archive has been created.
+ * Test to make sure that empty Automatic-Module-Name will result in no
+ * Automatic-Module-Name attribute at all, but that the archive will be created.
*/
@Test
+ void testManifestWithEmptyAutomaticModuleName() throws Exception {
+ File jarFile = new File("target/test/dummy.jar");
+ JarArchiver jarArchiver = getCleanJarArchiver(jarFile);
+
+ MavenArchiver archiver = getMavenArchiver(jarArchiver);
+
+ MavenSession session = getDummySession();
+ MavenProject project = getDummyProject();
+ MavenArchiveConfiguration config = new MavenArchiveConfiguration();
+
+ Map<String, String> manifestEntries = new HashMap<>();
+ manifestEntries.put("Automatic-Module-Name", "");
+ config.setManifestEntries(manifestEntries);
+
+ archiver.createArchive(session, project, config);
+ assertThat(jarFile).exists();
+
+ final Manifest jarFileManifest = getJarFileManifest(jarFile);
+ Attributes manifest = jarFileManifest.getMainAttributes();
+
+ assertThat(manifest).doesNotContainKey(new Attributes.Name("Automatic-Module-Name"));
+ }
+
+ //
+ // Test to make sure that manifest sections are present in the manifest prior to the archive has been created.
+ //
+ @Test
void testManifestSections() throws Exception {
MavenArchiver archiver = new MavenArchiver();
@@ -629,7 +660,7 @@ class MavenArchiverTest {
}
@Test
- void testDefaultClassPathValue_WithSnapshot() throws Exception {
+ void testDefaultClassPathValueWithSnapshot() throws Exception {
MavenSession session = getDummySession();
MavenProject project = getDummyProjectWithSnapshot();
File jarFile = new File("target/test/dummy.jar");
@@ -907,7 +938,7 @@ class MavenArchiverTest {
}
@Test
- void testMavenRepoClassPathValue_WithSnapshot() throws Exception {
+ void testMavenRepoClassPathValueWithSnapshot() throws Exception {
MavenSession session = getDummySession();
MavenProject project = getDummyProjectWithSnapshot();
File jarFile = new File("target/test/dummy.jar");
@@ -984,7 +1015,7 @@ class MavenArchiverTest {
}
@Test
- void testCustomClassPathValue_WithSnapshotResolvedVersion() throws Exception {
+ void testCustomClassPathValueWithSnapshotResolvedVersion() throws Exception {
MavenSession session = getDummySession();
MavenProject project = getDummyProjectWithSnapshot();
File jarFile = new File("target/test/dummy.jar");
@@ -1023,7 +1054,7 @@ class MavenArchiverTest {
}
@Test
- void testCustomClassPathValue_WithSnapshotForcingBaseVersion() throws Exception {
+ void testCustomClassPathValueWithSnapshotForcingBaseVersion() throws Exception {
MavenSession session = getDummySession();
MavenProject project = getDummyProjectWithSnapshot();
File jarFile = new File("target/test/dummy.jar");
@@ -1168,7 +1199,6 @@ class MavenArchiverTest {
model.setVersion("0.1.1");
final MavenProject project = new MavenProject(model);
- project.setExtensionArtifacts(Collections.emptySet());
project.setRemoteArtifactRepositories(Collections.emptyList());
project.setPluginArtifactRepositories(Collections.emptyList());
project.setName("archiver test");
@@ -1330,37 +1360,33 @@ class MavenArchiverTest {
@Test
void testParseOutputTimestamp() {
- MavenArchiver archiver = new MavenArchiver();
-
- assertThat(archiver.parseOutputTimestamp(null)).isNull();
- assertThat(archiver.parseOutputTimestamp("")).isNull();
- assertThat(archiver.parseOutputTimestamp(".")).isNull();
- assertThat(archiver.parseOutputTimestamp(" ")).isNull();
- assertThat(archiver.parseOutputTimestamp("_")).isNull();
- assertThat(archiver.parseOutputTimestamp("-")).isNull();
- assertThat(archiver.parseOutputTimestamp("/")).isNull();
- assertThat(archiver.parseOutputTimestamp("!")).isNull();
- assertThat(archiver.parseOutputTimestamp("*")).isNull();
-
- assertThat(archiver.parseOutputTimestamp("1570300662").getTime()).isEqualTo(1570300662000L);
- assertThat(archiver.parseOutputTimestamp("0").getTime()).isZero();
- assertThat(archiver.parseOutputTimestamp("1").getTime()).isEqualTo(1000L);
-
- assertThat(archiver.parseOutputTimestamp("2019-10-05T18:37:42Z").getTime())
- .isEqualTo(1570300662000L);
- assertThat(archiver.parseOutputTimestamp("2019-10-05T20:37:42+02:00").getTime())
- .isEqualTo(1570300662000L);
- assertThat(archiver.parseOutputTimestamp("2019-10-05T16:37:42-02:00").getTime())
- .isEqualTo(1570300662000L);
+ assertThat(parseBuildOutputTimestamp(null)).isEmpty();
+ assertThat(parseBuildOutputTimestamp("")).isEmpty();
+ assertThat(parseBuildOutputTimestamp(".")).isEmpty();
+ assertThat(parseBuildOutputTimestamp(" ")).isEmpty();
+ assertThat(parseBuildOutputTimestamp("_")).isEmpty();
+ assertThat(parseBuildOutputTimestamp("-")).isEmpty();
+ assertThat(parseBuildOutputTimestamp("/")).isEmpty();
+ assertThat(parseBuildOutputTimestamp("!")).isEmpty();
+ assertThat(parseBuildOutputTimestamp("*")).isEmpty();
+
+ assertThat(parseBuildOutputTimestamp("1570300662").get().getEpochSecond())
+ .isEqualTo(1570300662L);
+ assertThat(parseBuildOutputTimestamp("2019-10-05T18:37:42Z").get().getEpochSecond())
+ .isEqualTo(1570300662L);
+ assertThat(parseBuildOutputTimestamp("2019-10-05T20:37:42+02:00").get().getEpochSecond())
+ .isEqualTo(1570300662L);
+ assertThat(parseBuildOutputTimestamp("2019-10-05T16:37:42-02:00").get().getEpochSecond())
+ .isEqualTo(1570300662L);
// These must result in IAE because we expect extended ISO format only (ie with - separator for date and
// : separator for timezone), hence the XXX SimpleDateFormat for tz offset
// X SimpleDateFormat accepts timezone without separator while date has separator, which is a mix between
// basic (no separators, both for date and timezone) and extended (separator for both)
assertThatExceptionOfType(IllegalArgumentException.class)
- .isThrownBy(() -> archiver.parseOutputTimestamp("2019-10-05T20:37:42+0200"));
+ .isThrownBy(() -> parseBuildOutputTimestamp("2019-10-05T20:37:42+0200"));
assertThatExceptionOfType(IllegalArgumentException.class)
- .isThrownBy(() -> archiver.parseOutputTimestamp("2019-10-05T20:37:42-0200"));
+ .isThrownBy(() -> parseBuildOutputTimestamp("2019-10-05T20:37:42-0200"));
}
@ParameterizedTest
@@ -1368,14 +1394,11 @@ class MavenArchiverTest {
@ValueSource(strings = {".", " ", "_", "-", "T", "/", "!", "!", "*", "ñ"})
void testEmptyParseOutputTimestampInstant(String value) {
// Empty optional if null or 1 char
- assertThat(MavenArchiver.parseBuildOutputTimestamp(value)).isEmpty();
+ assertThat(parseBuildOutputTimestamp(value)).isEmpty();
}
@ParameterizedTest
@CsvSource({
- "0,0",
- "1,1",
- "9,9",
"1570300662,1570300662",
"2147483648,2147483648",
"2019-10-05T18:37:42Z,1570300662",
@@ -1387,7 +1410,7 @@ class MavenArchiverTest {
"2099-12-31T23:59:59Z,4102444799"
})
void testParseOutputTimestampInstant(String value, long expected) {
- assertThat(MavenArchiver.parseBuildOutputTimestamp(value)).contains(Instant.ofEpochSecond(expected));
+ assertThat(parseBuildOutputTimestamp(value)).contains(Instant.ofEpochSecond(expected));
}
@ParameterizedTest
@@ -1404,27 +1427,10 @@ class MavenArchiverTest {
void testThrownParseOutputTimestampInstant(String outputTimestamp) {
// Invalid parsing
assertThatExceptionOfType(IllegalArgumentException.class)
- .isThrownBy(() -> MavenArchiver.parseBuildOutputTimestamp(outputTimestamp))
+ .isThrownBy(() -> parseBuildOutputTimestamp(outputTimestamp))
.withCauseInstanceOf(DateTimeParseException.class);
}
- @ParameterizedTest
- @ValueSource(
- strings = {
- "1980-01-01T00:00:01Z",
- "2100-01-01T00:00Z",
- "2100-02-28T23:59:59Z",
- "2099-12-31T23:59:59-01:00",
- "1980-01-01T00:15:35+01:00",
- "1980-01-01T10:15:35+14:00"
- })
- void testThrownParseOutputTimestampInvalidRange(String outputTimestamp) {
- // date is not within the valid range 1980-01-01T00:00:02Z to 2099-12-31T23:59:59Z
- assertThatExceptionOfType(IllegalArgumentException.class)
- .isThrownBy(() -> MavenArchiver.parseBuildOutputTimestamp(outputTimestamp))
- .withMessageContaining("is not within the valid range 1980-01-01T00:00:02Z to 2099-12-31T23:59:59Z");
- }
-
@ParameterizedTest
@CsvSource({
"2011-12-03T10:15:30+01,1322903730",
@@ -1434,6 +1440,81 @@ class MavenArchiverTest {
})
@EnabledForJreRange(min = JRE.JAVA_9)
void testShortOffset(String value, long expected) {
- assertThat(MavenArchiver.parseBuildOutputTimestamp(value)).contains(Instant.ofEpochSecond(expected));
+ assertThat(parseBuildOutputTimestamp(value)).contains(Instant.ofEpochSecond(expected));
+ }
+
+ private long testReproducibleJarEntryTime(String name, String timestamp) throws Exception {
+ File jarFile = new File("target/test/dummy-" + name + ".jar");
+
+ MavenArchiver archiver = getMavenArchiver(getCleanJarArchiver(jarFile));
+ archiver.configureReproducibleBuild(timestamp);
+ archiver.createArchive(getDummySession(), getDummyProject(), new MavenArchiveConfiguration());
+
+ assertThat(jarFile).exists();
+ ZipFile zf = new ZipFile(jarFile);
+ ZipEntry ze = zf.getEntry("META-INF/MANIFEST.MF");
+ return ze.getTime();
+ }
+
+ /**
+ * before upgrading plexus archiver to 4.10.2 to benefit from https://github.com/codehaus-plexus/plexus-archiver/pull/388
+ * $ zipdetails target/test/dummy-1970.jar
+ * gives negative Extended Timestamp in Java, that is seen as some point in time in 2106 (zip spec is unsigned)
+ * 0027 Extra ID #0001 5455 'UT: Extended Timestamp'
+ * 0029 Length 0005
+ * 002B Flags '01 mod'
+ * 002C Mod Time FFFFF1FA 'Sun Feb 7 06:28:26 2106'
+ * @throws Exception
+ */
+ @Test
+ void testReproducibleJar19700101() throws Exception {
+ long entryTime = testReproducibleJarEntryTime("1970", "10");
+ assertThat(entryTime).isGreaterThanOrEqualTo(0);
+ }
+
+ private void checkJar(String name, String timestamp) throws Exception {
+ File jarFile = new File("target/test/dummy-" + name + ".jar");
+ JarArchiver jarArchiver = getCleanJarArchiver(jarFile);
+
+ MavenArchiver archiver = getMavenArchiver(jarArchiver);
+ archiver.configureReproducibleBuild(timestamp);
+
+ MavenSession session = getDummySession();
+ MavenProject project = getDummyProject();
+
+ archiver.createArchive(session, project, new MavenArchiveConfiguration());
+ assertThat(jarFile).exists();
+ }
+
+ @Test
+ void checkJar() throws Exception {
+ checkJar("1970", "10");
+ checkJar("1970-0h0m10", "1970-01-01T00:00:10Z");
+ checkJar("1970-2h", "1970-01-01T02:00:00Z");
+ checkJar("1970-1h59", "1970-01-01T01:59:00Z");
+ checkJar("1970-1h", "1970-01-01T01:00:00Z");
+ checkJar("1970-0h59", "1970-01-01T00:59:00Z");
+ checkJar("2000", "2000-01-01T00:00:00Z");
+ }
+
+ @Test
+ void testCompress() throws Exception {
+ File zipFile = new File("target/test/dummy.zip");
+ ZipArchiveOutputStream zipArchiveOutputStream =
+ new ZipArchiveOutputStream(bufferedOutputStream(fileOutputStream(zipFile, "zip")));
+ zipArchiveOutputStream.setEncoding("UTF-8");
+ zipArchiveOutputStream.setCreateUnicodeExtraFields(ZipArchiveOutputStream.UnicodeExtraFieldPolicy.NEVER);
+ zipArchiveOutputStream.setMethod(ZipArchiveOutputStream.DEFLATED);
+
+ ZipArchiveEntry ze = new ZipArchiveEntry("f.txt");
+ ze.setTime(0);
+
+ zipArchiveOutputStream.putArchiveEntry(ze);
+ zipArchiveOutputStream.write(1);
+ zipArchiveOutputStream.closeArchiveEntry();
+
+ zipArchiveOutputStream.close();
+
+ assertTrue(zipFile.delete());
}
}
View it on GitLab: https://salsa.debian.org/java-team/maven-archiver/-/compare/f5a071fe24e0815ada17e3144cdb89694c488963...1f410be3fa30c1528cf6b0de0b532c0002921cf8
--
View it on GitLab: https://salsa.debian.org/java-team/maven-archiver/-/compare/f5a071fe24e0815ada17e3144cdb89694c488963...1f410be3fa30c1528cf6b0de0b532c0002921cf8
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261028/114645cb/attachment.htm>
More information about the pkg-java-commits
mailing list