同步操作将从 SkyWalking/skywalking 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This document helps people to compile and build the project in your maven and set your IDE.
Because we are using Git submodule, we recommend don't use GitHub
tag or release page to download source codes for compiling.
If you need to execute build behind the proxy, edit the .mvn/jvm.config and put the follow properties:
-Dhttp.proxyHost=proxy_ip
-Dhttp.proxyPort=proxy_port
-Dhttps.proxyHost=proxy_ip
-Dhttps.proxyPort=proxy_port
-Dhttp.proxyUser=username
-Dhttp.proxyPassword=password
Prepare git, JDK8+ and Maven 3.6+
Clone project
If you want to build a release from source codes, provide a tag name
by using git clone -b [tag_name] ...
while cloning.
git clone --recurse-submodules https://github.com/apache/skywalking.git
cd skywalking/
OR
git clone https://github.com/apache/skywalking.git
cd skywalking/
git submodule init
git submodule update
Run ./mvnw clean package -DskipTests
All packages are in /dist
(.tar.gz for Linux and .zip for Windows).
Apache source code release
?For each official Apache release, there is a complete and independent source code tar, which is including all source codes. You could download it from SkyWalking Apache download page. No git related stuff required when compiling this. Just follow these steps.
./mvnw clean package -DskipTests
/dist
.(.tar.gz for Linux and .zip for Windows).SkyWalking is a complex maven project, including many modules, which could cause long compiling time. If you just want to recompile part of the project, you have following options
./mvnw package -Pagent,dist
or
make build.agent
If you intend to compile a single one plugin, such as in the dev stage, you could
cd plugin_module_dir & mvn clean package
./mvnw package -Pbackend,dist
or
make build.backend
./mvnw package -Pui,dist
or
make build.ui
We can build docker images of backend
and ui
with Makefile
located in root folder.
Refer to Build docker image for more details.
NOTICE: If you clone the codes from GitHub, please make sure that you had finished step 1 to 3 in section Build from GitHub, if you download the source codes from the official website of SkyWalking, please make sure that you had followed the steps in section Build from Apache source code release.
./mvnw compile -Dmaven.test.skip=true
to compile project and generate source codes. Because we use gRPC and protobuf.grpc-java
and java
folders in apm-protocol/apm-network/target/generated-sources/protobuf
grpc-java
and java
folders in oap-server/server-core/target/generated-sources/protobuf
grpc-java
and java
folders in oap-server/server-receiver-plugin/receiver-proto/target/generated-sources/fbs
grpc-java
and java
folders in oap-server/server-receiver-plugin/receiver-proto/target/generated-sources/protobuf
grpc-java
and java
folders in oap-server/exporter/target/generated-sources/protobuf
grpc-java
and java
folders in oap-server/server-configuration/grpc-configuration-sync/target/generated-sources/protobuf
grpc-java
and java
folders in oap-server/server-alarm-plugin/target/generated-sources/protobuf
antlr4
folder in oap-server/oal-grammar/target/generated-sources
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。