I run a springboot project
Run Configuration configuration is shown above, and
parameter is
-X-pl com.nan:web-am clean package-Dmaven.test.skip=true-Poffice
after running, the result is:
Connected to the target VM, address: "127.0.0.1 transport:" socket"
error: main class com.nan.web.ControllerApplication cannot be found or cannot be loaded
Disconnected from the target VM, address: "127.0.1transport:" socket"
Process finished with exit code 1
but if my Run Configuration is configured to run as build, it"s OK
or after build, change the configuration to Run Maven Goal as the above parameter
and run
without deleting target,. What"s going on?