At work, there are times when you need to process some data, use Java to compare aspects, such as hbase, but you need to execute it in the shell, so the extra bag is harder to get into, and it's easy to package with Maven.
First Pop.xml write the required jar packages in the project and the classes that need to be run, as shown below.
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>0.94.5</version>
</dependency>
This is a dependent package through dependency, which is especially important, depending on this part
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/59/AE/wKioL1TcGh7wa8L-AAK-3SlkIpE866.jpg "title=" Untitled. png "alt=" wkiol1tcgh7wa8l-aak-3slkipe866.jpg "/>
The Red Line section is the class that needs to be run, and then run as assembly this option to package, OK,
Copy to Shell side and run the Java-jar package to
Java Project package runs in the shell