在eclipse中我收到此错误:“Endorsed directory ...缺失。您可能需要执行Maven命令行构建才能创建它。”
这似乎与我的pom中的这个插件有关:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<compilerArguments>
<endorseddirs>${project.build.directory}/endorsed</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
项目在命令行上成功构建。我在Eclipse中做了一个干净的构建,但仍然有这个错误。
我的设置有什么问题?
答案 0 :(得分:2)
我认为问题在于
<endorseddirs>${project.build.directory}/endorsed</endorseddirs>
请参阅链接 - Pass Compiler Arguments