[memo]maven pom 设置war包、jetty插件点滴

<!-- jetty插件, 设定context path与profile to active -->
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty-maven-plugin</artifactId>
				<version>${jetty.version}</version>
				<configuration>
					<systemProperties>
						<systemProperty>
							<name>profile-to-active</name>
							<value>development</value>
						</systemProperty>
					</systemProperties>
					<useTestClasspath>true</useTestClasspath>
					<webAppConfig>
						<contextPath>/${project.artifactId}</contextPath>
					</webAppConfig>
				</configuration>
			</plugin>
<!-- war打包插件, 设定war包名称不带版本号 -->
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-war-plugin</artifactId>
 <version>2.4</version>
 <configuration>
 <warName>${project.artifactId}</warName>
 </configuration>
 </plugin>

你可能感兴趣的:(maven,jetty,war,pom,插件配置)