Skip to content

Commit aee4926

Browse files
committed
Added maven assemble definitions
1 parent d8d08d2 commit aee4926

File tree

8 files changed

+360
-1
lines changed

8 files changed

+360
-1
lines changed

driver-pulsar/deploy/deploy-pulsar.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with 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,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120

221
- name: Format and mount disks
322
hosts: pulsar

driver-pulsar/deploy/templates/bookkeeper.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with 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,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120

221
zkServers={{ zookeeperServers }}
322

driver-pulsar/deploy/templates/broker.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with 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,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120

221

322
### Use all the broker defaults except for the following

driver-pulsar/deploy/templates/client.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with 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,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120

221
# Pulsar Client configuration
322
webServiceUrl=http://{{ hostvars[groups['pulsar'][0]].private_ip }}:8080/

package/pom.xml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!--
2+
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
20+
-->
21+
<project xmlns="http://maven.apache.org/POM/4.0.0" 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+
<modelVersion>4.0.0</modelVersion>
24+
25+
<parent>
26+
<groupId>io.openmessaging.benchmark</groupId>
27+
<artifactId>messaging-benchmark</artifactId>
28+
<version>0.0.1-SNAPSHOT</version>
29+
<relativePath>..</relativePath>
30+
</parent>
31+
32+
<artifactId>package</artifactId>
33+
<name>Packaging</name>
34+
<packaging>pom</packaging>
35+
36+
<build>
37+
<plugins>
38+
<plugin>
39+
<artifactId>maven-assembly-plugin</artifactId>
40+
<version>3.1.0</version>
41+
<executions>
42+
<execution>
43+
<id>distro-assembly</id>
44+
<phase>package</phase>
45+
<goals>
46+
<goal>single</goal>
47+
</goals>
48+
<configuration>
49+
<attach>false</attach>
50+
<tarLongFileMode>posix</tarLongFileMode>
51+
<finalName>openmessaging-benchmark-${project.version}</finalName>
52+
<descriptors>
53+
<descriptor>src/assemble/bin.xml</descriptor>
54+
<descriptor>src/assemble/src.xml</descriptor>
55+
</descriptors>
56+
</configuration>
57+
</execution>
58+
</executions>
59+
</plugin>
60+
</plugins>
61+
</build>
62+
63+
<dependencies>
64+
<dependency>
65+
<groupId>${project.groupId}</groupId>
66+
<artifactId>benchmark-framework</artifactId>
67+
<version>${project.version}</version>
68+
</dependency>
69+
</dependencies>
70+
71+
</project>

