*.userlibraries
相应的java库被解压至E:/javalib路径下,移植到在本地电脑上时,只需要修改路径或者把相应的资源复杂至该目录下。
- lucene4-classic.userlibraries
Eclipse中lucene4常用的jar包配置,包括lucene-core、lucene-analyzers-common、lucene-queries、lucene-queryparser4个jar包。
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<eclipse-userlibraries version="2">
<library name="lucene4-classic" systemlibrary="false">
<archive
path="E:/javalib/lucene-4.10.2/core/lucene-core-4.10.2.jar"
javadoc="file:/E:/javalib/lucene-4.10.2/docs/core/"
source="E:/javalib/lucene-4.10.2/src/core/src/java" />
<archive
path="E:/javalib/lucene-4.10.2/analysis/common/lucene-analyzers-common-4.10.2.jar"
javadoc="file:/E:/javalib/lucene-4.10.2/docs/analyzers-common/"
source="E:/javalib/lucene-4.10.2/src/analysis/common/src/java" />
<archive
path="E:/javalib/lucene-4.10.2/queries/lucene-queries-4.10.2.jar"
javadoc="file:/E:/javalib/lucene-4.10.2/docs/queries/"
source="E:/javalib/lucene-4.10.2/src/queries/src/java"/>
<archive
path="E:/javalib/lucene-4.10.2/queryparser/lucene-queryparser-4.10.2.jar"
javadoc="file:/E:/javalib/lucene-4.10.2/docs/queryparser/"
source="E:/javalib/lucene-4.10.2/src/queryparser/src/java" />
</library>
</eclipse-userlibraries>
- slf4j-standalone.userlibraries
Eclipse中slf4j-1.7.7最低的jar包配置,即最少满足可打印,包括slf4j-api、slf4j-simple两个jar包。
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<eclipse-userlibraries version="2">
<library name="slf4j-standalone" systemlibrary="false">
<archive
path="E:/javalib/slf4j-1.7.7/slf4j-api-1.7.7.jar"
javadoc="file:/E:/javalib/slf4j-1.7.7/site/apidocs/"
source="E:/javalib/slf4j-1.7.7/slf4j-api-1.7.7-sources.jar" />
<archive
path="E:/javalib/slf4j-1.7.7/slf4j-simple-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/slf4j-simple-1.7.7-sources.jar" />
</library>
</eclipse-userlibraries>
- loggers-to-slf4j.userlibraries
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<eclipse-userlibraries version="2">
<library name="loggers-to-slf4j" systemlibrary="false">
<archive
path="E:/javalib/slf4j-1.7.7/jcl-over-slf4j-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/jcl-over-slf4j-1.7.7-sources.jar" />
<archive
path="E:/javalib/slf4j-1.7.7/jul-to-slf4j-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/jul-to-slf4j-1.7.7-sources.jar" />
<archive
path="E:/javalib/slf4j-1.7.7/log4j-over-slf4j-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/log4j-over-slf4j-1.7.7-sources.jar" />
<archive
path="E:/javalib/slf4j-1.7.7/osgi-over-slf4j-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/osgi-over-slf4j-1.7.7-sources.jar" />
</library>
</eclipse-userlibraries>
- spring4-min.userlibraries
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<eclipse-userlibraries version="2">
<library name="spring4-min" systemlibrary="false">
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-core-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-core-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-core-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-beans-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-beans-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-beans-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-support-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-support-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-support-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-expression-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-expression-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-expression-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/commons-logging-1.2/commons-logging-1.2.jar"
javadoc="jar:file:/E:/javalib/commons-logging-1.2/commons-logging-1.2-javadoc.jar!/"
source="E:/javalib/commons-logging-1.2/src" />
</library>
</eclipse-userlibraries>
- solr4-dev.userlibraries
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<eclipse-userlibraries version="2">
<library name="solr4-dev" systemlibrary="false">
<archive
path="E:/javalib/solr-4.10.2/dist/solr-core-4.10.2.jar" />
<archive
path="E:/javalib/solr-4.10.2/dist/solr-solrj-4.10.2.jar" />
</library>
</eclipse-userlibraries>
dev.userlibraries
上述多个.userlibraries配置文件可以分开保存,也可以合并为一个.userlibraries文件。方法也很简单,只需要用Notepa++之类的文本编辑器打开,分别将各个文件里面的<library>标签整个复制。<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<eclipse-userlibraries version="2">
<library name="lucene4-classic" systemlibrary="false">
<archive
path="E:/javalib/lucene-4.10.2/core/lucene-core-4.10.2.jar"
javadoc="file:/E:/javalib/lucene-4.10.2/docs/core/"
source="E:/javalib/lucene-4.10.2/src/core/src/java" />
<archive
path="E:/javalib/lucene-4.10.2/analysis/common/lucene-analyzers-common-4.10.2.jar"
javadoc="file:/E:/javalib/lucene-4.10.2/docs/analyzers-common/"
source="E:/javalib/lucene-4.10.2/src/analysis/common/src/java" />
<archive
path="E:/javalib/lucene-4.10.2/queries/lucene-queries-4.10.2.jar"
javadoc="file:/E:/javalib/lucene-4.10.2/docs/queries/"
source="E:/javalib/lucene-4.10.2/src/queries/src/java"/>
<archive
path="E:/javalib/lucene-4.10.2/queryparser/lucene-queryparser-4.10.2.jar"
javadoc="file:/E:/javalib/lucene-4.10.2/docs/queryparser/"
source="E:/javalib/lucene-4.10.2/src/queryparser/src/java" />
</library>
<library name="slf4j-standalone" systemlibrary="false">
<archive
path="E:/javalib/slf4j-1.7.7/slf4j-api-1.7.7.jar"
javadoc="file:/E:/javalib/slf4j-1.7.7/site/apidocs/"
source="E:/javalib/slf4j-1.7.7/slf4j-api-1.7.7-sources.jar" />
<archive
path="E:/javalib/slf4j-1.7.7/slf4j-simple-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/slf4j-simple-1.7.7-sources.jar" />
</library>
<library name="loggers-to-slf4j" systemlibrary="false">
<archive
path="E:/javalib/slf4j-1.7.7/jcl-over-slf4j-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/jcl-over-slf4j-1.7.7-sources.jar" />
<archive
path="E:/javalib/slf4j-1.7.7/jul-to-slf4j-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/jul-to-slf4j-1.7.7-sources.jar" />
<archive
path="E:/javalib/slf4j-1.7.7/log4j-over-slf4j-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/log4j-over-slf4j-1.7.7-sources.jar" />
<archive
path="E:/javalib/slf4j-1.7.7/osgi-over-slf4j-1.7.7.jar"
source="E:/javalib/slf4j-1.7.7/osgi-over-slf4j-1.7.7.jar" />
</library>
<library name="spring4-min" systemlibrary="false">
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-core-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-core-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-core-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-beans-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-beans-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-beans-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-support-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-support-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-context-support-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-expression-4.1.2.RELEASE.jar"
javadoc="jar:file:/E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-expression-4.1.2.RELEASE-javadoc.jar!/"
source="E:/javalib/spring-framework-4.1.2.RELEASE/libs/spring-expression-4.1.2.RELEASE-sources.jar" />
<archive
path="E:/javalib/commons-logging-1.2/commons-logging-1.2.jar"
javadoc="jar:file:/E:/javalib/commons-logging-1.2/commons-logging-1.2-javadoc.jar!/"
source="E:/javalib/commons-logging-1.2/src" />
</library>
<library name="solr4-dev" systemlibrary="false">
<archive
path="E:/javalib/solr-4.10.2/dist/solr-core-4.10.2.jar" />
<archive
path="E:/javalib/solr-4.10.2/dist/solr-solrj-4.10.2.jar" />
</library>
</eclipse-userlibraries>