Skip to content

Commit

Permalink
Cleanup unneeded dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Jul 15, 2022
1 parent e838d1a commit 1fa7a4c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
16 changes: 0 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
<checkstyle.violation.ignore>RedundantThrows,NewlineAtEndOfFile,ParameterNumber,MethodLength,FileLength,ModifierOrder</checkstyle.violation.ignore>
<project.build.outputTimestamp>2021-04-26T13:54:25Z</project.build.outputTimestamp>
<javaVersion>7</javaVersion>
<mavenVersion>3.1.0</mavenVersion>
</properties>

<dependencies>
Expand Down Expand Up @@ -110,27 +109,12 @@
<version>3.0.2</version>
<scope>provided</scope>
</dependency>
<!--
! Maven Core was used in context with Maven cause for Toolchain access: avoided through reflection.
-->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${mavenVersion}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>3.3.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import java.util.List;
import java.util.Map;

import org.apache.maven.plugin.testing.stubs.MavenProjectStub;

import junit.framework.TestCase;

/**
Expand Down Expand Up @@ -353,6 +351,8 @@ public static class Project

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

private String description;

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

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

public String getDescription()
{
return description;
}
}


Expand Down Expand Up @@ -517,7 +527,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 1fa7a4c

Please sign in to comment.