|
@@ -8,13 +8,13 @@
|
|
|
<parent>
|
|
|
<groupId>org.t-io</groupId>
|
|
|
<artifactId>tio-http-parent</artifactId>
|
|
|
- <version>3.0.3.v20180620-RELEASE</version>
|
|
|
+ <version>3.0.4.v20180620-RELEASE</version>
|
|
|
</parent>
|
|
|
-
|
|
|
+
|
|
|
<properties>
|
|
|
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
- <main.class>org.tio.http.server.benchmark.TioBenchmarkStarter</main.class>
|
|
|
- </properties>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <main.class>org.tio.http.server.benchmark.TioBenchmarkStarter</main.class>
|
|
|
+ </properties>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
@@ -49,7 +49,7 @@
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<!-- slf4j-logback绑定 -->
|
|
|
<dependency>
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
@@ -76,33 +76,63 @@
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>log4j-over-slf4j</artifactId>
|
|
|
</dependency>
|
|
|
+
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <configuration>
|
|
|
- <archive>
|
|
|
- <manifest>
|
|
|
- <mainClass>${main.class}</mainClass>
|
|
|
- </manifest>
|
|
|
- </archive>
|
|
|
- <descriptorRefs>
|
|
|
- <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
- </descriptorRefs>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>make-assembly</id> <!-- this is used for inheritance merges -->
|
|
|
- <phase>package</phase> <!-- bind to the packaging phase -->
|
|
|
- <goals>
|
|
|
- <goal>single</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <filtering>false</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
|
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
|
|
+ </manifest>
|
|
|
+ <addMavenDescriptor>false</addMavenDescriptor><!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
|
|
|
+ </archive>
|
|
|
+
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
+
|
|
|
+ <excludes>
|
|
|
+ <exclude>config/**/*</exclude>
|
|
|
+ <exclude>*.properties</exclude>
|
|
|
+ <exclude>*.xml</exclude>
|
|
|
+ </excludes>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- The configuration of maven-assembly-plugin -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>make-assembly</id> <!--名字任意 -->
|
|
|
+ <phase>package</phase> <!-- 绑定到package生命周期阶段上 -->
|
|
|
+ <goals>
|
|
|
+ <goal>single</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <appendAssemblyId>false</appendAssemblyId>
|
|
|
+ <descriptors>
|
|
|
+ <descriptor>script/pkg.xml</descriptor>
|
|
|
+ </descriptors>
|
|
|
+ <outputDirectory>${project.build.directory}/</outputDirectory>
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
|
|
|
</project>
|