GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add documentation · apache/maven-wrapper-plugin@6feec38

This repository was archived by the owner on Jan 19, 2022. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/site
    • markdown
      • index.md.vm
      • usage.md
    • resources
      • download.cgi
    • site.xml
    • xdoc
      • download.xml.vm
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/site/markdown/index.md.vm‎

Copy file name to clipboard
+52Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Apache Maven Wrapper Plugin
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
-->
20+
21+
The Apache Maven Wrapper Plugin helps with downloading and unpacking the wrapper distribution
22+
as introduced in Apache Maven 3.7.0
23+
24+
Goals Overview
25+
--------------
26+
27+
28+
* [wrapper:wrapper](./wrapper-mojo.html) is the default goal invoked during the
29+
`wrapper` phase. It downloads and unpacks the apache-maven-wrapper distribution,
30+
31+
Usage
32+
-----
33+
34+
General instructions on how to use the Wrapper Plugin can be found on the
35+
[usage page](./usage.html).
36+
37+
In case you still have questions regarding the plugin's usage, please have a look at the
38+
[FAQ](./faq.html) and feel free to contact the [user mailing list](./mail-lists.html).
39+
The posts to the mailing list are archived and could already contain the answer to your
40+
question as part of an older thread. Hence, it is also worth browsing/searching
41+
the [mail archive](./mail-lists.html).
42+
43+
If you feel like the plugin is missing a feature or has a defect, you can fill a
44+
feature request or bug report in our [issue tracker](./issue-tracking.html).
45+
When creating a new issue, please provide a comprehensive description of your
46+
concern. Especially for fixing bugs it is crucial that the developers can
47+
reproduce your problem. For this reason, entire debug logs, POMs or most
48+
preferably little demo projects attached to the issue are very much appreciated.
49+
Of course, patches are welcome, too. Contributors can check out the project from
50+
our [source repository](./source-repository.html) and will find supplementary
51+
information in the
52+
[guide to helping with Maven](http://maven.apache.org/guides/development/guide-helping.html).
Collapse file

‎src/site/markdown/usage.md‎

Copy file name to clipboard
+57Lines changed: 57 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Usage
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
-->
20+
21+
Wrapper scripts are a set of files that can be added to your Maven project.
22+
If people want to build this project, they don't need to install Maven first.
23+
Instead they can call the maven wrapper script, which will download and unpack Maven into their `${user.home}/.m2/wrapper/dists` folder.
24+
It is also a way to let every build the project with the same Maven version.
25+
26+
The Apache Maven Wrapper Plugin makes it easier to add these wrapper scripts to your project.
27+
28+
The scripts work like this:
29+
- download the maven-wrapper jar, if it is not available yet.
30+
- the wrapper-jar contains the code to download and run Apache Maven
31+
32+
Types
33+
-----
34+
35+
There are 3 types available
36+
37+
- **Script** _(default)_: With this type the scripts will try to download the scripts via wget or curl in case of Unix based system, or use Powershell in case of Windows
38+
39+
40+
- **Bin**: With this type the maven-wrapper jar is already available in the `.mvn/wrapper` folder, so you don't have to rely on wget/curl or Powershell
41+
The downside is that the project will contain a binary file in the source control management system.
42+
43+
- **Source**: Since Maven already requires Java to run, why not compile and run a classfile to download the maven-wrapper jar?
44+
This type comes with a `.mvn/wrapper/MavenWrapperDownloader.java` which will be compiled and executed on the fly.
45+
46+
Maven Version
47+
-------------
48+
By default the plugin will assume the same version as the Maven runtime (calling `mvn -v`). But you can pick a different version.
49+
Either call `mvn wrapper -DmavenVersion=x`, where x is any valid Apache Maven Release, see https://search.maven.org/artifact/org.apache.maven/apache-maven
50+
Another option is adjust the `distributionUrl` in `.mvn/wrapper/maven-wrapper.properties`
51+
52+
Debugging
53+
---------
54+
55+
The apache-maven-wrapper distributions all contains the `mvnwDebug`-script for both Windows and Unix based operating systems.
56+
This makes it possible to debug through Apache Maven, Maven Plugin or Maven Extension.
57+
You can exclude these scripts by calling `mvn wrapper -DincludeDebug=false`
Collapse file

‎src/site/resources/download.cgi‎

Copy file name to clipboard
+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
# Just call the standard mirrors.cgi script. It will use download.html
21+
# as the input template.
22+
exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $*
Collapse file

‎src/site/site.xml‎

Copy file name to clipboard
+35Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!--
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
-->
21+
22+
<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
23+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24+
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
25+
<body>
26+
<menu name="Overview">
27+
<item name="Introduction" href="index.html"/>
28+
<item name="Goals" href="plugin-info.html"/>
29+
<item name="Usage" href="usage.html"/>
30+
<!-- According to https://issues.apache.org/jira/browse/MNGSITE-152 -->
31+
<item name="License" href="http://www.apache.org/licenses/"/>
32+
<item name="Download" href="download.html"/>
33+
</menu>
34+
</body>
35+
</project>
Collapse file

‎src/site/xdoc/download.xml.vm‎

Copy file name to clipboard
+126Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
<?xml version="1.0"?>
2+
3+
<!--
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
-->
21+
22+
<document>
23+
<properties>
24+
<title>Download ${project.name} Source</title>
25+
</properties>
26+
<body>
27+
<section name="Download ${project.name} ${project.version} Source">
28+
29+
<p>${project.name} ${project.version} is distributed in source format. Use a source archive if you intend to build
30+
${project.name} yourself. Otherwise, simply use the ready-made binary artifacts from central repository.</p>
31+
32+
<p>You will be prompted for a mirror - if the file is not found on yours, please be patient, as it may take 24
33+
hours to reach all mirrors.<p/>
34+
35+
<p>In order to guard against corrupted downloads/installations, it is highly recommended to
36+
<a href="http://www.apache.org/dev/release-signing#verifying-signature">verify the signature</a>
37+
of the release bundles against the public <a href="http://www.apache.org/dist/maven/KEYS">KEYS</a> used by the Apache Maven
38+
developers.</p>
39+
40+
<p>${project.name} is distributed under the <a href="http://www.apache.org/licenses/">Apache License, version 2.0</a>.</p>
41+
42+
<p></p>We <b>strongly</b> encourage our users to configure a Maven repository mirror closer to their location, please read <a href="/guides/mini/guide-mirror-settings.html">How to Use Mirrors for Repositories</a>.</p>
43+
44+
<a name="mirror"/>
45+
<subsection name="Mirror">
46+
47+
<p>
48+
[if-any logo]
49+
<a href="[link]">
50+
<img align="right" src="[logo]" border="0"
51+
alt="logo"/>
52+
</a>
53+
[end]
54+
The currently selected mirror is
55+
<b>[preferred]</b>.
56+
If you encounter a problem with this mirror,
57+
please select another mirror.
58+
If all mirrors are failing, there are
59+
<i>backup</i>
60+
mirrors
61+
(at the end of the mirrors list) that should be available.
62+
</p>
63+
64+
<form action="[location]" method="get" id="SelectMirror">
65+
Other mirrors:
66+
<select name="Preferred">
67+
[if-any http]
68+
[for http]
69+
<option value="[http]">[http]</option>
70+
[end]
71+
[end]
72+
[if-any ftp]
73+
[for ftp]
74+
<option value="[ftp]">[ftp]</option>
75+
[end]
76+
[end]
77+
[if-any backup]
78+
[for backup]
79+
<option value="[backup]">[backup] (backup)</option>
80+
[end]
81+
[end]
82+
</select>
83+
<input type="submit" value="Change"/>
84+
</form>
85+
86+
<p>
87+
You may also consult the
88+
<a href="http://www.apache.org/mirrors/">complete list of
89+
mirrors.</a>
90+
</p>
91+
92+
</subsection>
93+
94+
<subsection name="${project.name} ${project.version}">
95+
96+
<p>This is the current stable version of ${project.name}.</p>
97+
98+
<table>
99+
<thead>
100+
<tr>
101+
<th></th>
102+
<th>Link</th>
103+
<th>Checksum</th>
104+
<th>Signature</th>
105+
</tr>
106+
</thead>
107+
<tbody>
108+
<tr>
109+
<td>${project.name} ${project.version} (Source zip)</td>
110+
<td><a href="[preferred]maven/plugins/${project.artifactId}-${project.version}-source-release.zip">maven/plugins/${project.artifactId}-${project.version}-source-release.zip</a></td>
111+
<td><a href="http://www.apache.org/dist/maven/plugins/${project.artifactId}-${project.version}-source-release.zip.sha1">maven/plugins/${project.artifactId}-${project.version}-source-release.zip.sha1</a></td>
112+
<td><a href="http://www.apache.org/dist/maven/plugins/${project.artifactId}-${project.version}-source-release.zip.asc">maven/plugins/${project.artifactId}-${project.version}-source-release.zip.asc</a></td>
113+
</tr>
114+
</tbody>
115+
</table>
116+
</subsection>
117+
118+
<subsection name="Previous Versions">
119+
120+
<p>Older non-recommended releases can be found on our <a href="http://archive.apache.org/dist/maven/plugins/">archive site</a>.</p>
121+
122+
</subsection>
123+
</section>
124+
</body>
125+
</document>
126+

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.