The general rule is you cannot control the order of plugins executed within the same phase, so they should not depend on that. Having said that, I'll add that it is possible to control the order to some degree. However, to my knowledge, this depends on what version of Maven you're using and some older version actually work differently than Maven 3.0 for example. When involving plugins bound by the packaging (e.g. the compiler plugin for a jar project), it is not possible to make some other plugin execute before that.
Regarding your case, I'm thinking there might be some other basic issue with your project setup. I haven't used AspectJ myself though. Are you missing some dependency declaration? I find it weird that your code can't compile without having to execute the aspectj plugin first. If the aspectj plugin has to be executed first, I believe a new packaging type should be created which handles this. As no such type exists (to my knowledge), I'm thinking you're doing something wrong. /Anders On Wed, Jan 12, 2011 at 03:47, web788p1 <b...@mageta.org> wrote: > > Hej guys, > > I have a short question about the execution-order of plugins in maven. > Recently I'm doing some work with aspectj and it happened to me, that > after a complete clean some intertype-declarations and > default-implementations of abstract classes could not be found by the > java-compiler.. which is only naturally because its aspectj-stuff. The > thing is, if I do > > mvn aspectj:compile > > and after that > > mvn install / mvn compile > > everything works fine (including some very explicit tests for those > intertype-declarations which cause the problem if I only run mvn install / > mvn compile after a clean). > Do you know some way to get maven to run the "[INFO] --- > aspectj-maven-plugin:1.3:compile (default-compile) @ autaddrbridge > ---"-Step before the "[INFO] --- aspectj-maven-plugin:1.3:compile > (default-compile) @ autaddrbridge ---"-Step? I didn't found a suitable > option in the documentation.. even though, after 5h maven I had only a > minimal motivation to do a proper depth-search :) > > best regards, > - Benjamin > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >