1 Star 0 Fork 1

dyyx/netty-in-action-cn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pom.xml 8.37 KB
一键复制 编辑 原始数据 按行查看 历史
<?xml version="1.0" encoding="ISO-8859-15"?>
<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>
<groupId>me.normanmaurer.nettyinaction</groupId>
<artifactId>netty-in-action</artifactId>
<name>netty-in-action</name>
<version>0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<optimize>true</optimize>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>${mainClass}</argument>
<argument>${args}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.npn</groupId>
<artifactId>npn-api</artifactId>
<version>${npn.version}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty.npn</groupId>
<artifactId>npn-boot</artifactId>
<version>${npn.boot.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<properties>
<npn.version>1.1.0.v20120525</npn.version>
<npn.boot.version>1.1.10.v20150130</npn.boot.version>
<netty.version>4.0.25.Final</netty.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<profiles>
<profile>
<id>chapter11-ChatServer</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>${mainClass}</argument>
<argument>${port}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<mainClass>com.manning.nettyinaction.chapter11.ChatServer</mainClass>
<port>9999</port>
</properties>
</profile>
<profile>
<id>chapter11-SecureChatServer</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>${mainClass}</argument>
<argument>${port}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<mainClass>com.manning.nettyinaction.chapter11.SecureChatServer</mainClass>
<port>9999</port>
</properties>
</profile>
<profile>
<id>chapter12-SpdyServer</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-Xbootclasspath/p:${settings.localRepository}/org/mortbay/jetty/npn/npn-boot/${npn.boot.version}/npn-boot-${npn.boot.version}.jar</argument>
<argument>-classpath</argument>
<classpath/>
<argument>${mainClass}</argument>
<argument>${port}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<mainClass>com.manning.nettyinaction.chapter12.SpdyServer</mainClass>
<port>9999</port>
</properties>
</profile>
<profile>
<id>chapter13-LogEventMonitor</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>${mainClass}</argument>
<argument>${port}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<mainClass>com.manning.nettyinaction.chapter13.LogEventMonitor</mainClass>
<port>9999</port>
</properties>
</profile>
<profile>
<id>chapter13-LogEventBroadcaster</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>${mainClass}</argument>
<argument>${port}</argument>
<argument>${logfile}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<mainClass>com.manning.nettyinaction.chapter13.LogEventBroadcaster</mainClass>
<port>9999</port>
<logfile>/var/log/messages</logfile>
</properties>
</profile>
</profiles>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dyyx/netty-in-action-cn.git
git@gitee.com:dyyx/netty-in-action-cn.git
dyyx
netty-in-action-cn
netty-in-action-cn
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385