问答详情
源自:3-4 安装并配置Maven

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


提问者:qq_跟著感覺走_2 2018-12-14 16:33

个回答

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

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