1 <?xml version="1.0" encoding="UTF-8"?> 2 <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"> 3 <parent> 4 <artifactId>netty-parent</artifactId> 5 <groupId>io.netty</groupId> 6 <version>4.1.6.Final</version> 7 </parent> 8 <modelVersion>4.0.0</modelVersion> 9 <artifactId>netty-common</artifactId> 10 <name>Netty/Common</name> 11 <build> 12 <plugins> 13 <plugin> 14 <artifactId>maven-shade-plugin</artifactId> 15 <executions> 16 <execution> 17 <phase>package</phase> 18 <goals> 19 <goal>shade</goal> 20 </goals> 21 <configuration> 22 <artifactSet> 23 <includes> 24 <include>org.jctools</include> 25 </includes> 26 </artifactSet> 27 <relocations> 28 <relocation> 29 <pattern>org.jctools.</pattern> 30 <shadedPattern>io.netty.util.internal.shaded.org.jctools.</shadedPattern> 31 </relocation> 32 </relocations> 33 <minimizeJar>true</minimizeJar> 34 </configuration> 35 </execution> 36 </executions> 37 </plugin> 38 <plugin> 39 <groupId>org.codehaus.mojo</groupId> 40 <artifactId>build-helper-maven-plugin</artifactId> 41 <version>1.10</version> 42 <executions> 43 <execution> 44 <id>add-source</id> 45 <phase>generate-sources</phase> 46 <goals> 47 <goal>add-source</goal> 48 </goals> 49 <configuration> 50 <sources> 51 <source>${collection.src.dir}</source> 52 </sources> 53 </configuration> 54 </execution> 55 <execution> 56 <id>add-test-source</id> 57 <phase>generate-test-sources</phase> 58 <goals> 59 <goal>add-test-source</goal> 60 </goals> 61 <configuration> 62 <sources> 63 <source>${collection.testsrc.dir}</source> 64 </sources> 65 </configuration> 66 </execution> 67 </executions> 68 </plugin> 69 <plugin> 70 <groupId>org.codehaus.gmaven</groupId> 71 <artifactId>groovy-maven-plugin</artifactId> 72 <version>2.0</version> 73 <executions> 74 <execution> 75 <id>generate-collections</id> 76 <phase>generate-sources</phase> 77 <goals> 78 <goal>execute</goal> 79 </goals> 80 <configuration> 81 <source>${project.basedir}/src/main/script/codegen.groovy</source> 82 </configuration> 83 </execution> 84 </executions> 85 <dependencies> 86 <dependency> 87 <groupId>org.codehaus.groovy</groupId> 88 <artifactId>groovy-all</artifactId> 89 <version>2.4.7</version> 90 </dependency> 91 <dependency> 92 <groupId>ant</groupId> 93 <artifactId>ant-optional</artifactId> 94 <version>1.5.3-1</version> 95 </dependency> 96 </dependencies> 97 </plugin> 98 <plugin> 99 <groupId>org.apache.felix</groupId> 100 <artifactId>maven-bundle-plugin</artifactId> 101 <version>2.5.4</version> 102 <executions> 103 <execution> 104 <id>generate-manifest</id> 105 <phase>process-classes</phase> 106 <goals> 107 <goal>manifest</goal> 108 </goals> 109 <configuration> 110 <instructions> 111 <DynamicImport-Package>*</DynamicImport-Package> 112 <Import-Package>!org.jctools.*;sun.misc;resolution:=optional;*</Import-Package> 113 </instructions> 114 </configuration> 115 </execution> 116 </executions> 117 </plugin> 118 </plugins> 119 </build> 120 <dependencies> 121 <dependency> 122 <groupId>org.javassist</groupId> 123 <artifactId>javassist</artifactId> 124 <version>3.20.0-GA</version> 125 <scope>compile</scope> 126 <optional>true</optional> 127 </dependency> 128 <dependency> 129 <groupId>org.slf4j</groupId> 130 <artifactId>slf4j-api</artifactId> 131 <version>1.7.21</version> 132 <scope>compile</scope> 133 <optional>true</optional> 134 </dependency> 135 <dependency> 136 <groupId>commons-logging</groupId> 137 <artifactId>commons-logging</artifactId> 138 <version>1.2</version> 139 <scope>compile</scope> 140 <optional>true</optional> 141 </dependency> 142 <dependency> 143 <groupId>log4j</groupId> 144 <artifactId>log4j</artifactId> 145 <version>1.2.17</version> 146 <scope>compile</scope> 147 <exclusions> 148 <exclusion> 149 <artifactId>mail</artifactId> 150 <groupId>javax.mail</groupId> 151 </exclusion> 152 <exclusion> 153 <artifactId>jms</artifactId> 154 <groupId>javax.jms</groupId> 155 </exclusion> 156 <exclusion> 157 <artifactId>jmxtools</artifactId> 158 <groupId>com.sun.jdmk</groupId> 159 </exclusion> 160 <exclusion> 161 <artifactId>jmxri</artifactId> 162 <groupId>com.sun.jmx</groupId> 163 </exclusion> 164 </exclusions> 165 <optional>true</optional> 166 </dependency> 167 <dependency> 168 <groupId>org.apache.logging.log4j</groupId> 169 <artifactId>log4j-api</artifactId> 170 <version>2.6.2</version> 171 <scope>compile</scope> 172 <optional>true</optional> 173 </dependency> 174 <dependency> 175 <groupId>org.apache.logging.log4j</groupId> 176 <artifactId>log4j-core</artifactId> 177 <version>2.6.2</version> 178 <scope>test</scope> 179 </dependency> 180 <dependency> 181 <groupId>junit</groupId> 182 <artifactId>junit</artifactId> 183 <version>4.12</version> 184 <scope>test</scope> 185 <exclusions> 186 <exclusion> 187 <artifactId>hamcrest-core</artifactId> 188 <groupId>org.hamcrest</groupId> 189 </exclusion> 190 </exclusions> 191 </dependency> 192 <dependency> 193 <groupId>io.netty</groupId> 194 <artifactId>netty-build</artifactId> 195 <version>22</version> 196 <scope>test</scope> 197 <exclusions> 198 <exclusion> 199 <artifactId>checkstyle</artifactId> 200 <groupId>com.puppycrawl.tools</groupId> 201 </exclusion> 202 </exclusions> 203 </dependency> 204 <dependency> 205 <groupId>org.hamcrest</groupId> 206 <artifactId>hamcrest-library</artifactId> 207 <version>1.3</version> 208 <scope>test</scope> 209 <exclusions> 210 <exclusion> 211 <artifactId>hamcrest-core</artifactId> 212 <groupId>org.hamcrest</groupId> 213 </exclusion> 214 </exclusions> 215 </dependency> 216 <dependency> 217 <groupId>org.easymock</groupId> 218 <artifactId>easymock</artifactId> 219 <version>3.4</version> 220 <scope>test</scope> 221 <exclusions> 222 <exclusion> 223 <artifactId>objenesis</artifactId> 224 <groupId>org.objenesis</groupId> 225 </exclusion> 226 </exclusions> 227 </dependency> 228 <dependency> 229 <groupId>org.easymock</groupId> 230 <artifactId>easymockclassextension</artifactId> 231 <version>3.2</version> 232 <scope>test</scope> 233 </dependency> 234 <dependency> 235 <groupId>org.jmock</groupId> 236 <artifactId>jmock-junit4</artifactId> 237 <version>2.8.2</version> 238 <scope>test</scope> 239 <exclusions> 240 <exclusion> 241 <artifactId>junit-dep</artifactId> 242 <groupId>junit</groupId> 243 </exclusion> 244 <exclusion> 245 <artifactId>jmock</artifactId> 246 <groupId>org.jmock</groupId> 247 </exclusion> 248 </exclusions> 249 </dependency> 250 <dependency> 251 <groupId>org.mockito</groupId> 252 <artifactId>mockito-core</artifactId> 253 <version>1.10.19</version> 254 <scope>test</scope> 255 <exclusions> 256 <exclusion> 257 <artifactId>objenesis</artifactId> 258 <groupId>org.objenesis</groupId> 259 </exclusion> 260 <exclusion> 261 <artifactId>hamcrest-core</artifactId> 262 <groupId>org.hamcrest</groupId> 263 </exclusion> 264 </exclusions> 265 </dependency> 266 <dependency> 267 <groupId>ch.qos.logback</groupId> 268 <artifactId>logback-classic</artifactId> 269 <version>1.1.7</version> 270 <scope>test</scope> 271 <exclusions> 272 <exclusion> 273 <artifactId>logback-core</artifactId> 274 <groupId>ch.qos.logback</groupId> 275 </exclusion> 276 </exclusions> 277 </dependency> 278 </dependencies> 279 <properties> 280 <collection.template.test.dir>${project.basedir}/src/test/templates</collection.template.test.dir> 281 <collection.testsrc.dir>${project.build.directory}/generated-test-sources/collections/java</collection.testsrc.dir> 282 <collection.template.dir>${project.basedir}/src/main/templates</collection.template.dir> 283 <collection.src.dir>${project.build.directory}/generated-sources/collections/java</collection.src.dir> 284 </properties> 285 </project> 286 287