转自[http://maven.apache.org]
useProjectReferences |
When set to false, the plugin will not create sub-projects and instead reference those sub-projects using the installed package in the local repository
Default value is: true
.
当设置成false的话 ,这个插件不会直接创建子项目的引用而以本地发布库里面同等的发布的项目代替
mvn eclipse:eclipse -Declipse.useProjectReferences=false
<project> [...] <build> [...] <plugins> [...] <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.8</version> <configuration> <useProjectReferences>false</useProjectReferences> </configuration> </plugin> [...] </plugins> [...] </build> [...] </project>
这个用处是解决 多模块的项目中 .classpath 直接引用项目有时候会有BUG的问题