maven构建web项目,用jetty测试的配置pom.xml

maven构建web项目,用jetty测试的配置pom.xml

 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0modelVersion>
  <groupId>com.lzyygroupId>
  <artifactId>mqartifactId>
  <packaging>warpackaging>
  <version>0.0.1-SNAPSHOTversion>
  <name>mq Maven Webappname>
  <url>http://maven.apache.orgurl>
  
  <properties>
        <jdk.version>1.8jdk.version>
        <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
    properties>
  
  
  <dependencies>
    <dependency>
      <groupId>junitgroupId>
      <artifactId>junitartifactId>
      <version>3.8.1version>
      <scope>testscope>
    dependency>
     
        <dependency>
            <groupId>javax.servletgroupId>
            <artifactId>javax.servlet-apiartifactId>
            <version>3.1.0version>
        dependency>
  dependencies>
  <build>
   <finalName>mqfinalName>
        <plugins>

            <plugin>
                <artifactId>maven-compiler-pluginartifactId>
                <version>3.6.1version>
                <configuration>
                    <source>${jdk.version}source>
                    <target>${jdk.version}target>
                    <encoding>${project.build.sourceEncoding}encoding>
                configuration>
            plugin>
            <plugin>
                
                <groupId>org.eclipse.jettygroupId>
                <artifactId>jetty-maven-pluginartifactId>
                <version>9.2.17.v20160517version>
                <configuration>
                    <httpConnector>
                        <port>9097port>
                    httpConnector>
                    <webApp>
                        <contextPath>/mqcontextPath>
                    webApp>
                    <stopPort>9966stopPort>
                    <stopKey>mqstopKey>
                    
                configuration>
            plugin>
        plugins>

    build>
project>

 

你可能感兴趣的:(maven构建web项目,用jetty测试的配置pom.xml)