Skip to content

Commit 3ed99ac

Browse files
committed
[MPIR-457] Upgrade to Parent 42 and Maven 3.6.3
This closes #66
1 parent be2e5f9 commit 3ed99ac

File tree

3 files changed

+31
-48
lines changed

3 files changed

+31
-48
lines changed

pom.xml

Lines changed: 19 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ under the License.
2323
<parent>
2424
<groupId>org.apache.maven.plugins</groupId>
2525
<artifactId>maven-plugins</artifactId>
26-
<version>41</version>
26+
<version>42</version>
2727
<relativePath />
2828
</parent>
2929

@@ -114,14 +114,13 @@ under the License.
114114
</distributionManagement>
115115

116116
<properties>
117+
<mavenVersion>3.6.3</mavenVersion>
117118
<doxiaVersion>1.11.1</doxiaVersion>
118119
<doxiaSitetoolsVersion>1.11.1</doxiaSitetoolsVersion>
119-
<mavenVersion>3.2.5</mavenVersion>
120120
<scmVersion>2.0.1</scmVersion>
121-
<aetherVersion>1.0.0.v20140518</aetherVersion>
121+
<resolverVersion>1.4.1</resolverVersion>
122122
<sitePluginVersion>3.12.1</sitePluginVersion>
123123
<fluidoSkinVersion>1.11.1</fluidoSkinVersion>
124-
<surefire.version>3.1.0</surefire.version>
125124
<checkstyle.violation.ignore>ParameterNumber,MethodLength</checkstyle.violation.ignore>
126125
<project.build.outputTimestamp>2023-11-17T21:50:41Z</project.build.outputTimestamp>
127126
</properties>
@@ -138,8 +137,8 @@ under the License.
138137
<version>3.2.0</version>
139138
<exclusions>
140139
<exclusion>
141-
<groupId>org.apache.maven</groupId>
142-
<artifactId>maven-core</artifactId>
140+
<groupId>org.codehaus.plexus</groupId>
141+
<artifactId>plexus-container-default</artifactId>
143142
</exclusion>
144143
</exclusions>
145144
</dependency>
@@ -169,12 +168,6 @@ under the License.
169168
<version>${mavenVersion}</version>
170169
<scope>provided</scope>
171170
</dependency>
172-
<dependency>
173-
<groupId>org.apache.maven</groupId>
174-
<artifactId>maven-repository-metadata</artifactId>
175-
<version>${mavenVersion}</version>
176-
<scope>provided</scope>
177-
</dependency>
178171
<dependency>
179172
<groupId>org.apache.maven</groupId>
180173
<artifactId>maven-settings</artifactId>
@@ -184,7 +177,7 @@ under the License.
184177
<dependency>
185178
<groupId>org.apache.maven.shared</groupId>
186179
<artifactId>maven-dependency-tree</artifactId>
187-
<version>3.2.1</version>
180+
<version>3.3.0</version>
188181
</dependency>
189182
<dependency>
190183
<groupId>org.apache.maven.shared</groupId>
@@ -198,9 +191,10 @@ under the License.
198191
<version>3.0.0</version>
199192
</dependency>
200193
<dependency>
201-
<groupId>org.eclipse.aether</groupId>
202-
<artifactId>aether-api</artifactId>
203-
<version>${aetherVersion}</version>
194+
<groupId>org.apache.maven.resolver</groupId>
195+
<artifactId>maven-resolver-api</artifactId>
196+
<version>${resolverVersion}</version>
197+
<scope>test</scope>
204198
</dependency>
205199

206200
<dependency>
@@ -290,26 +284,6 @@ under the License.
290284
</dependency>
291285

