0
我在我的pom中设置了<sourceDirectory>target/src</sourceDirectory>
,因为我使用了一些自定义蚂蚁process-sources
的步骤。 Maven很好地编译项目,它会自动搜索target/src/main/java
中的源代码,但eclipse试图从target/src
中完全捡起它,假设main/java
是一个java包。如果我在eclipse项目设置中手动添加源代码目录target/src/main/java
,那么update maven project
将不起作用。如何设置m2e以使用maven-way和${sourceDirectory}/main/java
的拾取来源?