You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/07/15 09:33:30 UTC

[maven-shared-utils] branch master updated: Cleanup unneeded dependencies

This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git


The following commit(s) were added to refs/heads/master by this push:
     new 1fa7a4c  Cleanup unneeded dependencies
1fa7a4c is described below

commit 1fa7a4c9dea71d430d4fade4d52f8261108c66e2
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Tue Jun 21 01:15:37 2022 +0200

    Cleanup unneeded dependencies
---
 pom.xml                                                  | 16 ----------------
 .../introspection/ReflectionValueExtractorTest.java      | 16 +++++++++++++---
 2 files changed, 13 insertions(+), 19 deletions(-)

diff --git a/pom.xml b/pom.xml
index daf55b0..fcfc09b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>
@@ -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>
diff --git a/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java b/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
index 1c9a0e2..775ddc4 100644
--- a/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
@@ -24,8 +24,6 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
-
 import junit.framework.TestCase;
 
 /**
@@ -353,6 +351,8 @@ public class ReflectionValueExtractorTest
 
         private Map<String,Artifact> artifactMap = new HashMap<String,Artifact>();
 
+        private String description;
+
         public void setModelVersion( String modelVersion )
         {
             this.modelVersion = modelVersion;
@@ -461,6 +461,16 @@ public class ReflectionValueExtractorTest
         {
             return artifactMap;
         }
+
+        public void setDescription( String description )
+        {
+            this.description = description;
+        }
+
+        public String getDescription()
+        {
+            return description;
+        }
     }
 
 
@@ -517,7 +527,7 @@ public class ReflectionValueExtractorTest
     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 );