Error running Command line is too long. Shorten command line for

Error running 'xxxxxxxxApplication': Command line is too long. Shorten command line for xxxxxxx?

使用网上提供的方法

(一)

1.在项目里的idea/workspace.xml文件,找到<component name="PropertiesComponent"></component >标签

2.在PropertiesComponent 标签里添加一行,具体如下:

<property name="dynamic.classpath" value="true" />

启动还是报错

(二)

设置JAR manifest第一次可以正常启动但是关掉项目第二次启动就会遇到其他奇奇怪怪的问题,

真的很玄学,我也不清楚什么原因.

设置classpath那个启动不了

(三)

我的解决办法: 最终是将存放maven依赖的仓库地址改的短一些就好了 

<localRepository>/path/to/local/repo</localRepository>

就是这里,把路径的层级和名称都改短一些  顺利运行,奇奇怪怪的知识又增加了......


版权声明:本文为qq_44891909原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。