Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6743

Maven don't work with argument's

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 3.6.0
    • None
    • Core
    • Files\Java\jdk1.8.0_201\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

    Description

      Hi, 

       

      When I try to run mvn io.quarkus:quarkus-maven-plugin:0.20.0:create -DprojectGroupId=org.acme -DprojectArtifactId=getting-started -DclassName="org.acme.quickstart.GreetingResource" -Dpath="/hello" dosen't work return: 

      // 
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  0.210 s
      [INFO] Finished at: 2019-08-22T20:24:56+01:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\terasoluna-plus\workspace\quarkus). Please verify you invoked Maven from the correct directory. -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
      

       

      But if I just use mvn io.quarkus:quarkus-maven-plugin:0.20.0:create works well. 

      mvn -version: 

      // Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T19:41:47+01:00)
      Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.0\bin\..
      Java version: 1.8.0_201, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_201\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dsmello Davi Mello
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: