Skip to content

Commit

Permalink
Get rid maven-plugin-testing-harness from dependency
Browse files Browse the repository at this point in the history
It only one class was used from this project.
This dependency takes much old stuff like maven 2
  • Loading branch information
slawekjaranowski authored and slachiewicz committed Jul 21, 2022
1 parent 18a9836 commit d1fc4dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ limitations under the License.
</properties>

<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import java.util.List;
import java.util.Map;

import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
import org.junit.Before;
import org.junit.Test;

Expand Down Expand Up @@ -462,6 +461,7 @@ public static class Project
private String version;

private Map<String, Artifact> artifactMap = new HashMap<String, Artifact>();
private String description;

public void setModelVersion( String modelVersion )
{
Expand Down Expand Up @@ -569,6 +569,16 @@ public Map<String, Artifact> getArtifactMap()
{
return artifactMap;
}

public void setDescription( String description )
{
this.description = description;
}

public String getDescription()
{
return description;
}
}

public static class Build
Expand Down Expand Up @@ -630,7 +640,7 @@ public Object getValue()
public void testRootPropertyRegression()
throws Exception
{
MavenProjectStub project = new MavenProjectStub();
Project project = new Project();
project.setDescription( "c:\\\\org\\apache\\test" );
Object evalued = ReflectionValueExtractor.evaluate( "description", project );
assertNotNull( evalued );
Expand Down

0 comments on commit d1fc4dc

Please sign in to comment.