Did you specify the requiresDependencyResolution of the @Mojo?

Robert

[1] https://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/index.html#Supported_Annotations On Tue, 06 Nov 2018 21:24:03 +0100, Russell Gold <[email protected]> wrote:

I am writing a plugin which does post-processing on some classes compiled in the build, so I have defined a parameter that I would like Maven to fill in with the appropriate list of dependencies, but I am clearly misunderstanding how to do that. Here is what I have:


@Parameter(defaultValue = "${project.compileClasspathElements}", readonly = true, required = true)
  private List<String> compileClasspathElements;

But when the plugin executes, that is being set to the directory in which compiled classes are places. (target/classes).

What is the correct way to do this, and how should I have figured it out?

Thanks,
Russ
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to