maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] eolivelli commented on a change in pull request #193: MNG-6529 - ProjectBuild.build(projectsList, ...) ignores request.isResolveDependency()
Date Sun, 09 Dec 2018 16:48:09 GMT
eolivelli commented on a change in pull request #193: MNG-6529 - ProjectBuild.build(projectsList,
...) ignores request.isResolveDependency()
URL: https://github.com/apache/maven/pull/193#discussion_r240044205
 
 

 ##########
 File path: maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java
 ##########
 @@ -84,4 +87,22 @@ public void testVersionlessManagedDependency()
             // this is expected
         }
     }
+
+    public void testResolveDependencies() throws Exception {
+        File pomFile = new File( "src/test/resources/projects/basic-resolveDependencies.xml"
);
+        MavenSession mavenSession = createMavenSession( null );
+        ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest();
+        configuration.setRepositorySession( mavenSession.getRepositorySession() );
+        configuration.setResolveDependencies(true);
 
 Review comment:
   Can we add a test in which this is false and assert that resolution actually does not happen
?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message