Skip to content

Commit 87c0356

Browse files
committed
Upgrade Maven
1 parent ad6f9e7 commit 87c0356

File tree

5 files changed

+133
-141
lines changed

5 files changed

+133
-141
lines changed

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
import java.net.*;
1817
import java.io.*;
1918
import java.nio.channels.*;
@@ -26,7 +25,7 @@ public class MavenWrapperDownloader {
2625
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
2726
*/
2827
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
29-
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
28+
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
3029

3130
/**
3231
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
@@ -55,7 +54,7 @@ public static void main(String args[]) {
5554
// wrapperUrl parameter.
5655
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
5756
String url = DEFAULT_DOWNLOAD_URL;
58-
if (mavenWrapperPropertyFile.exists()) {
57+
if(mavenWrapperPropertyFile.exists()) {
5958
FileInputStream mavenWrapperPropertyFileInputStream = null;
6059
try {
6160
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
@@ -66,7 +65,7 @@ public static void main(String args[]) {
6665
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
6766
} finally {
6867
try {
69-
if (mavenWrapperPropertyFileInputStream != null) {
68+
if(mavenWrapperPropertyFileInputStream != null) {
7069
mavenWrapperPropertyFileInputStream.close();
7170
}
7271
} catch (IOException e) {
@@ -77,8 +76,8 @@ public static void main(String args[]) {
7776
System.out.println("- Downloading from: " + url);
7877

7978
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
80-
if (!outputFile.getParentFile().exists()) {
81-
if (!outputFile.getParentFile().mkdirs()) {
79+
if(!outputFile.getParentFile().exists()) {
80+
if(!outputFile.getParentFile().mkdirs()) {
8281
System.out.println(
8382
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
8483
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
22
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ docker pull andrzejsydor/demo-xss
1414
docker run -p 8080:8080 andrzejsydor/demo-xss
1515
```
1616

17+
# Maintenance and Upgrades
18+
19+
`mvn -N io.takari:maven:wrapper -Dmaven=3.9.6`
20+
1721
# Others
1822

1923
[http://<elb>.amazonaws.com:8080/](http://<elb>.amazonaws.com:8080/)
24+

0 commit comments

Comments
 (0)