mbien commented on code in PR #9855:
URL: https://github.com/apache/netbeans/pull/9855#discussion_r4817569026
##########
java/maven.checkstyle/src/org/netbeans/modules/maven/format/checkstyle/AuxPropsImpl.java:
##########
@@ -232,8 +237,14 @@ public void run() {
try {
//TODO add progress bar.
// XXX does online.resolve(...) not
suffice?
- online.setUpLegacySupport();
-
builder.buildFromRepository(projectArtifact,
p.getMavenProject().getRemoteArtifactRepositories(),
online.getLocalRepository());
+ MavenExecutionRequest req =
online.createMavenExecutionRequest();
+ ProjectBuildingRequest request =
req.getProjectBuildingRequest();
+
request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL);
+ request.setProcessPlugins(false);
+ request.setResolveDependencies(false);
+
request.setRemoteRepositories(p.getMavenProject().getRemoteArtifactRepositories());
+
request.setRepositorySession(maven.newRepositorySession(req));
Review Comment:
those sessions are now autocloseable, we would have to wrap this block in a
try-with-resource analog to https://github.com/apache/netbeans/pull/9868
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists