You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
146 lines
6.4 KiB
146 lines
6.4 KiB
<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.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.fengfei</groupId>
|
|
<artifactId>lanproxy</artifactId>
|
|
<version>0.1</version>
|
|
</parent>
|
|
<artifactId>proxy-server</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>proxy-server</name>
|
|
<url>http://maven.apache.org</url>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.fengfei</groupId>
|
|
<artifactId>proxy-common</artifactId>
|
|
<version>0.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.fengfei</groupId>
|
|
<artifactId>proxy-protocol</artifactId>
|
|
<version>0.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<finalName>proxy-server-${project.version}</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>2.4</version>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>*.properties</exclude>
|
|
<exclude>*.sh</exclude>
|
|
<exclude>*.bat</exclude>
|
|
<exclude>*.jks</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.2</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-dependencies</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>../distribution/proxy-server-${project.version}/lib</outputDirectory>
|
|
<overWriteReleases>false</overWriteReleases>
|
|
<overWriteSnapshots>false</overWriteSnapshots>
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>2.6</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-config</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<encoding>UTF-8</encoding>
|
|
<outputDirectory>../distribution/proxy-server-${project.version}/conf</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<includes>
|
|
<include>*.properties</include>
|
|
<include>*.json</include>
|
|
<include>*.jks</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-webpages</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<encoding>UTF-8</encoding>
|
|
<outputDirectory>../distribution/proxy-server-${project.version}/webpages</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>webpages</directory>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-sh</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<encoding>UTF-8</encoding>
|
|
<outputDirectory>../distribution/proxy-server-${project.version}/bin</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<includes>
|
|
<include>*.sh</include>
|
|
<include>*.bat</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-dist-jar</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<encoding>UTF-8</encoding>
|
|
<outputDirectory>../distribution/proxy-server-${project.version}/lib</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>target</directory>
|
|
<includes>
|
|
<include>*.jar</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|
|
|