1:dubbo-admin准备
环境准备:zk安装 。
maven setting:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>D:/program_files/mvn_rep_361</localRepository>
<pluginGroups>
<pluginGroup>org.apache.tomcat.maven</pluginGroup>
</pluginGroups>
<proxies>
</proxies>
<servers>
</servers>
<profiles>
<profile>
<id>central</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>aliyun</id>
<repositories>
<repository>
<id>aliyun</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>jdk18</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>central</activeProfile>
<activeProfile>aliyun</activeProfile>
</activeProfiles>
</settings>
1.1:下载代码
git clone https://gitee.com/dongsir2020/dubbo-admin.git
。
1.2:切换分支
因为主干分支一直不能编译成功,使用tag后成功了,你可以根据情况看是否需要该步骤:
git branch 0.2.0-local 0.2.0
。
1.3:编译
进入项目目录,执行D:\\program_files\\apache-maven-3.6.1-form\\apache-maven-3.6.1\\bin\\mvn clean package -Dmaven.test.skip=true
,具体根据情况修改。编译完成后在dubbo-admin-distribution\target
会生成可执行jar包,如下图:
1.4:运行
直接使用如下命令执行在1.3:编译
生成的jar包,如下:
1.5:访问
localhost:8080
访问:
点击详情可以查看都有哪些服务节点:
可以查看服务提供者,以及服务消费者信息。