Maven新手的错误
今天初学maven工程,见识过他的强大,心所向恋,却又很次揪心。看着某马的视频学的maven,其环境是jdk1.7+tomcat7.0
我机子装的是jdk1.8+tomcat7&tomcat8。
错误1:jvm环境过低,用的是其默认的jre1.5,
错误详情:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mavendemo 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat-maven-plugin:1.1:run (default-cli) > compile @ mavendemo >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mavendemo ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mavendemo ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< tomcat-maven-plugin:1.1:run (default-cli) < compile @ mavendemo <<<
[INFO]
[INFO] --- tomcat-maven-plugin:1.1:run (default-cli) @ mavendemo ---
[INFO] Running war on http://localhost:8080/mavendemo
[INFO] Using existing Tomcat server configuration at E:\Projects\eclipse-workspace\mavendemo\target\tomcat
七月 24, 2018 8:50:10 下午 org.apache.catalina.startup.Embedded start
信息: Starting tomcat server
七月 24, 2018 8:50:10 下午 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.29
七月 24, 2018 8:50:10 下午 org.apache.coyote.http11.Http11Protocol init
信息: In