Add maven-build-classpath to plugin execution classpath
问题 I am writing some code-gen maven-plugin. I need my project classpath be injected in to my plugin execution classpath. I found this article. The solution there works but is quite long. Maybe someone of you know an out of the box solution. 回答1: Found the answer! OK , Pascal is right , here it is for the foundation!! So here is the cleanest way ( as far as i know ) to add the compile classpath to the execution of you plugin. Here are some code samples from my code-gen plugin, that is actually