由于平时做应用服务器开发,所以经常要参考一些国外主流开源服务器的代码,现初步整理一下:
1. Geronimo
- 官网:http://geronimo.apache.org/
- wiki:http://cwiki.apache.org/geronimo/
- 源码:https://svn.apache.org/repos/asf/geronimo/server
- 构建需求:mvn版本,2.0以后版本,jdk1.5不能高于1.6,svn版本1.5以上
settings.xml中配置mirror:
<mirrors>
<mirror>
<id>java.net</id>
<name>Mirror of https://maven-repository.dev.java.net/nonav/repository/</name>
<url>http://download.java.net/maven/1/</url>
<mirrorOf>java.net</mirrorOf>
</mirror>
</mirrors>
启动:startup.bat
管理界面:http://localhost:8000/console/
用户名:system
密码:manager
===================================================
2.Jonas
- 官网:http://wiki.jonas.ow2.org/xwiki/bin/view/Main/WebHome
- wiki:https://wiki.ow2.org/jonas/Wiki.jsp?page=Main
- 源码:
svn://svn.forge.objectweb.org/svnroot/easybeans/trunk/util
svn://svn.forge.objectweb.org/svnroot/jonas/jonas/trunk/jonas
svn://svn.forge.objectweb.org/svnroot/easybeans/trunk/ow2-bundles
启动、停止:
jonas start 启动 jonas stop 停止
管理界面:http://localhost:9000/jonasAdmin/#
===================================================
3.Glassfish:
- 官网:
- wiki:
- 源码:https://glassfish-svn.dev.java.net/svn/glassfish-svn/trunk/v3
- 构建需求:jdk1.6版本以上
构建命令:
1.mvn -P release-phase1
2.mvn install package -Dmaven.test.skip=true
值得注意的是需使用maven-eclipse-plugin的2.6版本生成eclipse工程,否则报错
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean org.apache.mav
en.plugins:maven-eclipse-plugin:2.6:eclipse
启动:asadmin start-domain domain1
停止:asadmin stop-domain domain1
管理台页面:http://localhost:4848
注意:glassfish需用关闭服务器命令关闭,若只关闭ms-dos窗口则glassfish进程不能关闭,不能再次启动glassfish。
===================================================
4.Tomcat
- 源码:http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk
5.Jetty
- 源码:http://svn.codehaus.org/jetty/jetty/tags/jetty-7.0.0pre3
6.Felix:
- 官网:http://felix.apache.org/site/index.html
- 源码:http://svn.apache.org/repos/asf/felix/
- 子项目KARAF
- 官网:http://felix.apache.org/site/apache-felix-karaf.html
- 源码:http://svn.apache.org/repos/asf/felix/trunk/karaf/
===================================================
7.Servicemix
- 官网:http://servicemix.apache.org/home.html
- 源码:http://svn.apache.org/repos/asf/servicemix/smx4
===================================================
8.Ops4j
- 源码:https://scm.ops4j.org/repos/ops4j/projects
- 子项目pax-web
- 源码:https://scm.ops4j.org/repos/ops4j/projects/pax/web
===================================================
9.Spring
- Spring-osgi源码:https://anonsvn.springsource.org/svn/spring-osgi/trunk
- SpringSource源码:http://blog.springsource.com/2009/07/15/git-migration/
- osgi-web-container
- 源码:git://git.springsource.org/osgi-web-container/osgi-web-container.git
- 说明:SpringSource的源码工程使用git而非svn,所以需安装git才可下载
- Spring3.0源码:https://src.springframework.org/svn/spring-framework/
- Spring2.5 及以下版本源码:https://src.springframework.org/svn/spring-maintenance/
- Spring Security源码:https://src.springframework.org/svn/spring-security/
===================================================
11. JBOSS源码
- 源码:http://anonsvn.jboss.org/repos/jbossas