Skip to content

Commit

Permalink
[MSITE-1008] Upgrade to Parent 42 and Maven 3.6.3
Browse files Browse the repository at this point in the history
This closes #187
  • Loading branch information
michael-o committed May 19, 2024
1 parent 22b7670 commit deee90a
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
* under the License.
*/

asfMavenTlpPlgnBuild(jdk:['8','11','17'], maven:['3.2.x', '3.5.x', '3.6.x', '3.8.x', '3.9.x'])
asfMavenTlpPlgnBuild(jdk:['8','11','17'], maven:['3.6.x', '3.8.x', '3.9.x'])
7 changes: 3 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugins</artifactId>
<version>41</version>
<version>42</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -193,9 +193,8 @@ under the License.
</distributionManagement>

<properties>
<mavenVersion>3.2.5</mavenVersion>
<minimalMavenBuildVersion>${mavenVersion}</minimalMavenBuildVersion>
<javaVersion>8</javaVersion>
<mavenVersion>3.6.3</mavenVersion>
<!-- for dependencies -->
<jettyVersion>9.4.54.v20240208</jettyVersion>
<doxiaVersion>2.0.0-M10</doxiaVersion>
Expand Down Expand Up @@ -254,7 +253,7 @@ under the License.
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-aether-provider</artifactId>
<artifactId>maven-resolver-provider</artifactId>
<version>${mavenVersion}</version>
<scope>provided</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/it/projects/MSITE-609/verify.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ try
return false;
}
String downloadContent = FileUtils.fileRead( download, "UTF-8" );
int indexOf = downloadContent.indexOf( "Download Maven 3.2.5" );
int indexOf = downloadContent.indexOf( "Download Maven 3.6.3" );
if ( indexOf < 0 )
{
System.err.println( "download.html doesn't contain Download Maven 3.2.5" );
System.err.println( "download.html doesn't contain Download Maven 3.6.3" );
return false;
}
}
Expand Down
12 changes: 12 additions & 0 deletions src/it/projects/MSITE-627/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ under the License.
<artifactId>maven-reporting-impl</artifactId>
<version>@mavenReportingImplVersion@</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>@mavenVersion@</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>@mavenPluginPluginVersion@</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@
import org.apache.maven.doxia.sink.SinkEventAttributes;
import org.apache.maven.doxia.sink.impl.SinkAdapter;
import org.apache.maven.doxia.siterenderer.Renderer;
import org.apache.maven.project.MavenProject;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.reporting.AbstractMavenReport;
import org.apache.maven.reporting.MavenReportException;

import java.util.Locale;

/**
* Goal which creates a sink in a report.
*
* @goal test
* @phase site
*/
@Mojo( name = "test", defaultPhase = LifecyclePhase.SITE )
public class MyReport
extends AbstractMavenReport
{
Expand All @@ -54,24 +53,6 @@ public String getDescription( Locale locale )
return "Test Report for MSITE-672";
}

@Override
protected Renderer getSiteRenderer()
{
return null;
}

@Override
protected String getOutputDirectory()
{
return null;
}

@Override
protected MavenProject getProject()
{
return null;
}

@Override
protected void executeReport( Locale locale )
throws MavenReportException
Expand Down
12 changes: 12 additions & 0 deletions src/it/projects/MSITE-842/project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ under the License.
<artifactId>maven-reporting-impl</artifactId>
<version>@mavenReportingImplVersion@</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>@mavenVersion@</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>@mavenPluginPluginVersion@</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
*/

import org.apache.maven.doxia.sink.Sink;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.reporting.AbstractMavenReport;
import org.apache.maven.reporting.MavenReportException;

Expand All @@ -29,10 +31,8 @@

/**
* Goal which creates several pages in a report.
*
* @goal test
* @phase site
*/
@Mojo( name = "test", defaultPhase = LifecyclePhase.SITE )
public class MyReport
extends AbstractMavenReport
{
Expand Down
6 changes: 5 additions & 1 deletion src/it/projects/full-reporting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven-parent</artifactId>
<version>39</version>
<version>42</version>
</parent>

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

<properties>
<version.maven-fluido-skin>2.0.0-M8</version.maven-fluido-skin>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/it/projects/site-deploy/verify.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ try
return false;
}
String downloadContent = FileUtils.fileRead( download, "UTF-8" );
int indexOf = downloadContent.indexOf( "Download Maven 3.2.5" );
int indexOf = downloadContent.indexOf( "Download Maven 3.6.3" );
if ( indexOf < 0 )
{
System.err.println( "download.html doesn't contain Download Maven 3.2.5" );
System.err.println( "download.html doesn't contain Download Maven 3.6.3" );
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.Map;

import org.apache.commons.io.FileUtils;
import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
import org.apache.maven.bridge.MavenRepositorySystem;
import org.apache.maven.doxia.tools.SiteTool;
import org.apache.maven.execution.DefaultMavenExecutionRequest;
Expand Down Expand Up @@ -199,7 +200,8 @@ public void davDeployThruProxyWitAuthzInProxy() throws Exception {
setVariableValueToObject(
mojo,
"localRepository",
MavenRepositorySystem.createArtifactRepository("local", "foo", null, null, null));
MavenRepositorySystem.createArtifactRepository(
"local", "foo", new DefaultRepositoryLayout(), null, null));
setVariableValueToObject(mojo, "siteTool", getContainer().lookup(SiteTool.class));
setVariableValueToObject(mojo, "siteDirectory", new File("foo"));
setVariableValueToObject(mojo, "remoteProjectRepositories", Collections.emptyList());
Expand Down

0 comments on commit deee90a

Please sign in to comment.