Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
7420d256
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
7420d256
编写于
3月 25, 2019
作者:
wu-sheng
提交者:
GitHub
3月 25, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Support compile project agent, backend, UI separately. (#2399)
上级
191740fc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
114 addition
and
27 deletion
+114
-27
apm-dist/pom.xml
apm-dist/pom.xml
+49
-21
apm-sniffer/apm-agent/pom.xml
apm-sniffer/apm-agent/pom.xml
+13
-1
docs/en/guides/How-to-build.md
docs/en/guides/How-to-build.md
+12
-0
pom.xml
pom.xml
+40
-5
未找到文件。
apm-dist/pom.xml
浏览文件 @
7420d256
...
...
@@ -17,7 +17,8 @@
~
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
apm
</artifactId>
<groupId>
org.apache.skywalking
</groupId>
...
...
@@ -28,24 +29,47 @@
<artifactId>
apache-skywalking-apm-incubating
</artifactId>
<packaging>
pom
</packaging>
<dependencies>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
apm-agent-core
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
server-starter
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
apm-webapp
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>
agent
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
apm-agent
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>
backend
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
server-starter
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>
ui
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
apm-webapp
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<finalName>
apache-skywalking-apm-incubating-bin
</finalName>
...
...
@@ -81,8 +105,12 @@
</goals>
<configuration>
<tasks>
<copy
file=
"${project.build.directory}/apache-skywalking-apm-incubating-bin.tar.gz"
tofile=
"${project.basedir}/../dist/apache-skywalking-apm-incubating-bin.tar.gz"
overwrite=
"true"
/>
<copy
file=
"${project.build.directory}/apache-skywalking-apm-incubating-bin.zip"
tofile=
"${project.basedir}/../dist/apache-skywalking-apm-incubating-bin.zip"
overwrite=
"true"
/>
<copy
file=
"${project.build.directory}/apache-skywalking-apm-incubating-bin.tar.gz"
tofile=
"${project.basedir}/../dist/apache-skywalking-apm-incubating-bin.tar.gz"
overwrite=
"true"
/>
<copy
file=
"${project.build.directory}/apache-skywalking-apm-incubating-bin.zip"
tofile=
"${project.basedir}/../dist/apache-skywalking-apm-incubating-bin.zip"
overwrite=
"true"
/>
</tasks>
</configuration>
</execution>
...
...
apm-sniffer/apm-agent/pom.xml
浏览文件 @
7420d256
...
...
@@ -106,13 +106,25 @@
<artifactId>
maven-antrun-plugin
</artifactId>
<executions>
<execution>
<phase>
package
</phase>
<id>
clean
</id>
<phase>
clean
</phase>
<goals>
<goal>
run
</goal>
</goals>
<configuration>
<tasks>
<delete
dir=
"${project.basedir}/../../skywalking-agent"
/>
</tasks>
</configuration>
</execution>
<execution>
<id>
package
</id>
<phase>
package
</phase>
<goals>
<goal>
run
</goal>
</goals>
<configuration>
<tasks>
<mkdir
dir=
"${project.basedir}/../../skywalking-agent"
/>
<copy
file=
"${project.build.directory}/skywalking-agent.jar"
tofile=
"${project.basedir}/../../skywalking-agent/skywalking-agent.jar"
overwrite=
"true"
/>
<mkdir
dir=
"${project.basedir}/../../skywalking-agent/config"
/>
...
...
docs/en/guides/How-to-build.md
浏览文件 @
7420d256
...
...
@@ -23,6 +23,18 @@ For each official Apache release, there is a complete and independent source cod
1.
Run
`./mvnw clean package -DskipTests`
1.
All packages are in
`/dist`
.(.tar.gz for Linux and .zip for Windows).
### Advanced compile
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
-
Compile agent and package
> ./mvnw package -Pagent,dist
-
Compile backend and package
> ./mvnw package -Pbackend,dist
-
Compile UI and package
> ./mvnw package -Pui,dist
## Setup your IntelliJ IDEA
1.
Import the project as a maven project
1.
Run
`./mvnw compile -Dmaven.test.skip=true`
to compile project and generate source codes. Because we use gRPC and protobuf.
...
...
pom.xml
浏览文件 @
7420d256
...
...
@@ -32,13 +32,8 @@
</parent>
<modules>
<module>
oap-server
</module>
<module>
apm-commons
</module>
<module>
apm-sniffer
</module>
<module>
apm-application-toolkit
</module>
<module>
apm-protocol
</module>
<module>
apm-webapp
</module>
<module>
apm-dist
</module>
<module>
apm-checkstyle
</module>
</modules>
<packaging>
pom
</packaging>
...
...
@@ -80,6 +75,46 @@
</mailingList>
</mailingLists>
<profiles>
<profile>
<id>
agent
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<modules>
<module>
apm-sniffer
</module>
<module>
apm-application-toolkit
</module>
</modules>
</profile>
<profile>
<id>
backend
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<modules>
<module>
oap-server
</module>
</modules>
</profile>
<profile>
<id>
ui
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<modules>
<module>
apm-webapp
</module>
</modules>
</profile>
<profile>
<id>
dist
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<modules>
<module>
apm-dist
</module>
</modules>
</profile>
</profiles>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<compiler.version>
1.8
</compiler.version>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录