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

来源:3-4 安装并配置Maven

qq_跟著感覺走_2

2018-12-14 16:33

[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回答

  • 许愿世界大团结
    2018-12-18 22:34:21

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

用Jenkins自动化搭建测试环境

利用Jenkins实现测试环境的一键自动化部署。

37385 学习 · 236 问题

查看课程

相似问题