Skip to content

Commit 7c535f8

Browse files
authored
Fix es7 dist not uploaded in the release process. (#4112)
1 parent 4ed21e1 commit 7c535f8

File tree

105 files changed

+129
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+129
-32
lines changed

apm-dist-es7/pom.xml

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one or more
4+
~ contributor license agreements. See the NOTICE file distributed with
5+
~ this work for additional information regarding copyright ownership.
6+
~ The ASF licenses this file to You under the Apache License, Version 2.0
7+
~ (the "License"); you may not use this file except in compliance with
8+
~ the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
~
18+
-->
19+
20+
<project xmlns="http://maven.apache.org/POM/4.0.0"
21+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23+
<parent>
24+
<artifactId>apm</artifactId>
25+
<groupId>org.apache.skywalking</groupId>
26+
<version>6.6.0-SNAPSHOT</version>
27+
</parent>
28+
<modelVersion>4.0.0</modelVersion>
29+
30+
<artifactId>apache-skywalking-apm-es7</artifactId>
31+
<packaging>pom</packaging>
32+
33+
<profiles>
34+
<profile>
35+
<id>agent</id>
36+
<activation>
37+
<activeByDefault>true</activeByDefault>
38+
</activation>
39+
<dependencies>
40+
<dependency>
41+
<groupId>org.apache.skywalking</groupId>
42+
<artifactId>apm-agent</artifactId>
43+
<version>${project.version}</version>
44+
</dependency>
45+
</dependencies>
46+
</profile>
47+
<profile>
48+
<id>backend</id>
49+
<activation>
50+
<activeByDefault>true</activeByDefault>
51+
</activation>
52+
<dependencies>
53+
<dependency>
54+
<groupId>org.apache.skywalking</groupId>
55+
<artifactId>server-starter-es7</artifactId>
56+
<version>${project.version}</version>
57+
</dependency>
58+
</dependencies>
59+
</profile>
60+
<profile>
61+
<id>ui</id>
62+
<activation>
63+
<activeByDefault>true</activeByDefault>
64+
</activation>
65+
<dependencies>
66+
<dependency>
67+
<groupId>org.apache.skywalking</groupId>
68+
<artifactId>apm-webapp</artifactId>
69+
<version>${project.version}</version>
70+
</dependency>
71+
</dependencies>
72+
</profile>
73+
</profiles>
74+
75+
<build>
76+
<plugins>
77+
<plugin>
78+
<artifactId>maven-assembly-plugin</artifactId>
79+
<executions>
80+
<execution>
81+
<id>dist-es7</id>
82+
<phase>package</phase>
83+
<goals>
84+
<goal>single</goal>
85+
</goals>
86+
<configuration>
87+
<finalName>apache-skywalking-apm-bin-es7</finalName>
88+
<descriptors>
89+
<descriptor>${project.basedir}/src/main/assembly/binary-es7.xml</descriptor>
90+
</descriptors>
91+
</configuration>
92+
</execution>
93+
</executions>
94+
<configuration>
95+
<attach>true</attach>
96+
<tarLongFileMode>posix</tarLongFileMode>
97+
<runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot>
98+
<appendAssemblyId>false</appendAssemblyId>
99+
</configuration>
100+
</plugin>
101+
<plugin>
102+
<artifactId>maven-antrun-plugin</artifactId>
103+
<executions>
104+
<execution>
105+
<id>dist-es7</id>
106+
<phase>package</phase>
107+
<goals>
108+
<goal>run</goal>
109+
</goals>
110+
<configuration>
111+
<tasks>
112+
<copy file="${project.build.directory}/apache-skywalking-apm-bin-es7.tar.gz" tofile="${project.basedir}/../dist/apache-skywalking-apm-bin-es7.tar.gz" overwrite="true" />
113+
<copy file="${project.build.directory}/apache-skywalking-apm-bin-es7.zip" tofile="${project.basedir}/../dist/apache-skywalking-apm-bin-es7.zip" overwrite="true" />
114+
</tasks>
115+
</configuration>
116+
</execution>
117+
</executions>
118+
</plugin>
119+
</plugins>
120+
</build>
121+
</project>

apm-dist/src/main/assembly/binary-es7.xml renamed to apm-dist-es7/src/main/assembly/binary-es7.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</formats>
2828
<fileSets>
2929
<fileSet>
30-
<directory>${project.basedir}/bin</directory>
30+
<directory>${project.basedir}/../dist-material/bin</directory>
3131
<outputDirectory>/bin</outputDirectory>
3232
<includes>
3333
<include>*.sh</include>
@@ -36,7 +36,7 @@
3636
<fileMode>0755</fileMode>
3737
</fileSet>
3838
<fileSet>
39-
<directory>src/main/assembly</directory>
39+
<directory>${project.basedir}/../dist-material</directory>
4040
<outputDirectory>/config</outputDirectory>
4141
<includes>
4242
<include>log4j2.xml</include>
@@ -87,7 +87,7 @@
8787
</fileSet>
8888

8989
<fileSet>
90-
<directory>${project.basedir}/release-docs</directory>
90+
<directory>${project.basedir}/../dist-material/release-docs</directory>
9191
<outputDirectory>/</outputDirectory>
9292
</fileSet>
9393
</fileSets>

apm-dist/pom.xml

-26
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,6 @@
8888
</descriptors>
8989
</configuration>
9090
</execution>
91-
<execution>
92-
<id>dist-es7</id>
93-
<phase>package</phase>
94-
<goals>
95-
<goal>single</goal>
96-
</goals>
97-
<configuration>
98-
<finalName>apache-skywalking-apm-bin-es7</finalName>
99-
<descriptors>
100-
<descriptor>${project.basedir}/src/main/assembly/binary-es7.xml</descriptor>
101-
</descriptors>
102-
</configuration>
103-
</execution>
10491
</executions>
10592
<configuration>
10693
<attach>true</attach>
@@ -125,19 +112,6 @@
125112
</tasks>
126113
</configuration>
127114
</execution>
128-
<execution>
129-
<id>dist-es7</id>
130-
<phase>package</phase>
131-
<goals>
132-
<goal>run</goal>
133-
</goals>
134-
<configuration>
135-
<tasks>
136-
<copy file="${project.build.directory}/apache-skywalking-apm-bin-es7.tar.gz" tofile="${project.basedir}/../dist/apache-skywalking-apm-bin-es7.tar.gz" overwrite="true" />
137-
<copy file="${project.build.directory}/apache-skywalking-apm-bin-es7.zip" tofile="${project.basedir}/../dist/apache-skywalking-apm-bin-es7.zip" overwrite="true" />
138-
</tasks>
139-
</configuration>
140-
</execution>
141115
</executions>
142116
</plugin>
143117
</plugins>

apm-dist/src/main/assembly/binary.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</formats>
2828
<fileSets>
2929
<fileSet>
30-
<directory>${project.basedir}/bin</directory>
30+
<directory>${project.basedir}/../dist-material/bin</directory>
3131
<outputDirectory>/bin</outputDirectory>
3232
<includes>
3333
<include>*.sh</include>
@@ -36,7 +36,7 @@
3636
<fileMode>0755</fileMode>
3737
</fileSet>
3838
<fileSet>
39-
<directory>src/main/assembly</directory>
39+
<directory>${project.basedir}/../dist-material</directory>
4040
<outputDirectory>/config</outputDirectory>
4141
<includes>
4242
<include>log4j2.xml</include>
@@ -87,7 +87,7 @@
8787
</fileSet>
8888

8989
<fileSet>
90-
<directory>${project.basedir}/release-docs</directory>
90+
<directory>${project.basedir}/../dist-material/release-docs</directory>
9191
<outputDirectory>/</outputDirectory>
9292
</fileSet>
9393
</fileSets>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
</activation>
111111
<modules>
112112
<module>apm-dist</module>
113+
<module>apm-dist-es7</module>
113114
</modules>
114115
</profile>
115116
<profile>
@@ -123,6 +124,7 @@
123124
<module>oap-server</module>
124125
<module>apm-webapp</module>
125126
<module>apm-dist</module>
127+
<module>apm-dist-es7</module>
126128
</modules>
127129
<build>
128130
<plugins>

0 commit comments

Comments
 (0)