是否生命周期配置未涵盖插件执行?

时间:2015-02-02 16:17:23

标签: maven maven-2 pom.xml

我的maven项目无法清除并正确安装。 在我的项目的pom.xml中,它给了我一个错误,当我把光标放在上面时给出了这个消息:

 Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.7:test-compile (execution: default, phase: process-sources)

它标记了标记:<execution>

这是我的pom.xml的一部分:

 <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>aspectj-maven-plugin</artifactId>
            <version>1.7</version>
            <configuration>
                <showWeaveInfo>true</showWeaveInfo>
                <source>${java.source-target.version}</source>
                <target>${java.source-target.version}</target>
                <Xlint>ignore</Xlint>
                <complianceLevel>${java.source-target.version}</complianceLevel>
                <encoding>${project.build.sourceEncoding}</encoding>
                <verbose>true</verbose>
            </configuration>
            <executions>
                <execution>
                    <!--IMPORTANT -->
                    <phase>process-sources</phase>
                    <goals>
                        <goal>compile</goal>
                        <goal>test-compile</goal>
                    </goals>
                </execution>
            </executions>
            <dependencies>
                <dependency>
                    <groupId>org.aspectj</groupId>
                    <artifactId>aspectjtools</artifactId>
                    <version>1.8.4</version>
                </dependency>
            </dependencies>
        </plugin>

0 个答案:

没有答案