Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup unneeded dependencies #98

Merged
merged 1 commit into from
Jul 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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