Cannot run via `mvn buildplan:list`
nicokosi opened this issue ยท 3 comments
nicokosi commented
Hello, ๐
How can I run buildplan
on a Maven project?
For instance, on https://github.com/nicokosi/quarkus-plop, I tried running ./mvnw buildplan-maven-plugin:list
(the command is from the README) but it fails:
[INFO] Scanning for projects...
LDownloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 46 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 kB at 67 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.743 s
[INFO] Finished at: 2022-06-20T05:50:27+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'buildplan-maven-plugin' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/nicolas/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException
Note that it succeeds with the former "jcgay" Maven coordinates, ./mvnw fr.jcgay.maven.plugins:buildplan-maven-plugin:1.5:list
:
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.nicokosi:quarkus-plop >----------------------
[INFO] Building quarkus-plop 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- buildplan-maven-plugin:1.5:list (default-cli) @ quarkus-plop ---
[INFO] Build Plan for quarkus-plop:
---------------------------------------------------------------------------------------------
PLUGIN | PHASE | ID | GOAL
---------------------------------------------------------------------------------------------
quarkus-maven-plugin | generate-sources | default | generate-code
maven-resources-plugin | process-resources | default-resources | resources
maven-compiler-plugin | compile | default-compile | compile
quarkus-maven-plugin | generate-test-sources | default | generate-code-tests
maven-resources-plugin | process-test-resources | default-testResources | testResources
maven-compiler-plugin | test-compile | default-testCompile | testCompile
maven-surefire-plugin | test | default-test | test
maven-jar-plugin | package | default-jar | jar
quarkus-maven-plugin | package | default | build
maven-install-plugin | install | default-install | install
maven-deploy-plugin | deploy | default-deploy | deploy
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.303 s
[INFO] Finished at: 2022-06-20T05:50:40+02:00
[INFO] ------------------------------------------------------------------------
jcgay commented
It's because it is not released yet under the mojohaus organization, it's coming ๐
nicokosi commented
It's because it is not released yet under the mojohaus organization, it's coming ๐
OK, thanks @jcgay.
I can't wait! ๐
nicokosi commented
It now works ๐ :
$ mvn buildplan:list
Running `/Users/nicolas/work/quarkus-plop/mvnw`...
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.nicokosi:quarkus-plop >----------------------
[INFO] Building quarkus-plop 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- buildplan-maven-plugin:2.0.0:list (default-cli) @ quarkus-plop ---
[INFO] Build Plan for quarkus-plop:
---------------------------------------------------------------------------------------------
PLUGIN | PHASE | ID | GOAL
---------------------------------------------------------------------------------------------
quarkus-maven-plugin | generate-sources | default | generate-code
maven-resources-plugin | process-resources | default-resources | resources
maven-compiler-plugin | compile | default-compile | compile
quarkus-maven-plugin | generate-test-sources | default | generate-code-tests
maven-resources-plugin | process-test-resources | default-testResources | testResources
maven-compiler-plugin | test-compile | default-testCompile | testCompile
maven-surefire-plugin | test | default-test | test
maven-jar-plugin | package | default-jar | jar
quarkus-maven-plugin | package | default | build
maven-install-plugin | install | default-install | install
maven-deploy-plugin | deploy | default-deploy | deploy
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.405 s
[INFO] Finished at: 2022-06-23T05:41:11+02:00
[INFO] ------------------------------------------------------------------------