well.. that would AFIK not work. you would need the aspectj plugin. That is if you are not using only @aspectJ syntax and no 1.2 syntax. Then you could have your aspects in src/main/java, and then have aop.xml in src/main/resources/META-INF then set the LTW flag on the java VM before running the application, and then you could use aspectJ without any additional compiler plugins or compile steps..
/Kaare On 15/01/06, andrew cooke <[EMAIL PROTECTED]> wrote: > > have you tried putting the source under main/java and configuring the java > compiler as the aspect compiler? i dn't know if the second part is > possible, or how it is done, but that is how i would initially approach > using aspectj within maven. > > disclaimer - only been using maven (2) for 2 days... > > andrew > > Rice Yeh wrote: > > Hi, > > In maven 1.0, its support for aspectj satisfied my need. In maven 2.0, > > it > > seems not easy to support other languages like aspectj. The reason that I > > have such feeling is that i put my aspectj source files under > > src/main/aspectj but in a project only one source directory (sr/main/java) > > could be used. > > > > Regards, > > Rice > > > > > -- > ` __ _ __ ___ ___| |_____ personal site: http://www.acooke.org/andrew > / _` / _/ _ \/ _ \ / / -_) blog: http://www.acooke.org/cute > \__,_\__\___/\___/_\_\___| aim: acookeorg; skype: andrew-cooke > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
