The plugin 'org.apache.maven.plugins:maven-tomcat-plugin' does not exist or no v
[url]http://blog.csdn.net/walkingmanc/article/details/5856491[/url]
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-tomcat-plugin' does not exist
or no valid version could be found
提示說maven-tomcat-plugin' 外掛不存在,仔細檢視一下pom檔案,發現裡面配置了 :
<plugin>
<groupId>org.codehaus.mojo</groupId>
[color=red][b]<artifactId>tomcat-maven-plugin</artifactId>[/b][/color]
</plugin>
,
那為什麼還報錯。
仔細觀察,發現mvn並沒有採用pom檔案裡面的配置來下載tomcat-maven-plugin,而是自以為是的去下載maven-tomcat-plugin' ,關於這個問題很多帖子上都反映過,如下:
Hi,
I'm trying to use tomcat-maven-plugin from
http://mojo.codehaus.org/tomcat-maven-plugin/
But when I type mvn tomcat:deploy, i get
[INFO]
----------------------------------------------------------------------------
[INFO] Building Design Council
[INFO] task-segment: [tomcat:deploy]
[INFO]
----------------------------------------------------------------------------
[INFO] Searching repository for plugin with prefix: 'tomcat'.
[ERROR] project-execute : myapp:myapp:war:0.1.0-SNAPSHOT (
task-segment: [tomcat:deploy] )
Diagnosis: The plugin 'org.apache.maven.plugins:maven-tomcat-plugin'
does not exist or no valid version could be found
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionExcep tion: The plugin
'*org.apache.maven.plugins:maven-tomcat-plugin*' does not exist or no
valid version could be found
But I don't even have 'maven-tomcat-plugin' configured in my pom.xml!
I've tried removing whole repository, but the problem persists. I'm just
wondering if there is a way to make maven use a specific plugin for the
shortname tomcat?
這個老外也是這樣。
後來,找到一個帖子,
hey, I resolver the conflict by calling:
[color=red][b]mvn org.codehaus.mojo:tomcat-maven-plugin:deploy[/b][/color]
'Invalid task 'kasza': you must specify a valid lifecycle phase, or a
goal in the format plugin:goal or
*pluginGroupIdluginArtifactIdluginVersion:goal *'
知道了,可以通過指定完全限定名稱來解決這個問題。
[color=red][b]所以 只要將上面命令中的 tomcat 替換成 org.codehaus.mojo:tomcat-maven-plugin 就可以解決問題了。[/b][/color]
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-tomcat-plugin' does not exist
or no valid version could be found
提示說maven-tomcat-plugin' 外掛不存在,仔細檢視一下pom檔案,發現裡面配置了 :
<plugin>
<groupId>org.codehaus.mojo</groupId>
[color=red][b]<artifactId>tomcat-maven-plugin</artifactId>[/b][/color]
</plugin>
,
那為什麼還報錯。
仔細觀察,發現mvn並沒有採用pom檔案裡面的配置來下載tomcat-maven-plugin,而是自以為是的去下載maven-tomcat-plugin' ,關於這個問題很多帖子上都反映過,如下:
Hi,
I'm trying to use tomcat-maven-plugin from
http://mojo.codehaus.org/tomcat-maven-plugin/
But when I type mvn tomcat:deploy, i get
[INFO]
----------------------------------------------------------------------------
[INFO] Building Design Council
[INFO] task-segment: [tomcat:deploy]
[INFO]
----------------------------------------------------------------------------
[INFO] Searching repository for plugin with prefix: 'tomcat'.
[ERROR] project-execute : myapp:myapp:war:0.1.0-SNAPSHOT (
task-segment: [tomcat:deploy] )
Diagnosis: The plugin 'org.apache.maven.plugins:maven-tomcat-plugin'
does not exist or no valid version could be found
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionExcep tion: The plugin
'*org.apache.maven.plugins:maven-tomcat-plugin*' does not exist or no
valid version could be found
But I don't even have 'maven-tomcat-plugin' configured in my pom.xml!
I've tried removing whole repository, but the problem persists. I'm just
wondering if there is a way to make maven use a specific plugin for the
shortname tomcat?
這個老外也是這樣。
後來,找到一個帖子,
hey, I resolver the conflict by calling:
[color=red][b]mvn org.codehaus.mojo:tomcat-maven-plugin:deploy[/b][/color]
'Invalid task 'kasza': you must specify a valid lifecycle phase, or a
goal in the format plugin:goal or
*pluginGroupIdluginArtifactIdluginVersion:goal *'
知道了,可以通過指定完全限定名稱來解決這個問題。
[color=red][b]所以 只要將上面命令中的 tomcat 替換成 org.codehaus.mojo:tomcat-maven-plugin 就可以解決問題了。[/b][/color]
相關文章
- Waring: /dev/centos/swap does not existdevCentOS
- Property [title] does not exist on this collection instance
- PSQLexception: ERROR : type "signed" does not existSQLExceptionError
- Property 'context' does not exist on type 'NodeRequire'.ts(2339)ContextUI
- Laravel Class env does not exist 問題排查Laravel
- ORA-04043: object DBA_DATA_FILES does not existObject
- [20211231]ORA-01418 specified index does not exist.txtIndex
- dcat-admin 表單 Field type [autocomplete] does not exist.
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compileAIGoApacheMavenPluginCompile
- ORA-30012 undo tablespace 'UNDOTBS3' does not exist or of wrong typeS3
- The operation, ‘DecodeJpeg/contents‘, does not exist in the graph.錯誤解決方法
- Plugin 'org.apache.maven.plugins:maven-resources-plugin:2.7' not found less... (Ctrl+F1)問題解決PluginApacheMaven
- 解決Maven外掛無法下載Cannot resolve plugin org.apache.maven.plugins:maven-clean-plugin:2.5MavenPluginApache
- Android解決The APK file app-debug.apk does not exist on disk.AndroidAPKAPP
- yii2接入pgSQL(查詢不到表The table does not exist: {{%user}})SQL
- 靜默安裝Oracle建庫時報Template General Purpose does not existOracle
- streamlit run執行報錯,Invalid value: File does not exist: XXX.py
- Error: The directory named as part of the path ./log/supervisord.log does not exist解決方案Error
- Eclipse裡Tomcat報錯:Document base ……does not exist or is not a readable directory(圖文詳解)...EclipseTomcat
- 安裝kernel...src.rpm錯誤:warning: user mockbuild does not exist - using rootMockUI
- Hadoop的mapreduce出現問題,報錯The auxService:mapreduce_shuffle does not existHadoopUX
- git中出現”the requested upstream branch ‘origin/master‘ does not exist“問題的解決GitAST
- 解決Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile(default-compile)AIGoApacheMavenPluginCompile
- pgsql 執行建庫指令碼時候出現ERROR: relation "xxx_id_seq" does not existSQL指令碼Error
- ABAP 資料結構啟用時的錯誤訊息 - combination reference table field does not exist資料結構
- mac scrcpy 報錯 does not exist or is not a regular file,ERROR: Server connection failed(scrcpy mac與極空間衝突)MacErrorServerAI
- SAP對工單做101收貨,報錯- Check table TFBEFU_CR entry 10 does not exist–對策
- SAP MM 對採購訂單執行收貨,報錯 - Table T169P entry ZNMI does not exist -
- Your host does not meet minimum requirements to run VMware workstation with hyper-v or device/credenUIREMdev
- SQL not exist out joinSQL
- Elements in iteration expect to have ‘v-bind:key‘ directives.eslint-plugin-vueEsLintPluginVue
- JQuery Plugin 2 - Passing Options into Your PluginjQueryPlugin
- What does -> do in clojure?
- does not support SSL connections
- ‘map’ does not name a type
- sql case when, Exist ,group by ,聚合SQL
- Maven - No plugin found for prefix 'war' in the current project and in the plugin groupsMavenPluginProject
- The label does not denote a loop in forEachOOP
- What does "xargs grep" do?