关于Java的一些知识点扫盲 fat-jar
  fat-jar 或者叫uber-jar
  the fat-jar is the jar,which contains classes and resources from all the libraries, on which your project depends
  fat-jar 其实也是一个jar,他本省包含了当前工程中所有依赖包中的类,
  <plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-jar-plugin</artifactId>
  <configuration>
  <archive>
  <manifest>
  <mainClass>com.volshell.Starter</mainClass>
  </manifest>
  </archive>
  </configuration>
  </plugin>
  如果只添加上面的配置会出现,“java.lang.NoClassDefFoundError”的错误日志。
  需要添加onejar-plugin的配置。
  <plugin>
  <groupId>com.jolira</groupId>
  <artifactId>onejar-maven-plugin</artifactId>
  <version>1.4.4</version>
  <executions>
  <execution>
  <configuration>
  <onejarVersion>0.97</onejarVersion>
  <classifier>onejar</classifier>
  </configuration>
  <!--会在上面指定生成的jar的名称添加one-jar的后缀-->
  <goals>
  <goal>one-jar</goal>
  </goals>
  </execution>
  </executions>
  </plugin>
  REFERENCES
  Packing your java application as one (or fat) jar