package/src/assemble/bin.xml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<!--
2+
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
20+
-->
21+
<assembly
22+
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
23+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
25+
<id>bin</id>
26+
<formats>
27+
<format>tar.gz</format>
28+
</formats>
29+
<includeBaseDirectory>true</includeBaseDirectory>
30+
<moduleSets>
31+
<moduleSet>
32+
<useAllReactorProjects>true</useAllReactorProjects>
33+
</moduleSet>
34+
</moduleSets>
35+
36+
<fileSets>
37+
<fileSet>
38+
<directory>${basedir}/../workloads</directory>
39+
</fileSet>
40+
<fileSet>
41+
<directory>${basedir}/../bin</directory>
42+
<fileMode>755</fileMode>
43+
</fileSet>
44+
45+
<fileSet>
46+
<directory>${basedir}/..</directory>
47+
48+
<includes>
49+
<include>**/driver-*/deploy/**</include>
50+
<include>**/driver-*/*.yaml</include>
51+
</includes>
52+
53+
<excludes>
54+
<exclude>**/.terraform/**</exclude>
55+
<exclude>**/terraform.tfstate</exclude>
56+
<exclude>**/terraform.tfstate.backup</exclude>
57+
<exclude>**/*.retry</exclude>
58+
</excludes>
59+
</fileSet>
60+
</fileSets>
61+
62+
<files>
63+
<file>
64+
<source>${basedir}/../README.md</source>
65+
<outputDirectory>.</outputDirectory>
66+
<fileMode>644</fileMode>
67+
</file>
68+
<file>
69+
<source>${basedir}/../LICENSE</source>
70+
<destName>LICENSE</destName>
71+
<outputDirectory>.</outputDirectory>
72+
<fileMode>644</fileMode>
73+
</file>
74+
</files>
75+
<dependencySets>
76+
<dependencySet>
77+
<outputDirectory>lib</outputDirectory>
78+
<unpack>false</unpack>
79+
<scope>compile</scope>
80+
<useProjectArtifact>false</useProjectArtifact>
81+
<!-- Include 'groupId' in the dependencies Jar names to better identify
82+
the provenance of the jar -->
83+
<outputFileNameMapping>${artifact.groupId}-${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
84+
</dependencySet>
85+
</dependencySets>
86+
</assembly>

package/src/assemble/src.xml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<!--
2+
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
20+
-->
21+
<assembly
22+
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
23+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
25+
<id>src</id>
26+
<formats>
27+
<format>tar.gz</format>
28+
</formats>
29+
<includeBaseDirectory>true</includeBaseDirectory>
30+
31+
<moduleSets>
32+
<moduleSet>
33+
<useAllReactorProjects>true</useAllReactorProjects>
34+
35+
<sources>
36+
<includeModuleDirectory>false</includeModuleDirectory>
37+
<fileSets>
38+
<fileSet>
39+
<!-- <outputDirectory>sources/${module.artifactId}</outputDirectory> -->
40+
<excludes>
41+
<exclude>.git/**</exclude>
42+
<exclude>**/.gitignore</exclude>
43+
<exclude>**/.svn</exclude>
44+
<exclude>**/*.iws</exclude>
45+
<exclude>**/*.ipr</exclude>
46+
<exclude>**/*.iml</exclude>
47+
<exclude>**/*.cbp</exclude>
48+
<exclude>**/*.pyc</exclude>
49+
<exclude>**/.classpath</exclude>
50+
<exclude>**/.project</exclude>
51+
<exclude>**/.settings</exclude>
52+
<exclude>**/target/**</exclude>
53+
<exclude>**/.terraform/**</exclude>
54+
<exclude>**/terraform.tfstate</exclude>
55+
<exclude>**/terraform.tfstate.backup</exclude>
56+
<exclude>**/*.retry</exclude>
57+
<exclude>**/.settings/**</exclude>
58+
</excludes>
59+
</fileSet>
60+
</fileSets>
61+
</sources>
62+
</moduleSet>
63+
</moduleSets>
64+
65+
<!-- <fileSets>
66+
<fileSet>
67+
<directory>..</directory>
68+
69+
<includes>
70+
<include>**/README.md</include>
71+
<include>**/DISCLAIMER</include>
72+
<include>**/LICENSE</include>
73+
<include>**/NOTICE</include>
74+
<include>**/pom.xml</include>
75+
<include>**/src/**</include>
76+
<include>**/pulsar-client-cpp/**</include>
77+
<include>**/conf/**</include>
78+
<include>**/bin/**</include>
79+
<include>**/*.txt</include>
80+
<include>doc/*</include>
81+
</includes>
82+
<excludes>
83+
<exclude>.git/**</exclude>
84+
<exclude>**/.gitignore</exclude>
85+
<exclude>**/.svn</exclude>
86+
<exclude>**/*.iws</exclude>
87+
<exclude>**/*.ipr</exclude>
88+
<exclude>**/*.iml</exclude>
89+
<exclude>**/*.cbp</exclude>
90+
<exclude>**/*.pyc</exclude>
91+
<exclude>**/.classpath</exclude>
92+
<exclude>**/.project</exclude>
93+
<exclude>**/.settings</exclude>
94+
<exclude>**/target/**</exclude>
95+
<exclude>**/CMakeFiles/**</exclude>
96+
<exclude>**/CMakeCache.txt</exclude>
97+
<exclude>**/cmake_install.cmake</exclude>
98+
<exclude>pulsar-client-cpp/**/Makefile</exclude>
99+
<exclude>pulsar-client-cpp/tests/main</exclude>
100+
<exclude>pulsar-client-cpp/examples/SampleAsyncProducer</exclude>
101+
<exclude>pulsar-client-cpp/examples/SampleConsumer</exclude>
102+
<exclude>pulsar-client-cpp/examples/SampleConsumerListener</exclude>
103+
<exclude>pulsar-client-cpp/examples/SampleProducer</exclude>
104+
<exclude>pulsar-client-cpp/perf/perfProducer</exclude>
105+
<exclude>pulsar-client-cpp/perf/perfConsumer</exclude>
106+
107+
<exclude>**/python/dist/**</exclude>
108+
<exclude>**/python/wheelhouse/**</exclude>
109+
<exclude>**/python/MANIFEST</exclude>
110+
<exclude>**/*.egg-info/**</exclude>
111+
until the code that does this is fixed
112+
<exclude>**/*.log</exclude>
113+
<exclude>**/build/**</exclude>
114+
<exclude>**/file:/**</exclude>
115+
<exclude>**/SecurityAuth.audit*</exclude>
116+
<exclude>**/site/**</exclude>
117+
<exclude>**/.idea/**</exclude>
118+
<exclude>**/*.a</exclude>
119+
<exclude>**/*.so</exclude>
120+
<exclude>**/*.so.*</exclude>
121+
<exclude>**/*.dylib</exclude>
122+
</excludes>
123+
</fileSet>
124+
</fileSets> -->
125+
</assembly>

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
under the License.
1919
2020
-->
21-
2221
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2322
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2423
<modelVersion>4.0.0</modelVersion>
@@ -35,6 +34,8 @@
3534

3635
<module>driver-pulsar</module>
3736
<module>driver-kafka</module>
37+
38+
<module>package</module>
3839
</modules>
3940

4041

0 commit comments

Comments
 (0)