java - The goal you specified requires a project to execute but there is no POM in this directory -


i'm facing below exception:

org.apache.maven.lifecycle.missingprojectexception: goal specified requires project execute there no pom in directory (c:). please verify invoked maven correct directory.

console log:

[debug] reading global settings c:\program files\apache-maven-3.2.5\conf\settings.xml  [debug] reading user settings c:\users\user_aaa\.m2\settings.xml  [debug] using local repository @ c:\path\to\local\repo  [debug] using manager enhancedlocalrepositorymanager priority 10.0 c:\path\to\local\repo  [info] scanning projects...  [debug] extension realms project org.apache.maven:standalone-pom:pom:1: (none)  [debug] looking lifecyle mappings packaging pom classrealm[plexus.core, parent: null] [info] ------------------------------------------------------------------------ [info] build failure  [info] ------------------------------------------------------------------------ [info] total time: 0.078 s  [info] finished at: 2017-09-12t17:05:08+08:00  [info] final memory: 5m/123m  [info] ------------------------------------------------------------------------  [error] goal specified requires project execute there no pom in directory (c:\). please verify invoked maven correct directory. -> [help 1] org.apache.maven.lifecycle.missingprojectexception: goal specified requires project execute there no pom in directory (c:\). please verify invoked maven correct directory. 

maven version info:

c:\>mvn -x version  apache maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15t01:29:23+08:00)  maven home: c:\program files\apache-maven-3.2.5  java version: 1.8.0_144, vendor: oracle corporation java home: c:\program files\java\jdk1.8.0_144\jre  default locale: en_us, platform encoding: ms950_hkscs os name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos" 

do need set pom.xml myself? how , where? did install maven correctly in windows?

the command find version of maven

mvn -x -version  

though -x debug option , redundant here.

in case want execute project.

do need set pom.xml myself? how , where?

you create pom.xml within maven based project @ top level directory. first maven project sample shall further here.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -