闲来无事。准备搞一下shiro。准备做个demo。使用maven+springmvc+ehcache+shiro。准备环境时。发现一个问题。
用maven构建的项目在无法在myeclipse的tomcat中加载。
百度搜了一下解决方案。
1、添加maven插件
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<url>http://localhost:8080/manager/text</url>
<server>tomcat</server>
</configuration>
</plugin>
</plugins>
</pluginManagement>
2、添加远程插件仓库
<repositories>
<repository>
<id>apache.snapshots</id>
<name>Apache Snapshots</name>
<url>