标签:tomcat7 image 转换 lis 配置文件 value color int cti
在<mirrors>元素里面加一个<mirror>配置
<mirror>
<id>aliyun</id>
<mirrorOf>centeral</mirrorOf>
<name>aliyun mirror</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
在<profiles>中加一个<profile>配置
<profile>
<id>aliyun</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>aliyun</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>aliyun</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>jdk-1.7</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
</properties>
</profile>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
<plugin>
mvn help:describe -Dplugin=war
或者
mvn help:describe -Dplugin=org.apache.maven.plugins:maven-war-plugin
或者
mvn help:describe -DgroupId=org.apache.maven.plugins -DartifactId=maven-war-plugin
//修改tomcat的context path
Tomcat自身可以通过修改配置文件server.xml,在和之间插入如下语句:
<Context path="/xxxx" docBase="F:\xxxx\WebRoot" debug="0" privileged="true"> </Context>
对应maven的tomcat插件弄法如下:
<!-- tomcat 7 --><plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat7-maven-plugin</artifactId><version>2.0-SNAPSHOT</version><configuration><path>${context.path}</path><url>http://localhost:8080/manager/text</url><server>tomcat7</server><username>admin</username><password>admin</password></configuration></plugin>
标签:tomcat7 image 转换 lis 配置文件 value color int cti
原文地址:http://www.cnblogs.com/kioluo/p/6860490.html