I'm trying to use walkmod for the first time through the walkmod-maven-plugin plugin but can't get it to work yet.
(Please note that what follows is based on my limited knowledge of how maven plugins work.)
First of all, I should be using walkmod-maven-plugin and not maven-walkmod-plugin right?
I like to invoke plugins the shorthand way, i.e with "mvn walkmod:check" but couldn't. Interestingly, I could do that with maven-walkmod-plugin but not with walkmod-maven-plugin! So I did some digging and found that we need the META-INF/maven/plugin.xml which is missing from walkmod-maven-plugin (but maven-walkmod-plugin has it!). So that's the first thing I think needs to be fixed.
I tried to work around this and created it based on the one I extracted from maven-walkmod-plugin! :) Now, I could invoke "mvn walkmod:check" but faced an error where I have stumbled:
"Unable to load the mojo 'check' in the plugin 'org.walkmod:walkmod-maven-plugin:1.1.2'. A required class is missing: org.walkmod.mojos.CheckMojo"
So, I did some digging in the walkmod-maven-plugin repo but was surprised that I didn't find any of the Mojo classes! maven-walkmod-plugin had 3 Mojo classes but walkmod-maven-plugin doesn't seem to have any.
So, how should the plugin actually be used?
Does what I wrote above make sense?
How do you others use it?
Jeshan