为了账号安全,请及时绑定邮箱和手机立即绑定

maven配置后报错不知道什么原因,求解决

[root@bogon apache-maven-3.6.0]# . /etc/profile

-bash: export: `=': not a valid identifier

-bash: export: `/root/apache-maven-3.6.0': not a valid identifier

-bash: export: `=': not a valid identifier

-bash: export: `/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/jre/bin:/root/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/jre/bin': not a valid identifier

[root@bogon apache-maven-3.6.0]# vi /etc/profile

[root@bogon apache-maven-3.6.0]# . /etc/profile

-bash: export: `=': not a valid identifier

-bash: export: `/root/apache-maven-3.6.0': not a valid identifier

-bash: export: `=': not a valid identifier

-bash: export: `/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/jre/bin:/root/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/jre/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/jre/bin': not a valid identifier


正在回答

1 回答

/etc/profile  中的maven路径中配置了空格

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

maven配置后报错不知道什么原因,求解决

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信