Hi,

GetArtifacts should work if you run it in the right phase.

Le lun. 16 juil. 2018 21:19, [email protected] <[email protected]> a
écrit :

> Hey guys,
>
> Right now, I'm doing the following:
>
> ```
> ...
>   @Inject
>   private ProjectDependenciesResolver projectDependenciesResolver;
> ...
>   final List<String> scopes = Arrays.asList(new String[] { "compile",
> "runtime", "test" });
>   final Set<Artifact> artifacts =
> projectDependenciesResolver.resolve(mavenProject, scopes, mavenSession);
> ..
> ```
>
> However, `ProjectDependenciesResolver` is deprecated. Is there a proper
> alternative with the same functionality? `mavenProject.getArtifacts()` does
> not work, it just gives an empty list.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to