新的一周,新的难受。两个项目之间存在互相调用,所以要更新client包,deploy一下,我点击了idea自带的deploy,但是他报了一个profile不存在的错,懵逼了不知道是什么情况,如图:

maven deploy perhaps you are running on a jre rather then a jdk

点击了这个,然后它就报错了

maven deploy perhaps you are running on a jre rather then a jdk

真的是没见过啊,果断请教一下狗子,毕竟他是什么奇怪的问题都能解决的人,按他的方法用命令执行

maven deploy perhaps you are running on a jre rather then a jdk

就是这两行命令,先进到包目录,再clean  deploy,原以为它会一路顺畅,谁知道是我想的太多了

maven deploy perhaps you are running on a jre rather then a jdk

新的一天,新的问题,每个字都能看懂,但是连在一起,是什么意思,看了一下我的配置,idea里是jdk没错啊,环境变量里也是jdk没错啊,那问题来了,那个jre是什么。

他说看一下java的版本,亏我信誓旦旦的说一定是jdk1.7,真香

maven deploy perhaps you are running on a jre rather then a jdk

可是我环境变量配置的1.7,idea配置的1.7,版本怎么就莫名其妙变成1.8了,截图,一步一步的问,把环境变量的配置上移到顶部,这是什么操作,算了,移就移吧,移完重启,再执行那两个命令

maven deploy perhaps you are running on a jre rather then a jdk

成功了

人和人之间的差距就是这么大,狗子就是这么厉害,想死我也想不到会是环境变量的位置问题

以上

It's always the simple things, well executed, that are memorable. 

认真做好的事情,即使非常简单却总是令人难忘。

相关文章:

  • 2021-05-24
  • 2021-10-10
  • 2021-07-01
猜你喜欢
  • 2021-05-13
  • 2021-06-18
  • 2021-05-16
  • 2021-10-19
相关资源
相似解决方案