一、所需软件和工具下载
二、安装工具
三、将dubbo打war包


一、所需软件和工具下载

所需软件和工具:dubbo源码包,jdk,maven

1、dubbo下载

Dubbo的下载地址:https://github.com/apache/incubator-dubbo
dubbo-admin war包的制作_第1张图片
dubbo-admin war包的制作_第2张图片

2、jdk下载

下载地址:https://www.oracle.com/technetwork/java/javase/archive-139210.html

3、maven下载

下载地址:https://mirrors.tuna.tsinghua.edu.cn/apache/maven/

二、安装工具软件

    在本机虚拟机centos7.2系统下安装,jdk,maven(也可以用Windows系统安装windows版jdk,maven)

1、jdk安装

tar  xf  jdk-8u152-linux-x64.tar.gz  -C  /usr/local/
vim /etc/profile
#JDK1.8.0_152                                                                   
export JAVA_HOME=/usr/local/jdk1.8.0_152                                                           
export PATH=$PATH:$JAVA_HOME/bin                                                                   
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/jre/lib/dt.jar:$JAVA_HOME/jre/lib/tools.jar

source /etc/profile #使配置生效

完成后的测试

[root@ss jdk1.8.0_152]# java -version
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

2、maven的安装

tar xf  apache-maven-3.3.9-bin.tar.gz  -C  /usr/local/                                                
vim /etc/profile 
#Maven3.3.9                                                                
export MAVEN_HOME=/usr/local/apache-maven-3.3.9                            
export PATH=${PATH}:${MAVEN_HOME}/bin   

source /etc/profile

完成后的验证

[root@ssWEB-INF]#mvn -v                                                                          查看启动状态
Apache Maven 3.3.9 (bb42d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /usr/local/apache-maven-3.3.9
Java version: 1.8.0_152, vendor: Oracle Corporation
Java home: /usr/local/jdk1.8.0_152/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-327.el7.x86_64", arch: "amd64", family: "unix"   

三、将dubbo打成war包

传incubator-dubbo-dubbo-2.5.6.zip到linux
解压压缩包:
[root@ss tools]# unzip incubator-dubbo-dubbo-2.5.6.zip
进入dubbo-admin目录
[root@ss tools]# cd incubator-dubbo-dubbo-2.5.6/dubbo-admin
制作war包
[root@ss dubbo-admin]# mvn package -Dmaven.skip.test=true
dubbo-admin war包的制作_第3张图片
然后我们所需要的war包,就存在于target的目录下了