简体   繁体   English

无法在本地环境中运行Java应用

[英]Unable to run the Java app in local environment

After developing a Java application, I ran the command 开发Java应用程序后,我运行了命令

mvn clean install mvn全新安装

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 mvn scp:clean scp:push -pl应用程序

It resulted in the error as below. 导致出现以下错误。

No plugin found for prefix 'scp' in the current project and in the plugin groups 在当前项目和插件组中找不到前缀为“ scp”的插件

Can someone please help me? 有人可以帮帮我吗?

Thanks, Sankeerth 谢谢,Sankeerth

scp:push is the command to deploy an application locally which is built for the neo environment as described here . SCP:推是部署在当地的申请中描述其对新环境的内置命令在这里 It is required that you generated your project with a neo archetype, such as scp-neo-javaee7. 要求您使用新原型(例如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 在适用于tomee原型的Cloud Foundry上,您应该能够执行以下命令以在本地启动应用程序: cd application mvn tomee:run

Additional information can be found in the Tutorial for Cloud Foundry 可以在Cloud Foundry教程中找到更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM