gnodet commented on code in PR #26: URL: https://github.com/apache/maven-remote-resources-plugin/pull/26#discussion_r1130997119
########## src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java: ########## @@ -598,34 +552,34 @@ private void configureLocator() } - locator.addSearchPath( FileResourceLoader.ID, project.getFile().getParentFile().getAbsolutePath() ); + locator.addSearchPath( FileResourceLoader.ID, mavenSession.getCurrentProject() + .getFile().getParentFile().getAbsolutePath() ); if ( appendedResourcesDirectory != null ) { locator.addSearchPath( FileResourceLoader.ID, appendedResourcesDirectory.getAbsolutePath() ); } locator.addSearchPath( "url", "" ); - locator.setOutputDirectory( new File( project.getBuild().getDirectory() ) ); + locator.setOutputDirectory( new File( mavenSession.getCurrentProject().getBuild().getDirectory() ) ); } - @SuppressWarnings( "unchecked" ) protected List<MavenProject> getProjects() { List<MavenProject> projects = new ArrayList<>(); // add filters in well known order, least specific to most specific FilterArtifacts filter = new FilterArtifacts(); - Set<Artifact> artifacts = resolveProjectArtifacts(); + Set<org.apache.maven.artifact.Artifact> artifacts = resolveProjectArtifacts(); Review Comment: `Artifact` is not imported afaik, so maybe we can import `org.apache.maven.artifact.Artifact` and avoid the qualifier ? -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org