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]
相關文章
- org.apache.maven.plugins:maven-archetype-plugin does not existApacheMavenPlugin
- asmcmd does not exist in directoryASM
- javax.media does not existJava
- from v * ERROR at line 1: ORA-00942: table or view does not existErrorView
- Property [title] does not exist on this collection instance
- Waring: /dev/centos/swap does not existdevCentOS
- PatchObject constructor:Input file does not existObjectStruct
- PSQLexception: ERROR : type "signed" does not existSQLExceptionError
- Laravel Class env does not exist 問題排查Laravel
- SNMP TABLE ERROR : Requested table is empty or does not existError
- ORA-00942: table or view does not existView
- FAQ:Field DATABASE does not exist; see long textDatabase
- MIRO Error:Table T169V: entry G180 does not existError
- relation with OID 637165 does not exist
- ORA-04043: object DBA_DATA_FILES does not existObject
- ORA-04042 procedure, function, package, or package body does not existFunctionPackage
- ORA-24756: transaction does not exist問題解決
- 【Oracle】-【許可權-ORA-04043】- object does not existOracleObject
- PL/SQL: ORA-00942: table or view does not existSQLView
- ORA-12545 TNS: Host or Object Does not ExistObject
- Property 'context' does not exist on type 'NodeRequire'.ts(2339)ContextUI
- The user specified as a definer ('wx_root'@'%') does not exist 解決方案
- 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
- MySQL 5.7啟動資料庫報錯'does not exist or is not executable'MySql資料庫
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解決方法MySql
- 模擬ORA-04043並解決(dba_* does not exist)
- The subkey 'HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAVP' does not exist on the 'localhost'Maclocalhost
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compileAIGoApacheMavenPluginCompile
- MySQL 啟動報錯 Table 'mysql.plugin' doesn't existMySqlPlugin
- dcat-admin 表單 Field type [autocomplete] does not exist.
- yii2接入pgSQL(查詢不到表The table does not exist: {{%user}})SQL
- oracle for linux安裝報錯 file /home/oracle/.Xauthority does not existOracleLinux
- expdp ORA-31626: job does not exist 解決方案
- imp 時出現在ORA-00942: table or view does not existView
- 靜默安裝Oracle建庫時報Template General Purpose does not existOracle
- The operation, ‘DecodeJpeg/contents‘, does not exist in the graph.錯誤解決方法
- Oracle ORA - 01720 grant option does not exist for..報錯解決Oracle