cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Java mvn cds:watch fails

MioYasutake
Active Contributor
0 Kudos
467

Hi community,

I have built a very simple CAP Java application with the following commands. (using BAS)

  • cds init java-simple --add java
  • cds add tiny-sample

Git repo: https://github.com/miyasuta/cap-java-simple

When I try to run the service via `mvn cds:watch` command, it fails with the following message:

[ERROR] No plugin found for prefix 'cds' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/user/.m2/repository), public (https://repo.maven.apache.org/maven2/), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

MioYasuatke_0-1707204866162.png

On the other hand, if I run `mvn cds:watch`, the service starts successfully. I would like to know why `mvn cds:watch` command is failing. Any inputs are appreciated.

Regards,

Mio

Accepted Solutions (1)

Accepted Solutions (1)

Dinu
Active Contributor

I think the plugin is configured only in srv project.

Try

mvn cds:watch -pl srv 

or

cd srv; mvn cds:watch

 

MioYasutake
Active Contributor
0 Kudos
Thank you for your quick reply. Indeed, I forgot to change directory to srv folder.

Answers (0)