maven-deploy-plugin:deploy-file Why a project is needed?
Hi, Are you sure there is a pom.xml in (C:\Users\fandre\Documents\MXW\TOOLS\IBM). Please verify you invoked Maven from the correct directory. Thanks, Janardhan On Wednesday, June 2, 2021, Zos ROTHKO wrote: > > Le 02/06/2021 à 14:23, Delany a écrit : > >> Im guessing here, but maybe the deploy-file goal was added later and they >> didn't bother to separate out the requirement for a pom.xml. >> But neither does the goal take advantage of the model's >> distributionManagement https://issues.apache.org/jira/browse/MDEPLOY-277 >> Plugin could probably do with some attention. >> Delany >> > From my perpective, it is a regression. If I remember well, there were no > need to have a projet/pom.xml for running mvn deploy:deploy-file command > >> >> On Wed, 2 Jun 2021 at 08:19, Zos ROTHKO wrote: >> >> 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 > >
Re: maven-deploy-plugin:deploy-file Why a project is needed?
Le 02/06/2021 à 14:23, Delany a écrit : Im guessing here, but maybe the deploy-file goal was added later and they didn't bother to separate out the requirement for a pom.xml. But neither does the goal take advantage of the model's distributionManagement https://issues.apache.org/jira/browse/MDEPLOY-277 Plugin could probably do with some attention. Delany From my perpective, it is a regression. If I remember well, there were no need to have a projet/pom.xml for running mvn deploy:deploy-file command On Wed, 2 Jun 2021 at 08:19, Zos ROTHKO wrote: 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
Re: maven-deploy-plugin:deploy-file Why a project is needed?
Im guessing here, but maybe the deploy-file goal was added later and they didn't bother to separate out the requirement for a pom.xml. But neither does the goal take advantage of the model's distributionManagement https://issues.apache.org/jira/browse/MDEPLOY-277 Plugin could probably do with some attention. Delany On Wed, 2 Jun 2021 at 08:19, Zos ROTHKO wrote: > 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 > >
Re: maven-deploy-plugin:deploy-file Why a project is needed?
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 : > > 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
maven-deploy-plugin:deploy-file Why a project is needed?
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