- tomcat中用户配置
<role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user password="123456" username="admin" roles="manager-gui,manager-script,manager-jmx,manager-status" />
- maven中pom.xml文件tomcat 8 的仓库配置
<pluginRepositories> <pluginRepository> <id>alfresco-public</id> <url>https://artifacts.alfresco.com/nexus/content/groups/public</url> </pluginRepository> <pluginRepository> <id>alfresco-public-snapshots</id> <url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url> <snapshots> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> </snapshots> </pluginRepository> <pluginRepository> <id>beardedgeeks-releases</id> <url>http://beardedgeeks.googlecode.com/svn/repository/releases</url> </pluginRepository> </pluginRepositories>
- maven中tomcat插件的配置
<!-- 配置tomcat插件 --> <build> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat8-maven-plugin</artifactId> <configuration> <url>http://localhost:8080/manager/text</url> <-- server属性必须与setting 文件中的server保持一致 --> <server>tomcat8</server> <-- tomcat中的配置一致 --> <username>admin</username> <password>123456</password> <path>/taotao</path> </configuration> </plugin> </plugins> </build>
配置完成