按照公司的环境配置文档
Maven,jdk,tomcat都配置好了
tomcat是7.0安装版的
然后导入了一个新建的Maven项目,pom.xml配置如下
<modelVersion>4.0.0</modelVersion>
<groupId>com.a</groupId>
<artifactId>wind</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>wind Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>wind</finalName>
</build>
然后在debug configuration中新加了一个debug
在debug启动时报错误
Error resolving version for plugin 'org.codehaus.mojo:tomcat-maven-plugin' from the repositories [local (D:\environment\Maven\Mrepository), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository
随后我查了一下原因,在pom中加上了
org.codehaus.mojo
tomcat-maven-plugin
1.1
/wp
8080
UTF-8
http://localhost:8080/manager/html
tomcat
debug没有报错,但是访问项目的时候一片空白,去到项目下边target下的tomcat,,,webapp下没有任何项目