Warning: I only discovered the existence of annotation processors today, so these questions will be quite naive probably. I'm also pretty new to maven...
I'm trying to build a plugin without needing to compile with maven, since maven is really slow on my computer, and because I want to understand what is happening inside the maven "black box". I noticed that if I create a new @Extension class, it doesn't get loaded at runtime until target/classes/META-INF/hudson.Extension has been updated. This is updated by an annotation processor, I guess. I'm using Eclipse. Eclipse does have the ability to run annotation processors, but you have to specify them explicitly, as the name of a jar and an appropriate class. So, I'm looking for the appropriate processor jar file and class name. jenkins-core contains a processor called 'jenkins.PluginSubtypeMarker', but I'm fairly sure this only finds the children of the 'Plugin' class? There is a project called 'lib-annotation-indexer', and this seems to likely be what is creating hudson.Extension. However, it doesn't seem to generate the hudson.Extension file for me, when I use it from eclipse. I checked out the project from github, and added some System.out.println methods to debug why, and it seems that hudson.Extension is being rejected by the 'scan' method, because it doesn't derive from 'Indexed'. In fact, hudson.Extension doesn't derive from 'Indexed', but from 'Indexable'. What am I missing here? -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
