maven构建项目时,出现aspectj-maven-plugin 无法构建的问题

<build>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>aspectj-maven-plugin</artifactId>
            <executions>
                <execution>
                    <goals>
                        <goal>compile</goal>
                        <goal>test-compile</goal>
                    </goals>

                    <configuration>
                        <source>1.5</source>
                        <target>1.5</target>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
错误提示:
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.4:compile (execution: default, phase: compile)
解决办法:
给eclipse安装AspectJ Maven configurator:
http://dist.springsource.org/release/AJDT/configurator/
Help -> Install new software...
posted @ 2013-12-09 14:06  popoy  阅读(2529)  评论(0编辑  收藏  举报