292286
<!-- Doxia Sitetools -->
293-
<dependency>
294-
<groupId>org.apache.maven.doxia</groupId>
295-
<artifactId>doxia-decoration-model</artifactId>
296-
<version>${doxiaSitetoolsVersion}</version>
297-
</dependency>
298-
<dependency>
299-
<groupId>org.apache.maven.doxia</groupId>
300-
<artifactId>doxia-site-renderer</artifactId>
301-
<version>${doxiaSitetoolsVersion}</version>
302-
<exclusions>
303-
<exclusion>
304-
<groupId>org.codehaus.plexus</groupId>
305-
<artifactId>plexus-container-default</artifactId>
306-
</exclusion>
307-
<exclusion>
308-
<groupId>org.codehaus.plexus</groupId>
309-
<artifactId>plexus-component-api</artifactId>
310-
</exclusion>
311-
</exclusions>
312-
</dependency>
313287
<dependency>
314288
<groupId>org.apache.maven.doxia</groupId>
315289
<artifactId>doxia-integration-tools</artifactId>
@@ -392,21 +366,21 @@ under the License.
392366
<scope>test</scope>
393367
</dependency>
394368
<dependency>
395-
<groupId>org.eclipse.aether</groupId>
396-
<artifactId>aether-impl</artifactId>
397-
<version>${aetherVersion}</version>
369+
<groupId>org.apache.maven.resolver</groupId>
370+
<artifactId>maven-resolver-impl</artifactId>
371+
<version>${resolverVersion}</version>
398372
<scope>test</scope>
399373
</dependency>
400374
<dependency>
401-
<groupId>org.eclipse.aether</groupId>
402-
<artifactId>aether-connector-basic</artifactId>
403-
<version>${aetherVersion}</version>
375+
<groupId>org.apache.maven.resolver</groupId>
376+
<artifactId>maven-resolver-connector-basic</artifactId>
377+
<version>${resolverVersion}</version>
404378
<scope>test</scope>
405379
</dependency>
406380
<dependency>
407-
<groupId>org.eclipse.aether</groupId>
408-
<artifactId>aether-transport-wagon</artifactId>
409-
<version>${aetherVersion}</version>
381+
<groupId>org.apache.maven.resolver</groupId>
382+
<artifactId>maven-resolver-transport-wagon</artifactId>
383+
<version>${resolverVersion}</version>
410384
<scope>test</scope>
411385
</dependency>
412386
<dependency>

src/test/java/org/apache/maven/report/projectinfo/stubs/ProjectInfoPluginArtifactStub.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,19 @@ public class ProjectInfoPluginArtifactStub extends ArtifactStub {
3535

3636
private String packaging;
3737

38+
private String type;
39+
3840
private VersionRange versionRange;
3941

4042
private ArtifactHandler handler;
4143

42-
public ProjectInfoPluginArtifactStub(String groupId, String artifactId, String version, String packaging) {
44+
public ProjectInfoPluginArtifactStub(
45+
String groupId, String artifactId, String version, String packaging, String type) {
4346
this.groupId = groupId;
4447
this.artifactId = artifactId;
4548
this.version = version;
4649
this.packaging = packaging;
50+
this.type = type;
4751
versionRange = VersionRange.createFromVersion(version);
4852
}
4953

@@ -107,6 +111,11 @@ public void setArtifactHandler(ArtifactHandler handler) {
107111

108112
@Override
109113
public String getType() {
110-
return "";
114+
return type;
115+
}
116+
117+
@Override
118+
public void setType(String type) {
119+
this.type = type;
111120
}
112121
}

src/test/java/org/apache/maven/report/projectinfo/stubs/ProjectInfoProjectStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public ProjectInfoProjectStub() {
8080
setPackaging(model.getPackaging());
8181

8282
String type = Objects.toString(super.getPackaging(), "jar");
83-
Artifact artifact = new ProjectInfoPluginArtifactStub(getGroupId(), getArtifactId(), getVersion(), type);
83+
Artifact artifact = new ProjectInfoPluginArtifactStub(getGroupId(), getArtifactId(), getVersion(), type, type);
8484
artifact.setArtifactHandler(new DefaultArtifactHandlerStub());
8585
setArtifact(artifact);
8686

0 commit comments

Comments
 (0)