pom.xml 3.6 KB
Newer Older
武汉红喜's avatar
武汉红喜 已提交
1 2 3 4
<?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">
武汉红喜's avatar
武汉红喜 已提交
5
    <modelVersion>4.0.0</modelVersion>
武汉红喜's avatar
武汉红喜 已提交
6

武汉红喜's avatar
earth  
武汉红喜 已提交
7 8
    <parent>
        <artifactId>whatsmars-parent</artifactId>
武汉红喜's avatar
武汉红喜 已提交
9
        <groupId>org.hongxi</groupId>
武汉红喜's avatar
武汉红喜 已提交
10
        <version>Rocket.S2</version>
武汉红喜's avatar
earth  
武汉红喜 已提交
11
    </parent>
武汉红喜's avatar
武汉红喜 已提交
12

13
    <artifactId>whatsmars-tomcat</artifactId>
武汉红喜's avatar
武汉红喜 已提交
14
    <packaging>jar</packaging>
武汉红喜's avatar
pom  
武汉红喜 已提交
15
    <name>${project.artifactId}</name>
武汉红喜's avatar
武汉红喜 已提交
16
    <description>简单模拟Tomcat</description>
武汉红喜's avatar
武汉红喜 已提交
17

武汉红喜's avatar
武汉红喜 已提交
18 19 20
    <properties>
        <tomcat.version>8.5.11</tomcat.version>
    </properties>
武汉红喜's avatar
武汉红喜 已提交
21

武汉红喜's avatar
武汉红喜 已提交
22 23
    <dependencies>
        <dependency>
武汉红喜's avatar
武汉红喜 已提交
24 25 26
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-core</artifactId>
            <version>${tomcat.version}</version>
武汉红喜's avatar
武汉红喜 已提交
27 28
        </dependency>
        <dependency>
武汉红喜's avatar
武汉红喜 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-logging-juli</artifactId>
            <version>8.5.2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
            <version>${tomcat.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-jasper</artifactId>
            <version>${tomcat.version}</version>
武汉红喜's avatar
武汉红喜 已提交
42 43 44
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat</groupId>
武汉红喜's avatar
武汉红喜 已提交
45 46
            <artifactId>tomcat-jasper-el</artifactId>
            <version>${tomcat.version}</version>
武汉红喜's avatar
武汉红喜 已提交
47 48 49
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat</groupId>
武汉红喜's avatar
武汉红喜 已提交
50 51
            <artifactId>tomcat-jsp-api</artifactId>
            <version>${tomcat.version}</version>
武汉红喜's avatar
武汉红喜 已提交
52 53 54 55 56 57 58 59 60 61 62
        </dependency>
    </dependencies>

    <build>
        <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
武汉红喜's avatar
武汉红喜 已提交
63
        <plugins>
64
            <!-- 生成可执行jar和lib文件夹 -->
武汉红喜's avatar
武汉红喜 已提交
65 66 67 68 69 70 71
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <addMavenDescriptor>true</addMavenDescriptor>
                        <manifest>
72 73
                            <addClasspath>true</addClasspath>
                            <classpathPrefix>lib/</classpathPrefix>
武汉红喜's avatar
武汉红喜 已提交
74
                            <mainClass>org.hongxi.whatsmars.tomcat.server.HttpServer</mainClass>
武汉红喜's avatar
武汉红喜 已提交
75 76 77 78
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
武汉红喜's avatar
武汉红喜 已提交
95
        </plugins>
武汉红喜's avatar
武汉红喜 已提交
96 97 98
    </build>


武汉红喜's avatar
武汉红喜 已提交
99
</project>