在运行Maven项目时无法启动,但报错的信息很不清晰

Mystic_30 发布于 2018/03/12 11:53
阅读 473
收藏 0

在执行maven项目时,执行tomcat7:run命令后,程序报错,报错的日志如下

[INFO] ------------------------------------------------------------------------
[INFO] Building hams-demo Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ hams-demo >>>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.357 s
[INFO] Finished at: 2018-03-12T10:23:36+08:00
[INFO] Final Memory: 6M/77M
[INFO] ------------------------------------------------------------------------
[ERROR] 43692
[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.


以下是项目的maven的插件配置

 <plugin>
            <groupId>org.apache.tomcat.maven</groupId>
            <artifactId>tomcat7-maven-plugin</artifactId>
            <version>2.2</version>
            <configuration>
                <charset>UTF-8</charset>
                <uriEncoding>UTF-8</uriEncoding>
                <port>8080</port>
            </configuration>
        </plugin>
        <plugin>  
            <groupId>org.apache.maven.plugins</groupId>  
            <artifactId>maven-war-plugin</artifactId>  
            <version>2.3</version>  
            <configuration>  
                <failOnMissingWebXml>false</failOnMissingWebXml>  
            </configuration>  
        </plugin>  

能为我解答一下吗

加载中
0
battyman
battyman

用mvn -X tomcat7:run看一下详细信息

返回顶部
顶部