Re: Maven-sar plugin changes
Peter Donald <peter-4lf8KW9E9MLMqX/[email protected]>
| Newsgroups | gmane.comp.java.jcontainer.interest |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 4 Nov 2003 03:30 am, Mauro Talevi wrote: > The problem with this approach is that whenever someone calls > java:compile, even in projects that have nothing to do with > metageneration of code, the sar:metagenerate will get invoked. Unless I am mistaken it will only occur if they have explicitly set the maven.sar.metagenerate yo true and have added a dependency on the plugin. I can't see a reason why they would add a dependency on plugin without generating metadata. > Would setting a preGoal on jar:jar to attain sar:metagenerate > whenever necessary in a specific project (but not in the plugin) > not do the same trick? You could add the postGoal to every ptoject that requires metadata generation. I can definetly do that if you want. > BTW, I've changed the default metagenerate src to take the value from > pom.build.sourceDirectory. kool -- Cheers, Peter Donald "Artists can color the sky red because they know it's blue. Those of us who aren't artists must color things the way they really are or people might think we're stupid." -- Jules Feiffer