最近,Apache Maven似乎有缓存问题.使用Windows Vista或Windows 7在我们的项目上执行全新安装有时会生成与先前版本具有相同数据的工件,即使新工件的文件应该已更新.
有没有办法清除此缓存以强制maven始终触发应该构建的本地工件的干净构建?
特别是,我们在使用war插件构建webapp时遇到了问题.Maven版本是3.0.3.战争插件版本是2.1.1.
我是春天的新手,所以我从spring intializr下载jar用于maven-web java 1.8 demo.我解压缩并将其导入STS以运行main()文件,然后我得到以下异常.有人可以告诉我这是什么解决方案吗?
解决方案我尝试从网络但没有工作: - 尝试将Hibernate验证器依赖添加到pom - 尝试将spring-boot-starter-tomcat依赖添加到pom
堆栈跟踪:
2017-01-26 12:19:32.587 INFO 3816 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2e4b8173: startup date [Thu Jan 26 12:19:32 EST 2017]; root of context hierarchy
2017-01-26 12:19:36.442 WARN 3816 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested …Run Code Online (Sandbox Code Playgroud)