Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,23 @@ An improved zookeeper inspector
- Support text search in node data viewer
- Support read-only mode for node data viewer

Build
Build in Linux
- $git clone https://github.com/zzhang5/zooinspector.git
- $cd zooinspector/
- $mvn clean package

Run
Run in Linux

- $chmod +x target/zooinspector-pkg/bin/zooinspector.sh
- $target/zooinspector-pkg/bin/zooinspector.sh

Build in Windows
- git clone https://github.com/zzhang5/zooinspector.git
- cd zooinspector
- mvn clean package

Run in Windows

- cd target
- java -jar zooinspector-1.0-SNAPSHOT.jar

25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,31 @@
<defaultGoal>clean install</defaultGoal>
<plugins>

<!-- 使打包的 jar 文件包含了主函数的入口 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">

<!-- 主函数所在的包 + 类名 -->
<mainClass>org.apache.zookeeper.inspector.ZooInspector</mainClass>

</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
Expand Down