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.
git clone https://github.com/apache/incubator-skywalking.git
cd incubator-skywalking/
git checkout [tagname]
(Optional, switch if want to build a release from source codes)git submodule init
git submodule update
mvn clean package -DskipTests
/dist
.(.tar.gz for Linux and .zip for Windows).mvn clean package -DskipTests
/dist
.(.tar.gz for Linux and .zip for Windows).mvn 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/protobufgrpc-java
and java
folders in apm-collector/apm-collector-remote/apm-remote-grpc-provider/target/generated-sources/protobufDue to license incompatibilities/restrictions these plugins under apm-sniffer/apm-sdk-plugin/
are not built by default. Download them manually into the ci-dependencies/
directory and the plugins will be included in the maven reactor and built. The names of the artifacts downloaded and placed in the ci-dependencies/
directory must be exact: