使用maven的tomcat插件启动时报错问题

1、最近在学习Apache下的一个权限框架shiro。在eclipse上建了一个web项目,使用maven引入对应的依赖。在spring和springMVC等配置都准备好后,准备跑一下JSP页面确保环境没问题,跑的时候使用的也是maven的tomcat7插件,在pom.xml的插件配置处配置如下:

<build>
	<finalName>shiro</finalName>
		
	<!-- tomcat7 配置插件 -->
	<plugins>
		<plugin>
			<groupId>org.apache.tomcat.maven</groupId>
			<artifactId>tomcat7-maven-plugin</artifactId>
			<configuration>
				<port>8080</port>
				<path>/</path>
				<uriEncoding>UTF-8</uriEncoding>
			</configuration>
		</plugin>
	</plugins>
</build>
2、然后在eclipse中使用maven命令执行,如下:

clean tomcat7:run

3、此时报错,如下:

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.shiro.test.spring:shiro-test-spring:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.tomcat.maven:tomcat7-maven-plugin is missing. @ line 114, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building shiro-test-spring Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ shiro-test-spring ---
[INFO] Deleting D:\WorkSpace\EclipseWorkSpace\shiro-test-spring\target
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ shiro-test-spring >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ shiro-test-spring ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resourc
  • 3
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 8
    评论
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值