Skip to content

Commit deee90a

Browse files
committed
[MSITE-1008] Upgrade to Parent 42 and Maven 3.6.3
This closes #187
1 parent 22b7670 commit deee90a

File tree

10 files changed

+46
-36
lines changed

10 files changed

+46
-36
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
* under the License.
1818
*/
1919

20-
asfMavenTlpPlgnBuild(jdk:['8','11','17'], maven:['3.2.x', '3.5.x', '3.6.x', '3.8.x', '3.9.x'])
20+
asfMavenTlpPlgnBuild(jdk:['8','11','17'], maven:['3.6.x', '3.8.x', '3.9.x'])

pom.xml

Lines changed: 3 additions & 4 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

@@ -193,9 +193,8 @@ under the License.
193193
</distributionManagement>
194194

195195
<properties>
196-
<mavenVersion>3.2.5</mavenVersion>
197-
<minimalMavenBuildVersion>${mavenVersion}</minimalMavenBuildVersion>
198196
<javaVersion>8</javaVersion>
197+
<mavenVersion>3.6.3</mavenVersion>
199198
<!-- for dependencies -->
200199
<jettyVersion>9.4.54.v20240208</jettyVersion>
201200
<doxiaVersion>2.0.0-M10</doxiaVersion>
@@ -254,7 +253,7 @@ under the License.
254253
</dependency>
255254
<dependency>
256255
<groupId>org.apache.maven</groupId>
257-
<artifactId>maven-aether-provider</artifactId>
256+
<artifactId>maven-resolver-provider</artifactId>
258257
<version>${mavenVersion}</version>
259258
<scope>provided</scope>
260259
</dependency>

src/it/projects/MSITE-609/verify.bsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ try
6565
return false;
6666
}
6767
String downloadContent = FileUtils.fileRead( download, "UTF-8" );
68-
int indexOf = downloadContent.indexOf( "Download Maven 3.2.5" );
68+
int indexOf = downloadContent.indexOf( "Download Maven 3.6.3" );
6969
if ( indexOf < 0 )
7070
{
71-
System.err.println( "download.html doesn't contain Download Maven 3.2.5" );
71+
System.err.println( "download.html doesn't contain Download Maven 3.6.3" );
7272
return false;
7373
}
7474
}

src/it/projects/MSITE-627/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ under the License.
4141
<artifactId>maven-reporting-impl</artifactId>
4242
<version>@mavenReportingImplVersion@</version>
4343
</dependency>
44+
<dependency>
45+
<groupId>org.apache.maven</groupId>
46+
<artifactId>maven-plugin-api</artifactId>
47+
<version>@mavenVersion@</version>
48+
<scope>provided</scope>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.apache.maven.plugin-tools</groupId>
52+
<artifactId>maven-plugin-annotations</artifactId>
53+
<version>@mavenPluginPluginVersion@</version>
54+
<scope>provided</scope>
55+
</dependency>
4456
</dependencies>
4557

4658
<build>

src/it/projects/MSITE-627/src/main/java/org/apache/maven/plugins/it/MyReport.java

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,17 @@
2323
import org.apache.maven.doxia.sink.SinkEventAttributes;
2424
import org.apache.maven.doxia.sink.impl.SinkAdapter;
2525
import org.apache.maven.doxia.siterenderer.Renderer;
26-
import org.apache.maven.project.MavenProject;
26+
import org.apache.maven.plugins.annotations.LifecyclePhase;
27+
import org.apache.maven.plugins.annotations.Mojo;
2728
import org.apache.maven.reporting.AbstractMavenReport;
2829
import org.apache.maven.reporting.MavenReportException;
2930

3031
import java.util.Locale;
3132

3233
/**
3334
* Goal which creates a sink in a report.
34-
*
35-
* @goal test
36-
* @phase site
3735
*/
36+
@Mojo( name = "test", defaultPhase = LifecyclePhase.SITE )
3837
public class MyReport
3938
extends AbstractMavenReport
4039
{
@@ -54,24 +53,6 @@ public String getDescription( Locale locale )
5453
return "Test Report for MSITE-672";
5554
}
5655

