Skip to content

Commit 8ce250e

Browse files
committed
foo
1 parent c14fa0f commit 8ce250e

File tree

4 files changed

+54
-32
lines changed

4 files changed

+54
-32
lines changed

pom.xml

Lines changed: 35 additions & 21 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,13 +114,13 @@ under the License.
114114
</distributionManagement>
115115

116116
<properties>
117-
<doxiaVersion>2.0.0-M8</doxiaVersion>
118-
<doxiaSitetoolsVersion>2.0.0-M16</doxiaSitetoolsVersion>
119-
<mavenVersion>3.2.5</mavenVersion>
117+
<doxiaVersion>2.0.0-M12</doxiaVersion>
118+
<doxiaSitetoolsVersion>2.0.0-M19</doxiaSitetoolsVersion>
119+
<mavenVersion>3.6.3</mavenVersion>
120120
<scmVersion>2.0.1</scmVersion>
121-
<aetherVersion>1.0.0.v20140518</aetherVersion>
122-
<sitePluginVersion>4.0.0-M13</sitePluginVersion>
123-
<fluidoSkinVersion>2.0.0-M8</fluidoSkinVersion>
121+
<resolverVersion>1.4.1</resolverVersion>
122+
<sitePluginVersion>4.0.0-M15-SNAPSHOT</sitePluginVersion>
123+
<fluidoSkinVersion>2.0.0-M9</fluidoSkinVersion>
124124
<checkstyle.violation.ignore>ParameterNumber,MethodLength</checkstyle.violation.ignore>
125125
<project.build.outputTimestamp>2023-11-17T21:50:41Z</project.build.outputTimestamp>
126126
</properties>
@@ -129,12 +129,12 @@ under the License.
129129
<dependency>
130130
<groupId>org.apache.maven.reporting</groupId>
131131
<artifactId>maven-reporting-api</artifactId>
132-
<version>4.0.0-M9</version>
132+
<version>4.0.0-M12</version>
133133
</dependency>
134134
<dependency>
135135
<groupId>org.apache.maven.reporting</groupId>
136136
<artifactId>maven-reporting-impl</artifactId>
137-
<version>4.0.0-M13</version>
137+
<version>4.0.0-M15</version>
138138
<exclusions>
139139
<exclusion>
140140
<groupId>org.apache.maven</groupId>
@@ -184,6 +184,19 @@ under the License.
184184
<groupId>org.apache.maven.shared</groupId>
185185
<artifactId>maven-dependency-tree</artifactId>
186186
<version>3.2.1</version>
187+
<exclusions>
188+
<exclusion>
189+
<groupId>org.eclipse.aether</groupId>
190+
<artifactId>aether-util</artifactId>
191+
</exclusion>
192+
</exclusions>
193+
</dependency>
194+
<!-- This replaces the exclude for maven-depepdency-tree -->
195+
<dependency>
196+
<groupId>org.apache.maven.resolver</groupId>
197+
<artifactId>maven-resolver-util</artifactId>
198+
<version>${resolverVersion}</version>
199+
<scope>runtime</scope>
187200
</dependency>
188201
<dependency>
189202
<groupId>org.apache.maven.shared</groupId>
@@ -197,9 +210,10 @@ under the License.
197210
<version>3.0.0</version>
198211
</dependency>
199212
<dependency>
200-
<groupId>org.eclipse.aether</groupId>
201-
<artifactId>aether-api</artifactId>
202-
<version>${aetherVersion}</version>
213+
<groupId>org.apache.maven.resolver</groupId>
214+
<artifactId>maven-resolver-api</artifactId>
215+
<version>${resolverVersion}</version>
216+
<scope>test</scope>
203217
</dependency>
204218

205219
<dependency>
@@ -353,21 +367,21 @@ under the License.
353367
<scope>test</scope>
354368
</dependency>
355369
<dependency>
356-
<groupId>org.eclipse.aether</groupId>
357-
<artifactId>aether-impl</artifactId>
358-
<version>${aetherVersion}</version>
370+
<groupId>org.apache.maven.resolver</groupId>
371+
<artifactId>maven-resolver-impl</artifactId>
372+
<version>${resolverVersion}</version>
359373
<scope>test</scope>
360374
</dependency>
361375
<dependency>
362-
<groupId>org.eclipse.aether</groupId>
363-
<artifactId>aether-connector-basic</artifactId>
364-
<version>${aetherVersion}</version>
376+
<groupId>org.apache.maven.resolver</groupId>
377+
<artifactId>maven-resolver-connector-basic</artifactId>
378+
<version>${resolverVersion}</version>
365379
<scope>test</scope>
366380
</dependency>
367381
<dependency>
368-
<groupId>org.eclipse.aether</groupId>
369-
<artifactId>aether-transport-wagon</artifactId>
370-
<version>${aetherVersion}</version>
382+
<groupId>org.apache.maven.resolver</groupId>
383+
<artifactId>maven-resolver-transport-wagon</artifactId>
384+
<version>${resolverVersion}</version>
371385
<scope>test</scope>
372386
</dependency>
373387
<dependency>

src/test/java/org/apache/maven/report/projectinfo/AbstractProjectInfoTestCase.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,23 @@ protected String getString(String key) {
9797
}
9898

9999
/**
100-
* Gets a fully qualified title as generated by Doxia 1.6
100+
* Gets a fully qualified title as generated by Doxia Sitetools
101101
*
102-
* @param name the name to prepare
103-
* @param title the title to prepare
104-
* @return the prepared title as per Doxia 1.6
102+
* @param projectTitle the project title to prepare
103+
* @param shortTitle the short title to prepare
104+
* @return the prepared title as per Doxia Sitetools
105105
* @since 2.8
106106
*/
107-
protected String prepareTitle(String name, String title) {
108-
if (name == null || name.isEmpty()) {
107+
protected String prepareTitle(String projectTitle, String shortTitle) {
108+
if (projectTitle == null || projectTitle.isEmpty()) {
109109
throw new IllegalArgumentException("The name cannot be empty");
110110
}
111111

112-
if (title == null || title.isEmpty()) {
112+
if (shortTitle == null || shortTitle.isEmpty()) {
113113
throw new IllegalArgumentException("The title cannot be empty");
114114
}
115115

116-
return String.format("%s \u2013 %s", name, title);
116+
return String.format("%s \u2013 %s", shortTitle, projectTitle);
117117
}
118118

119119
/**

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,18 @@ 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(String groupId, String artifactId, String version, String packaging, String type) {
4345
this.groupId = groupId;
4446
this.artifactId = artifactId;
4547
this.version = version;
4648
this.packaging = packaging;
49+
this.type = type;
4750
versionRange = VersionRange.createFromVersion(version);
4851
}
4952

@@ -107,6 +110,11 @@ public void setArtifactHandler(ArtifactHandler handler) {
107110

108111
@Override
109112
public String getType() {
110-
return "";
113+
return type;
114+
}
115+
116+
@Override
117+
public void setType(String type) {
118+
this.type = type;
111119
}
112120
}

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
@@ -82,7 +82,7 @@ public ProjectInfoProjectStub() {
8282
setPackaging(model.getPackaging());
8383

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

0 commit comments

Comments
 (0)