Mina2.0学习笔记一(在Eclipse上学习Mina2.0源码)

1、下载解压Maven 2.2.1

下载:http://maven.apache.org/download.html

解压到:D:\ProgramFiles\apache-maven-2.2.1

配置环境变量:M2_HOME=D:\ProgramFiles\apache-maven-2.2.1

                     Path中添加%M2_HOME%\bin

 

2、安装CollabNet Subversion

(1) CollabNet Subversion Server and Client v1.6.12 (for Windows)和

     CollabNet Subversion Command-Line Client v1.6.12 (for Windows)下载:

     http://www.open.collab.net/cn/downloads/subversion/

 

(2) 由于CollabNet Subverison 已经集成了Apache服务器,所以无需额外安装Apache服务器。

 

(3) 安装CollabNet Subversion Server and Client v1.6.12 (for Windows):

     一路默认安装,Apache默认端口为80[可自行修改]。

    subversion 默认仓库存储路径为C:\svn_repository[可自行修改]。

    Notice: 如何修改了Apache默认端口,访问时就必须加上端口号了

 

(4) 重启电脑。尽管安装完成后没有提示重启电脑,但是重启电脑前,Apache 服务无法启动。

 

(5) 重启后运行"C:\program files\collabnet\subversion server\httpd\bin"下的"ApacheMonitor.exe"打开

     Apache控制台,可以看到控制台的状态栏下有如下内容显示,代表Apache和Subversion整合成功。

     Apache/2.2.13(win32) DAV/2 SVN/1.6.6

 

(6) 安装CollabNet Subversion Command-Line Client v1.6.12 (for Windows)

     一路默认即可。

 

3、Building Mina2.0

    cmd 在D:\ProgramFiles\Mina下

$ svn co https://svn.apache.org/repos/asf/mina/branches/mina-2-cleanup/  mina2.0
$ cd mina2.0
$ mvn -Dwith-LGPL-dependencies clean install             # Build packages (JARs) for the core API and other extensions and install them to the local Maven repository.
$ mvn -Dwith-LGPL-dependencies site                      # Generate reports (JavaDoc and JXR)
$ mvn -Dwith-LGPL-dependencies package assembly:assembly # Generate a tarball (package goal needed to fix an assembly plugin bug)
$ mvn -Dwith-LGPL-dependencies eclipse:eclipse           # Generate Eclipse project files if you want

 

4、下载Eclipse

http://www.eclipse.org/downloads/packages/eclipse-classic-360/heliosr

 

5、安装m2eclipse插件

打开Eclipse,Help->install new software...->work with:http://m2eclipse.sonatype.org/sites/m2e/

查看window->preferences->java-build path->M2_Repo正确否,应该是

C:\Documents and Settings\Administrator\.m2\repository

 

6、在Eclipse中导入D:\ProgramFiles\Mina\Mina2.0

new->import->existing project into workspace->选择D:\ProgramFiles\Mina\Mina2.0,然后全部导入。

你可能感兴趣的:(apache,eclipse,maven,Mina,subversion)