博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
maven 发布到tomcat7 报错
阅读量:7257 次
发布时间:2019-06-29

本文共 4710 字,大约阅读时间需要 15 分钟。

  hot3.png

    
4.0.0
    
net.itaem.test
    
testMaven_20150425
    
0.0.1-SNAPSHOT
    
war
    
testMaven_20150425
    
        
${project.build.directory}/endorsed
        
UTF-8
    
    
        
            
javax
            
javaee-web-api
            
6.0
            
provided
        
    
    
        
            
                
org.apache.maven.plugins
                
maven-compiler-plugin
                
2.3.2
                
                    
1.6                    
1.6
                    
                        
${endorsed.dir}
                    
                
            
            
                
org.apache.maven.plugins
                
maven-war-plugin
                
2.1.1
                
                    
false
                
            
            
                
org.apache.maven.plugins
                
maven-dependency-plugin
                
2.1
            
            
            
                
org.apache.tomcat.maven
                
tomcat7-maven-plugin
                
2.1
                
                    
http://localhost:8081/manager/text
                    
tomcat
                    
tomcat
                    
tomcat
                
            
        
    
    
        
            
people.apache.snapshots
            
         http://repository.apache.org/content/groups/snapshots-group/     
            
                
false
            
            
                
true
            
        
    
    
        
            
apache.snapshots
            
Apache Snapshots
            
         http://repository.apache.org/content/groups/snapshots-group/     
            
                
false
            
            
                
true
            
        
    

 

 

 

怎么测试都不行,网上的方法添加了那两段东东都不行。,

报错

[INFO] Scanning for projects...[INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 5.8 KB/sec)[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 7.6 KB/sec)[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 4.039 s[INFO] Finished at: 2015-04-25T23:22:18+08:00[INFO] Final Memory: 6M/90M[INFO] ------------------------------------------------------------------------[ERROR] No plugin found for prefix 'tomcat7' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (e:\mavenRepository), central (https://repo.maven.apache.org/maven2)] -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

 

有没有高手知道呀?求解答

 

我解决了的话,再回来更新博客~

解决了:

因为用错了命令!!!!!!!!!!!

tomcat7:deploy

而使用其他命令是不行的!!!

不过maven的错误提示也够不准确的,下次再研究,,

这个版本的配置是可以的

我下下篇博客里面提到的配置过程,配置文件比这个精简了几个地方,也可以跑成功,所以这篇博客已经过时了。

留着纯粹为了警示自己!  太粗心大意了!!!!!!!!!

转载于:https://my.oschina.net/bquan/blog/406411

你可能感兴趣的文章