Baymax0532 2017-09-26 06:56 采纳率: 0%
浏览 1181

eclipse+maven+tomcat进行debug报错

按照公司的环境配置文档
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下没有任何项目

  • 写回答

1条回答

报告相同问题?

悬赏问题

  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
  • ¥20 matlab yalmip kkt 双层优化问题
  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多