Can you run the same with -X? This will give more information.
You might want to try -DgeneratePom=true, although this should be the default.

Am Mi., 2. Juni 2021 um 08:19 Uhr schrieb Zos ROTHKO <zosrot...@orange.fr>:
>
> Hello
>
> I want to deploy a file using the command below
>
> mvn org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file
> -Durl=https://nexus.metrixware.com/repository/
> -DrepositoryId=mis-external-libs -Dfile=C:/Program
> Files/IBM/HostAccessToolkit/14.0.0/toolkit/jars/java2/release/ha_en.jar
> -DartifactId=ha_en   -DgroupId=com.ibm.hod.hacl  -Dversion=14.0.0
> -Dpackaging=jar
>
> but maven is asking for a pom to be present. What I missed to avoid the
> local project requirement?
>
> C:\Users\fandre\Documents\MXW\TOOLS\IBM>mvn
> org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file
> -Durl=https://nexus.metrixware.com/repository/
> -DrepositoryId=mis-external-libs -Dfile=C:/Program
> Files/IBM/HostAccessToolkit/14.0.0/toolkit/jars/java2/release/ha_en.jar
> -DartifactId=ha_en   -DgroupId=com.ibm.hod.hacl  -Dversion=14.0.0
> -Dpackaging=jar
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  0.082 s
> [INFO] Finished at: 2021-06-02T08:19:29+02:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] The goal you specified requires a project to execute but there
> is no POM in this directory (C:\Users\fandre\Documents\MXW\TOOLS\IBM).
> 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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to