Search code examples
s4sdk

Unable to run the Java app in local environment


After developing a Java application, I ran the command

mvn clean install

the build resulted in SUCCESS. Now, I tried to run the app in the local environment with the command

mvn scp:clean scp:push -pl application

It resulted in the error as below.

No plugin found for prefix 'scp' in the current project and in the plugin groups

Can someone please help me?

Thanks, Sankeerth


Solution

  • scp:push is the command to deploy an application locally which is built for the neo environment as described here. It is required that you generated your project with a neo archetype, such as scp-neo-javaee7.

    On Cloud Foundry for the tomee archetype you should be able to execute the following command to start the application locally: cd application mvn tomee:run

    Additional information can be found in the Tutorial for Cloud Foundry