Error “The goal you specified requires a project to execute but there is no POM in this directory” after executing maven command

后端 未结 15 1401
南笙
南笙 2020-12-02 11:29

I have a pom.xml in C:\\Users\\AArmijos\\Desktop\\Factura Electronica\\MIyT\\componentes-1.0.4\\sources\\pom.xml and I executed:

mv         


        
15条回答
  •  隐瞒了意图╮
    2020-12-02 12:31

    There may be a problem with Maven path configuration, if you used unix-like Operator System.

    step 1: create new file in path ~/.bash_profile

    JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
    CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
    PATH=$JAVA_HOME/bin:$PATH:
    export JAVA_HOME
    export CLASSPATH
    export PATH
    

    step 2: shell run source ~/.bash_profile OR modify zsh config file(add new line: source ~/.bash_profile)

提交回复
热议问题