Maven plugin keeps removing Clover from build path

Does anyone know a way to get the Maven plugin in IDEA 7 to quit removing Clover from the build path? It's a little annoying to have to go in to the module settings and re-add the Clover jar to the build path every time I synchronize my pom.xml.

5 comments
Comment actions Permalink

Module dependencies are reimported every time.
You have to add the dependency to the pom.xml in order to make it appear in idea's module dependencies.

0
Comment actions Permalink

The problem is that the plugin is looking for a specific jar file, not just the clover classes. I've tried just adding clover to the dependencies in the pom.xml, but it still complains about not having the right jar.

0
Comment actions Permalink

Does the plugin work this way? Some plugins just complain about a wrong library location but still work.

0
Comment actions Permalink

Unfortunately yes. The clover plugin is looking for a specific .jar file in a specific location (i.e. C:\Documents and Settings\User\.IntelliJIdea70\config\plugins\Clover_for_IDEA_4969.jar). I'm not sure why they did it that way, maybe it will change for Clover 2.

0
Comment actions Permalink

Little can we do with this now - you can not have custom dependencies except those specified in the pom.
You may try to use a system-scoped dependency with corresponding ]]>, though.

0

Please sign in to leave a comment.