在插件中找不到目标

时间:2017-11-01 02:36:48

标签: maven tomcat java-web-start

我看到以下错误消息:

Could not find goal '' in plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.2 
among available goals exec-war-only, deploy-only, redeploy-only, help, shutdown, 
                      run-war-only, standalone-war-only, run, deploy, standalone-war, 
                      undeploy, run-war, redeploy, exec-war 

我找不到错误位置,那么如何避免此错误?

1 个答案:

答案 0 :(得分:1)

如图所示in this question,它取决于您正在执行的确切mvn命令。

关于tomcat7-maven-pluginits goals,您需要执行例如

_artcileTextWeb = new UIWebView(UIScreen.MainScreen.Bounds);
_artcileTextWeb.Delegate = new MyDelegate(_scrollView);
_artcileTextWeb.LoadHtmlString(text, null);
_artcileTextWeb.ScrollView.ScrollEnabled = false;

 _artcileTextWeb.Below(view1, padding),
 _artcileTextWeb.AtLeftOf(_scrollView),    //modify this line
 _artcileTextWeb.WithSameWidth(_scrollView), //modify this line
 _artcileTextWeb.AtBottomOf(_scrollView)

mvn tomcat7:deploy :额外的空格会触发错误消息tomcat7: deploy