I think you can add the maven-eclipse-plugin to you pom to make it work. I got this from a friend some months ago so I wouldn't always need to enable aspectj in eclipse everytime I ran mvn eclipse.
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <executions> <execution> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <outputDirectory>target/ajdtclasses</outputDirectory> <projectnatures> <projectnature>org.eclipse.ajdt.ui.ajnature</projectnature> <projectnature>org.eclipse.jdt.core.javanature</projectnature> </projectnatures> <buildcommands> <buildcommand>org.eclipse.ajdt.core.ajbuilder</buildcommand> </buildcommands> </configuration> </plugin> Gaute On 1/10/07, Trent Nelson <[EMAIL PROTECTED]> wrote:
> Hello, > you have to use m2 plugin for eclipse and make sure that your eclipse > project is maven enabled. > check plugin here http://m2eclipse.codehaus.org/ > > once installed, have you project imported in your workspace, you should > right-click on them and choose Maven2-->enable Is there any way to get 'mvn eclipse:eclipse' to automatically add the Maven2 plugin nature to the generated .project file? It gets a bit tiresome having to continually re-enable the Maven2 plugin for each project, especially if you need to 'mvn eclipse:clean' often. Trent. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
