Skip to content

Commit

Permalink
# ref format pom
Browse files Browse the repository at this point in the history
  • Loading branch information
ktdynamic committed Jan 30, 2019
1 parent 5893478 commit e956fc5
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 47 deletions.
41 changes: 35 additions & 6 deletions http-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,45 @@
<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>netty-proxy</artifactId>
<groupId>com.zkdcloud</groupId>
<version>1.0.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<groupId>com.zkdcloud.proxy</groupId>
<artifactId>http-server</artifactId>
<version>1.0.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<netty.version>4.1.9.Final</netty.version>
<logback.version>1.1.7</logback.version>
</properties>

<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>

<!-- logback -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-access</artifactId>
<version>${logback.version}</version>
</dependency>

<!-- junit test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exc
}
});
int port = args != null && args.length >= 1 ? Integer.parseInt(args[0]) : 1081;
logger.info("socks5 server start at : : {}", port);
logger.info("http server start at : : {}", port);

serverBootstrap.bind(port).sync().channel().closeFuture().sync();
}
Expand Down
33 changes: 0 additions & 33 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,4 @@
<module>http-server</module>
</modules>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<netty.version>4.1.9.Final</netty.version>
<logback.version>1.1.7</logback.version>
</properties>

<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>

<!-- logback -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-access</artifactId>
<version>${logback.version}</version>
</dependency>

<!-- junit test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
42 changes: 35 additions & 7 deletions socks5-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,45 @@
<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>
<groupId>com.zkdcloud</groupId>
<artifactId>netty-proxy</artifactId>
<version>1.0.0</version>
</parent>

<groupId>com.zkdcloud.proxy</groupId>
<artifactId>socks5-server</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.0.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<netty.version>4.1.9.Final</netty.version>
<logback.version>1.1.7</logback.version>
</properties>

<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>

<!-- logback -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-access</artifactId>
<version>${logback.version}</version>
</dependency>

<!-- junit test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
Expand Down

0 comments on commit e956fc5

Please sign in to comment.