报错原因是pom.xml配置文件中没有指定main入口信息,在pom.xml文件中添加如下代码:

    <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.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>multiplethread.TestThread</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

最新文章

  1. 如何用C#代码判断一个类的类型
  2. jQuery中eq()方法用法实例
  3. make: Nothing to be done for `first&#39;
  4. log4j使用教程
  5. Decks
  6. 如何在jQuery中使用 setInterval,setTimeout
  7. Cocos2d-x 3.x plist+png 做动画
  8. 【NOIP2014】DAY2题解+代码
  9. Java Object 对象拷贝答疑
  10. 80x86的3种工作方式
  11. Codeforces Round #430 D. Vitya and Strange Lesson
  12. pwn学习(2)
  13. PHP选择排序算法
  14. 初学java集合框架笔记
  15. visual studio 2017调试时闪退。
  16. xp_readerrorlog与sp_readerrorlog
  17. VS2013第一个应用boost的程序
  18. short url短链接原理
  19. [转载]Angular4 组件通讯方法大全
  20. IDEA 中edit configurations加号找不到tomcat server

热门文章

  1. Authentication failure. Retrying - 彻底解决vagrant up时警告
  2. Spring AOP设计
  3. 算法的时间复杂度O
  4. CentOS 安装抓包工具wireshark-tshark抓包工具
  5. VS2010/VS2012/VS2015下openGL环境配置(转)
  6. Python - Django - 装饰器版的登陆校验
  7. PLSQL集合类型的使用总结
  8. [转]jkeyll的安装步骤
  9. [Google] 9717 取数对弈
  10. SpringBoot学习笔记:Redis缓存