错误日志:
[WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] Unrecognised tag: ‘profile‘ (position: START_TAG seen ...</activation> -->\n\t\t<profile>... @264:12) @ D:\DevSoftInstall\apache-maven-3.3.9\conf\settings.xml, line 264, column 12 [WARNING] [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building PlatForm Maven Webapp 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ PlatForm --- [INFO] Deleting C:\Users\longruan\git\platform4\PlatForm\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) > process-classes @ PlatForm >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ PlatForm --- [INFO] Using ‘UTF-8‘ encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ PlatForm --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 15 source files to C:\Users\longruan\git\platform4\PlatForm\target\classes [INFO] [INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) < process-classes @ PlatForm <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.1:run (default-cli) @ PlatForm --- [INFO] Running war on http://localhost:8090/PlatForm [INFO] Creating Tomcat server configuration at C:\Users\longruan\git\platform4\PlatForm\target\tomcat [INFO] create webapp with contextPath: /PlatForm 四月 18, 2017 1:33:45 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8090"] 四月 18, 2017 1:33:45 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Tomcat 四月 18, 2017 1:33:45 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.37 四月 18, 2017 1:33:47 上午 org.apache.catalina.startup.ContextConfig processAnnotationsJar 严重: Unable to process Jar entry [com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class] from Jar [jar:file:/D:/develop/mvnRep/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar!/] for annotations org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 60 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:133) at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60) at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209) at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119) at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2105) at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1981) at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1947) at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1932) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1326) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 四月 18, 2017 1:33:49 上午 org.apache.catalina.startup.TaglibUriRule body |
项目环境:maven3.3.9 + tomcat7插件
<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version> <configuration> <url>http://localhost:8080/manager/html</url> <port>8090</port> <path>/</path> <uriEncoding>UTF-8</uriEncoding> <finalName>platFrom</finalName> <server>tomcat7</server> </configuration> </plugin> |
错误原因:缺少tomcat7插件运行所需的jar文件
解决办法:
在pom文件加入tomcat7插件运行需要jar
<dependency> <groupId>com.ibm.icu</groupId> <artifactId>icu4j</artifactId> <version>3.4.4</version> </dependency> |