Skip to content

Commit d1fc4dc

Browse files
slawekjaranowskislachiewicz
authored andcommitted
Get rid maven-plugin-testing-harness from dependency
It only one class was used from this project. This dependency takes much old stuff like maven 2
1 parent 18a9836 commit d1fc4dc

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

pom.xml

-6
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ limitations under the License.
5555
</properties>
5656

5757
<dependencies>
58-
<dependency>
59-
<groupId>org.apache.maven.shared</groupId>
60-
<artifactId>maven-plugin-testing-harness</artifactId>
61-
<version>1.1</version>
62-
<scope>test</scope>
63-
</dependency>
6458
<dependency>
6559
<groupId>org.openjdk.jmh</groupId>
6660
<artifactId>jmh-core</artifactId>

src/test/java/org/codehaus/plexus/util/introspection/ReflectionValueExtractorTest.java

+12-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.util.List;
2828
import java.util.Map;
2929

30-
import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
3130
import org.junit.Before;
3231
import org.junit.Test;
3332

@@ -462,6 +461,7 @@ public static class Project
462461
private String version;
463462

464463
private Map<String, Artifact> artifactMap = new HashMap<String, Artifact>();
464+
private String description;
465465

466466
public void setModelVersion( String modelVersion )
467467
{
@@ -569,6 +569,16 @@ public Map<String, Artifact> getArtifactMap()
569569
{
570570
return artifactMap;
571571
}
572+
573+
public void setDescription( String description )
574+
{
575+
this.description = description;
576+
}
577+
578+
public String getDescription()
579+
{
580+
return description;
581+
}
572582
}
573583

574584
public static class Build
@@ -630,7 +640,7 @@ public Object getValue()
630640
public void testRootPropertyRegression()
631641
throws Exception
632642
{
633-
MavenProjectStub project = new MavenProjectStub();
643+
Project project = new Project();
634644
project.setDescription( "c:\\\\org\\apache\\test" );
635645
Object evalued = ReflectionValueExtractor.evaluate( "description", project );
636646
assertNotNull( evalued );

0 commit comments

Comments
 (0)