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
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?
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: Trying out new verbose dependency tree: very slow result
I built the plugin from HEAD and ran some tests. Getting the dependency tree for a simple project (e.g. single module, no parent, no extra repositories) was fast. Here is the pom: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> 4.0.0 test testa 1.0 jar commons-collections commons-collections 3.2.1 commons-beanutils commons-beanutils 1.9.1 Running the plugin with this pom.xml and verbose enabled took just over a second. I added the dependency: ch.qos.logback logback-classic 1.2.3 After this change, processing took 14 seconds in verbose mode. Non-verbose mode took < 1 second. I also tried the plugin with a simple Spring Boot starter pom: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> 4.0.0 test hello-world-spring-boot 0.0.1-SNAPSHOT org.springframework.boot spring-boot-starter-parent 2.1.6.RELEASE org.springframework.boot spring-boot-starter-web I waited for about 5 minutes before killing the job. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Making surefire fail on 0 tests run
Hi, I've had over the last few years several times when a simple mistake I made in the pom.xml caused the surefire (or junit at hand) to run 0 tests. Add since 0 were run also 0 failed and 0 failed means all tests passed. What I'm looking for is to let surefire fail if 0 tests were run (If I did not do 'skipTests'). Is there a clean way to configure that or is this something I should propose a change for in surefire itself? -- Best regards / Met vriendelijke groeten, Niels Basjes
Re: Making surefire fail on 0 tests run
Hi. failIfNoTests property should achieve this. ( https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#failIfNoTests Since version 2.4) ke 2. kesäk. 2021 klo 22.44 Niels Basjes (ni...@basjes.nl) kirjoitti: > Hi, > > I've had over the last few years several times when a simple mistake I made > in the pom.xml caused the surefire (or junit at hand) to run 0 tests. > Add since 0 were run also 0 failed and 0 failed means all tests passed. > > What I'm looking for is to let surefire fail if 0 tests were run (If I did > not do 'skipTests'). > > Is there a clean way to configure that or is this something I should > propose a change for in surefire itself? > > -- > Best regards / Met vriendelijke groeten, > > Niels Basjes >