Developing maven plugin, how to exclude bitkeeper files?

Actually plugin:descriptor is triggered during the generate-resources phase which precedes compile (see the lifecycle reference for a packaging of type maven-plugin ).

Actually, plugin:descriptor is triggered during the generate-resources phase which precedes compile (see the lifecycle reference for a packaging of type maven-plugin). Anyway, the problem here is that regardless of the reason of the failure (even if the mojo had been able to parse p.STSMojo. Java that must contain some unexpected header, the plugin doesn't allow a Mojo to be present twice), the Maven Plugin Plugin doesn't support includes/excludes (see MPLUGIN-15 and go vote for it) and I'm not sure that you can solve this by configuration.

Maybe you can generate the plugin descriptor while the code is not under version control, put the descriptor in /META-INF/maven/plugin. Xml and configure the Maven plugin plugin to skip the descriptor generation. But I didn't test this.

Or maybe you could (clean or dirty) fix the plugin. But I didn't look at the source so I can't say much about this. Or, and this is certainly not the expected answer but still the most simple, you could maybe use another VCS for your mojo (just for the Mojo, why not in parallel of bitkeeper).

I'd start with a comment on the Jira issue (your use case is perfectly valid and should be supported), you might get better ideas there.

Thanks Pascal. I ended up moving the source files into a new location, generating the plugin jar, and then moving them back and checking it in. Yuck.

But it worked. I've also contacted BitKeeper. Apparently they are removing the SCCS dirs in the next release, but have no ETA for when that will be.It's a big problem with the current BitKeeper version, and it's known.

I'll also post a request for include/exclude support in the plugin template on the forums you provide. Thank you, again. – Denali Mar 16 '10 at 23:21 @Denali You're welcome.

And thank you for the feedback. It's good to know bitkeeper folks are working on this but I don't really understand how this differs from CVS. Maven should be able to ignore SCCS directories.

– Pascal Thivent Mar 17 '10 at 15:18.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions