How to get Maven plugin to use Eclipse workspace r

2019-07-18 07:15发布

问题:

I'm developing a Maven plugin. It's going to be used during development, and it would greatly increase our productivity if the plugin would include -SNAPSHOT projects in Eclipse on the classpath. In other words, use Eclipse workspace resolution instead of getting the artifacts for these other projects out of the repository.

I tried to set this annotation in the plugin:

@requiresDependencyResolution compile 

but it didn't solve the problem.

Anyone know how to do this?