57-
@Override
58-
protected Renderer getSiteRenderer()
59-
{
60-
return null;
61-
}
62-
63-
@Override
64-
protected String getOutputDirectory()
65-
{
66-
return null;
67-
}
68-
69-
@Override
70-
protected MavenProject getProject()
71-
{
72-
return null;
73-
}
74-
7556
@Override
7657
protected void executeReport( Locale locale )
7758
throws MavenReportException

src/it/projects/MSITE-842/project/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ under the License.
4242
<artifactId>maven-reporting-impl</artifactId>
4343
<version>@mavenReportingImplVersion@</version>
4444
</dependency>
45+
<dependency>
46+
<groupId>org.apache.maven</groupId>
47+
<artifactId>maven-plugin-api</artifactId>
48+
<version>@mavenVersion@</version>
49+
<scope>provided</scope>
50+
</dependency>
51+
<dependency>
52+
<groupId>org.apache.maven.plugin-tools</groupId>
53+
<artifactId>maven-plugin-annotations</artifactId>
54+
<version>@mavenPluginPluginVersion@</version>
55+
<scope>provided</scope>
56+
</dependency>
4557
</dependencies>
4658

4759
<build>

src/it/projects/MSITE-842/project/src/main/java/org/apache/maven/plugins/it/MyReport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*/
2121

2222
import org.apache.maven.doxia.sink.Sink;
23+
import org.apache.maven.plugins.annotations.LifecyclePhase;
24+
import org.apache.maven.plugins.annotations.Mojo;
2325
import org.apache.maven.reporting.AbstractMavenReport;
2426
import org.apache.maven.reporting.MavenReportException;
2527

@@ -29,10 +31,8 @@
2931

3032
/**
3133
* Goal which creates several pages in a report.
32-
*
33-
* @goal test
34-
* @phase site
3534
*/
35+
@Mojo( name = "test", defaultPhase = LifecyclePhase.SITE )
3636
public class MyReport
3737
extends AbstractMavenReport
3838
{

src/it/projects/full-reporting/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ under the License.
2222
<parent>
2323
<groupId>org.apache.maven</groupId>
2424
<artifactId>maven-parent</artifactId>
25-
<version>39</version>
25+
<version>42</version>
2626
</parent>
2727

2828
<groupId>org.apache.maven.plugins.site.its</groupId>
@@ -36,6 +36,10 @@ under the License.
3636
<url>http://localhost/issues</url>
3737
</issueManagement>
3838

39+
<properties>
40+
<version.maven-fluido-skin>2.0.0-M8</version.maven-fluido-skin>
41+
</properties>
42+
3943
<dependencies>
4044
<dependency>
4145
<groupId>junit</groupId>

src/it/projects/site-deploy/verify.bsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ try
6565
return false;
6666
}
6767
String downloadContent = FileUtils.fileRead( download, "UTF-8" );
68-
int indexOf = downloadContent.indexOf( "Download Maven 3.2.5" );
68+
int indexOf = downloadContent.indexOf( "Download Maven 3.6.3" );
6969
if ( indexOf < 0 )
7070
{
71-
System.err.println( "download.html doesn't contain Download Maven 3.2.5" );
71+
System.err.println( "download.html doesn't contain Download Maven 3.6.3" );
7272
return false;
7373
}
7474
}

src/test/java/org/apache/maven/plugins/site/deploy/AbstractSiteDeployWebDavTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import java.util.Map;
2727

2828
import org.apache.commons.io.FileUtils;
29+
import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
2930
import org.apache.maven.bridge.MavenRepositorySystem;
3031
import org.apache.maven.doxia.tools.SiteTool;
3132
import org.apache.maven.execution.DefaultMavenExecutionRequest;
@@ -199,7 +200,8 @@ public void davDeployThruProxyWitAuthzInProxy() throws Exception {
199200
setVariableValueToObject(
200201
mojo,
201202
"localRepository",
202-
MavenRepositorySystem.createArtifactRepository("local", "foo", null, null, null));
203+
MavenRepositorySystem.createArtifactRepository(
204+
"local", "foo", new DefaultRepositoryLayout(), null, null));
203205
setVariableValueToObject(mojo, "siteTool", getContainer().lookup(SiteTool.class));
204206
setVariableValueToObject(mojo, "siteDirectory", new File("foo"));
205207
setVariableValueToObject(mojo, "remoteProjectRepositories", Collections.emptyList());

0 commit comments

Comments
 (0)