我相信在jackrabbit-standalone jar中,应该嵌入一个应用程序服务器来提供Web内容。
我试图找到 jackrabbit-standalone.jar 中使用的确切嵌入式服务器。根据 jackrabbit-standalone 上的文档,它没有提到任何关于它的事情。
https://jackrabbit.apache.org/jcr/standalone-server.html
有人知道它使用哪种嵌入式服务器吗?
我相信在jackrabbit-standalone jar中,应该嵌入一个应用程序服务器来提供Web内容。
我试图找到 jackrabbit-standalone.jar 中使用的确切嵌入式服务器。根据 jackrabbit-standalone 上的文档,它没有提到任何关于它的事情。
https://jackrabbit.apache.org/jcr/standalone-server.html
有人知道它使用哪种嵌入式服务器吗?
它利用了eclipse jetty。
您可以通过挖掘项目的源代码,尤其是jackrabbit-standalone模块来验证它。
来自上述模块的pom.xml的片段:
...
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>
org.apache.jackrabbit.standalone
</Export-Package>
<Embed-Dependency>
*;inline=*.txt|*.html|*.jsp|*.xml|*.jar|*.properties|remoting/**|bootstrap/**|javax/**|repackage/**|images/**|com/**|ch/**|jline/**|Resources/**|css/**|schema*/**|EDU/**|error/**|org/**|META-INF/*.tld|META-INF/maven/**|META-INF/services/**|WEB-INF/config.xml|WEB-INF/*.properties|WEB-INF/templates/**
</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
<Main-Class>org.apache.jackrabbit.standalone.Main</Main-Class> <- This is the main class of the jar
</instructions>
</configuration>
...
来自org.apache.jackrabbit.standalone.Main的片段:
...
import org.eclipse.jetty.server.Server;
...
private final Server server = new Server();
...
server.start();
...