Description
in the top folder, in build.xml
https://github.com/apache/lucene-solr/blob/branch_6_6/build.xml
in the "eclipse" target (line 442, branch_6_6)
<pathconvert property="eclipse.fileset.libs" pathsep="|" dirsep="/"> <fileset dir="${basedir}/lucene" includes="**/lib/*.jar" excludes="**/*servlet-api*.jar, analysis/uima/**, tools/**, build/**"/> <fileset dir="${basedir}/solr" includes="**/test-lib/*.jar,**/lib/*.jar" excludes="core/test-lib/*servlet-api*.jar, contrib/analysis-extras/**, test-framework/lib/junit*, test-framework/lib/ant*, test-framework/lib/randomizedtesting*, build/**, dist/**, package/**" /> <map from="${basedir}/" to=""/> </pathconvert>
Just like in the netbeans target, the fileset excluded should have "server/solr-webapp/**" also at the end.Otherwise, if I do "ant-eclipse" after "ant generate-maven-artifacts", i get eclipse errors like:
"The type FacetDoubleMerger is already defined FacetModule.java /solr6_/solr/core/src/java/org/apache/solr/search/facet line 364"
because
<classpathentry kind="lib" path="solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-6.6.0-SNAPSHOT.jar"/>
was included in my ".classpath" during the "ant-eclipse" phase.
So at the end of the line
<fileset dir="${basedir}/solr" includes="**/test-lib/*.jar,**/lib/*.jar" excludes="core/test-lib/*servlet-api*.jar, contrib/analysis-extras/**, test-framework/lib/junit*, test-framework/lib/ant*, test-framework/lib/randomizedtesting*, build/**, dist/**, package/**" />
we should also add:
<fileset dir="${basedir}/solr" includes="**/test-lib/*.jar,**/lib/*.jar" excludes="core/test-lib/*servlet-api*.jar, contrib/analysis-extras/**, test-framework/lib/junit*, test-framework/lib/ant*, test-framework/lib/randomizedtesting*, build/**, dist/**, package/**, server/solr-webapp/**" />
Thank you.