This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch maven-install-plugin-4.x
in repository https://gitbox.apache.org/repos/asf/maven-install-plugin.git
The following commit(s) were added to refs/heads/maven-install-plugin-4.x by
this push:
new c9f8b39 Refresh the site docs, README and AGENTS.md
c9f8b39 is described below
commit c9f8b393607caa819efe89e77d303e725a508cac
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Nov 21 17:01:02 2026 +0100
Refresh the site docs, README and AGENTS.md
The FAQ held one answer (use deploy:deploy-file), which usage.md already
gives; faq.html goes away with the next site publish by maintainer decision.
---
AGENTS.md | 25 ++++++-
README.md | 84 ++++------------------
.../examples/installing-secondary-artifacts.md.vm | 2 +-
.../markdown/examples/specific-local-repo.md.vm | 2 +-
src/site/markdown/faq.md | 35 ---------
src/site/markdown/index.md | 4 +-
src/site/markdown/usage.md | 5 +-
src/site/site.xml | 3 +-
8 files changed, 43 insertions(+), 117 deletions(-)
diff --git a/AGENTS.md b/AGENTS.md
index df16ba5..317423a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -17,7 +17,7 @@ specific language governing permissions and limitations
under the License.
-->
-# Agent Guide for maven-install-plugin
+# Agent guide for maven-install-plugin
This file is read by automated agents (security scanners, code
analyzers, AI assistants) operating on this repository.
@@ -29,7 +29,28 @@ Security model: [SECURITY.md](./SECURITY.md)
Agents that scan this repository should consult `SECURITY.md` and the
threat model it links before reporting issues.
-Points at the Apache Maven family umbrella security model.
+## Compatibility
+
+This branch is the 4.x line: it requires Maven 4 and Java 17. Use the Maven 4
API only; do not copy Maven 3 compatibility code from `master`.
+
+- Goal names, parameter names and user properties are public API. Never rename
+ or remove one: `maven.install.skip`, `installAtEnd`,
`allowIncompleteProjects`,
+ and the `install-file` properties (`file`, `pomFile`, `groupId`,
`artifactId`,
+ `version`, `packaging`, `classifier`, `sources`, `javadoc`, `generatePom`,
+ `localRepositoryPath`).
+- Site pages under `src/site` are deep-linked from outside: do not rename a
page
+ or change a heading's anchor.
+- Fixes land on `master` (3.x) first and are forward-ported here. Known
differences between the lines: `installAtEnd`
+ defaults to `false` on 3.x and `true` on 4.x, and the `install-file`
+ `extension` parameter exists only on 3.x.
+
+## Coding
+
+Use test-first programming. Before fixing a bug or implementing a feature,
+write a test that exposes the bug and verify the test fails.
+
+The bytecode floor is Java 17. Before submitting a PR, run `mvn spotless:apply`
+to format the files, then `mvn verify`. Run Spotless with JDK 17 or 21.
## Tests
diff --git a/README.md b/README.md
index 2109c4f..947e2c1 100644
--- a/README.md
+++ b/README.md
@@ -14,83 +14,25 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-Contributing to [Apache Maven Install
Plugin](https://maven.apache.org/plugins/maven-install-plugin/)
-======================
+# Apache Maven Install Plugin
-[][license]
-[](https://search.maven.org/artifact/org.apache.maven.plugins/maven-install-plugin)
-[](https://search.maven.org/artifact/org.apache.maven.plugins/maven-install-plugin)
+[](https://www.apache.org/licenses/LICENSE-2.0)
+[](https://central.sonatype.com/artifact/org.apache.maven.plugins/maven-install-plugin)
[](https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/maven/plugins/maven-install-plugin/README.md)
-<!--
-[][build]
-[][test-results]
--->
-
-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
-things.
-
-Getting Started
----------------
-
-+ 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.
- This way you can make sure you're not wasting your time on something that
isn't
- considered to be in Apache Maven's scope.
-+ Submit a ticket for your issue, assuming one does not already exist.
- + Clearly describe the issue, including steps to reproduce when it is a bug.
- + Make sure you fill in the earliest version that you know has the issue.
-+ Fork the repository on GitHub.
-
-Making and Submitting Changes
---------------
-
-We accept Pull Requests via GitHub. The [developer mailing list][ml-list] is
the
-main channel of communication for contributors.
-There are some guidelines which will make applying PRs easier for us:
-+ Create a topic branch from where you want to base your work (this is usually
the master branch).
- Push your changes to a topic branch in your fork of the repository.
-+ Make commits of logical units.
-+ Respect the original code style: by using the same [codestyle][code-style],
- patches should only highlight the actual difference, not being disturbed by
any formatting issues:
- + Only use spaces for indentation.
- + 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 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.
-+ Submit a pull request to the repository in the Apache organization.
-
-If you plan to contribute on a regular basis, please consider filing a
[contributor license agreement][cla].
-
-## Tests
+[](https://github.com/apache/maven-install-plugin/actions/workflows/maven-verify.yml)
-Unit tests are JUnit 5 (Jupiter) and live in `src/test/java`. New test code
must not add JUnit 4, the vintage engine, Hamcrest, or
`org.codehaus.plexus.util`; use JDK/Groovy APIs instead. Name tests after the
behaviour they check, not after JIRA keys.
+The Install Plugin copies a project's artifacts into the local Maven
repository (`install:install`) and installs externally built files there
(`install:install-file`). User documentation:
<https://maven.apache.org/plugins/maven-install-plugin/>.
-Integration tests in `src/it` are reserved for behaviour that needs a real
Maven build: reactor and deferred installation, `-T2` parallel builds, `-f`
alternate POMs, embedded-POM execution and the `setup-*` support projects.
Everything a mojo unit test can assert with a mocked session/repository belongs
in `src/test`. Keep `verify.groovy` scripts in plain `assert` form.
+This branch (`maven-install-plugin-4.x`) is the 4.x line. It requires Maven 4
and Java 17. The 3.x line lives on
[`master`](https://github.com/apache/maven-install-plugin/tree/master).
-The Maven 4 branch (`maven-install-plugin-4.x`) uses the Maven 4 `@MojoTest`
harness. Its `ArtifactInstaller` is mocked, so `maven-metadata-local.xml` is
not written during unit tests; assert the coordinate-derived paths from the
install request instead of a physical file. The 3.x line's harness writes real
files. Both branches keep the same IT names and test-case names, but do not
share API-specific test code: 4.x stays Maven 4 only.
+## Build
-Run `mvn -Prun-its verify` for the full build, or `mvn -o -B test
spotless:check` for the unit suite and formatting.
+```bash
+mvn verify
+```
-Additional Resources
---------------------
+Add `-Prun-its` to run the integration tests in `src/it`.
-+ [Contributing
patches](https://maven.apache.org/guides/development/guide-maven-development.html#Creating_and_submitting_a_patch)
-+ [Apache Maven Install JIRA project
page](https://issues.apache.org/jira/projects/MINSTALL/issues)
-+ [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
+## Contribute
-[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-install-plugin/job/master/lastCompletedBuild/testReport/
-[build]:
https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-install-plugin/job/master/
+Report bugs and feature requests in [GitHub
issues](https://github.com/apache/maven-install-plugin/issues) and send pull
requests against `maven-install-plugin-4.x`. Repository conventions for tests,
compatibility and code style are in [AGENTS.md](AGENTS.md). Report security
issues privately as described in [SECURITY.md](SECURITY.md).
diff --git a/src/site/markdown/examples/installing-secondary-artifacts.md.vm
b/src/site/markdown/examples/installing-secondary-artifacts.md.vm
index 659bf29..de5dbd2 100644
--- a/src/site/markdown/examples/installing-secondary-artifacts.md.vm
+++ b/src/site/markdown/examples/installing-secondary-artifacts.md.vm
@@ -28,7 +28,7 @@ under the License.
Sometimes you need to install secondary artifacts after the main artifact has
been installed in your local repository. To install a secondary artifact you
need to use the `classifier` parameter to classify the secondary artifact.
-Let us assume that you want to install the sources for an old artifact, like
commons-logging-1.0.3. The [central
repository](http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.3/)
only has the main artifact and a `-javadoc` artifact for that version. Package
up the sources into a JAR file on your local disk and then run the following
command:
+Let us assume that you want to install the sources for an old artifact, like
commons-logging-1.0.3. The [central
repository](https://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.0.3/)
only has the main artifact and a `-javadoc` artifact for that version. Package
up the sources into a JAR file on your local disk and then run the following
command:
```shell
mvn ${project.groupId}:${project.artifactId}:${project.version}:install-file
-Dfile=path-to-commons-logging-sources.jar \
diff --git a/src/site/markdown/examples/specific-local-repo.md.vm
b/src/site/markdown/examples/specific-local-repo.md.vm
index c7c5a5e..f71e9eb 100644
--- a/src/site/markdown/examples/specific-local-repo.md.vm
+++ b/src/site/markdown/examples/specific-local-repo.md.vm
@@ -27,7 +27,7 @@ under the License.
# Installing an artifact to a specific local repository path
-General information about how to copy jars into your local repository can be
found in the [Guide to installing 3rd party
JARs](http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html)
+General information about how to copy jars into your local repository can be
found in the [Guide to installing 3rd party
JARs](https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html)
By default, the Apache Maven Install Plugin uses the local repository defined
in the `settings.xml` to install an artifact.
diff --git a/src/site/markdown/faq.md b/src/site/markdown/faq.md
deleted file mode 100644
index 6e21e6a..0000000
--- a/src/site/markdown/faq.md
+++ /dev/null
@@ -1,35 +0,0 @@
----
-title: Frequently Asked Questions
----
-
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-<a id="top"></a>
-
-# Frequently Asked Questions
-
-1. [Can I use the *install:install-file* goal to install artifacts to my
remote repository?](#question)
-
-<a id="question"></a>
-
-### Can I use the *install:install-file* goal to install artifacts to my
remote repository?
-
-No. You need to use
-[*deploy:deploy-file*](http://maven.apache.org/plugins/maven-deploy-plugin/)
instead.
diff --git a/src/site/markdown/index.md b/src/site/markdown/index.md
index 0d4f319..2e44099 100644
--- a/src/site/markdown/index.md
+++ b/src/site/markdown/index.md
@@ -44,9 +44,9 @@ The [install:install](./install-mojo.html) goal no longer
supports creating chec
General instructions for using the Install Plugin can be found on the [usage
page](./usage.html). Some more specific use cases are described in the examples
given below.
-If you have questions about the plugin's usage, read the [FAQ](./faq.html) and
feel free to contact the [user mailing list](./mailing-lists.html). Posts to
the mailing list are archived and could already contain the answer to your
question as part of an older thread. Hence, it is also worth browsing/searching
the [mail archive](./mailing-lists.html).
+If you have questions about the plugin's usage, feel free to contact the [user
mailing list](./mailing-lists.html). Posts to the mailing list are archived and
could already contain the answer to your question as part of an older thread.
Hence, it is also worth browsing/searching the [mail
archive](./mailing-lists.html).
-If you think the plugin is missing a feature or has a defect, you can file a
feature request or bug report in our [issue tracker](./issue-management.html).
When creating a new issue, please provide a comprehensive description of your
concern. Especially for fixing bugs it is crucial that the developers can
reproduce your problem. For this reason, entire debug logs, POMs or most
preferably little demo projects attached to the issue are very much
appreciated. Of course, patches are welcome [...]
+If you think the plugin is missing a feature or has a defect, you can file a
feature request or bug report in our [issue tracker](./issue-management.html).
When creating a new issue, please provide a comprehensive description of your
concern. Especially for fixing bugs it is crucial that the developers can
reproduce your problem. For this reason, entire debug logs, POMs or most
preferably little demo projects attached to the issue are very much
appreciated. Of course, patches are welcome [...]
## Examples
diff --git a/src/site/markdown/usage.md b/src/site/markdown/usage.md
index 51ce693..ad03294 100644
--- a/src/site/markdown/usage.md
+++ b/src/site/markdown/usage.md
@@ -29,7 +29,7 @@ under the License.
Apache Maven has a two level strategy to resolve and distribute files, which
we call artifacts. The first level is called the `local repository`, which is
the artifact cache on your system, by default located at
`${user.home}/.m2/repository`. When executing Maven, it first looks in this
local cache for artifacts. If the artifact cannot be found here, Maven will
access the remote repositories to find the artifact. Once found it will be
stored into the local repository, so it's available f [...]
-With the `maven-install-plugin` you can put your artifacts in the local
repository. To upload artifacts to a remote repository, you need to use the
[maven-deploy-plugin](http://maven.apache.org/plugins/maven-deploy-plugin/).
+With the `maven-install-plugin` you can put your artifacts in the local
repository. To upload artifacts to a remote repository, you need to use the
[maven-deploy-plugin](https://maven.apache.org/plugins/maven-deploy-plugin/).
## The `install:install` goal
@@ -53,8 +53,7 @@ mvn install:install-file -Dfile=your-artifact-1.0.jar \
[-Dversion=1.0] \
[-Dpackaging=jar] \
[-Dclassifier=sources] \
- [-DgeneratePom=true] \
- [-DcreateChecksum=true]
+ [-DgeneratePom=true]
```
- the groupId, artifactId, version and packaging of the file to install. These
can be taken from the specified pomFile, extracted from the pom.xml inside the
artifact, and overridden or specified using the command line. When the pomFile
contains a _parent_ section, the parent's groupId can be considered if the
groupId is not specified further for the current project or on the command line.
diff --git a/src/site/site.xml b/src/site/site.xml
index 8bd782c..9963741 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -27,9 +27,8 @@ under the License.
<item name="Introduction" href="index.html"/>
<item name="Plugin Documentation" href="plugin-info.html"/>
<item name="Usage" href="usage.html"/>
- <item name="FAQ" href="faq.html"/>
<!-- According to https://issues.apache.org/jira/browse/MNGSITE-152 -->
- <item name="License" href="http://www.apache.org/licenses/"/>
+ <item name="License" href="https://www.apache.org/licenses/"/>
<item name="Download" href="download.html"/>
</menu>
<menu name="Examples">