zoukankan      html  css  js  c++  java
  • maven war项目完整配置

    <?xml version="1.0" encoding="UTF-8"?>
    <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/xsd/maven-4.0.0.xsd">
        <!--<parent>
            <artifactId>mywebservice</artifactId>
            <groupId>com.lzyy.mine.webservice</groupId>
            <version>1.0</version>
            <relativePath>../MyWebService/pom.xml</relativePath>
        </parent>-->
        <modelVersion>4.0.0</modelVersion>
    
        <artifactId>myapi</artifactId>
        <packaging>war</packaging>
        <description>我的对外开方接口平台</description>
    
        <properties>
            <jdk.version>1.7</jdk.version>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        </properties>
    
        <dependencies>
            <!-- junit等-->
            <!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>3.1.0</version>
            </dependency>
    
        </dependencies>
    
        <build>
            <plugins>
    
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.6.1</version>
                    <configuration>
                        <source>${jdk.version}</source>
                        <target>${jdk.version}</target>
                        <encoding>${project.build.sourceEncoding}</encoding>
                    </configuration>
                </plugin>
                <plugin>
                    <!--https://www.eclipse.org/jetty/documentation/9.3.0.v20150612/jetty-maven-plugin.html -->
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>jetty-maven-plugin</artifactId>
                    <version>9.2.17.v20160517</version>
                    <configuration>
                        <httpConnector>
                            <port>9097</port>
                        </httpConnector>
                        <webApp>
                            <contextPath>/myapi</contextPath>
                        </webApp>
                        <stopPort>9966</stopPort>
                        <stopKey>myapi</stopKey>
                        <!-- <stopKey>gzapi</stopKey> <scanIntervalSeconds>5</scanIntervalSeconds> 
                            <reload>automatic</reload> -->
                    </configuration>
                </plugin>
            </plugins>
    
        </build>
    
    
    </project>
  • 相关阅读:
    使用 ASP.NET Core 创建 Web API及链接sqlserver数据库
    SQLPrompt 最新版下载地址
    雷柏键鼠对码程序
    罗技无线鼠标接收器无法配对的详细解决办法
    Windows10安装NTP服务器
    查看udp端口及占用程序
    国人开发的api测试工具 ApiPost
    无法调用到appcode下的类
    Android 实时文件夹
    android 当ListView滚动时自动调用 onCheckedChanged 导致CheckBox 状态不停变化 的解决办法
  • 原文地址:https://www.cnblogs.com/equation/p/8973532.html
Copyright © 2011-2022 走看看