【发布时间】:2015-10-26 14:06:21
【问题描述】:
在成功按照HowTo 将 Lombok 和 AspectJ 集成到 Maven 构建中后,我的代码不再在 eclipse 中编译。 由于缺少通常由 Lombok 生成的 getter/setter/constructor,到处都有很多错误。
我的目标是能够使用 eclipse 使用 Lombok 进行开发,然后在命令行上使用 mvn clean install 进行构建。
我尝试在 Eclipse 中 skip AspectJ weaving,但没有成功。 这是我用来跳过 AspectJ 的配置文件:
<profile>
<id>noAspectJ</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<executions>
<execution>
<id>process-classes</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerVersion>1.7</compilerVersion>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</profile>
【问题讨论】:
标签: eclipse maven lombok aspectj-maven-plugin