Home | History | Annotate | Download | only in 4.1.0.CR3
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3   ~ Copyright 2012 The Netty Project
      4   ~
      5   ~ The Netty Project licenses this file to you under the Apache License,
      6   ~ version 2.0 (the "License"); you may not use this file except in compliance
      7   ~ with the License. You may obtain a copy of the License at:
      8   ~
      9   ~   http://www.apache.org/licenses/LICENSE-2.0
     10   ~
     11   ~ Unless required by applicable law or agreed to in writing, software
     12   ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
     13   ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
     14   ~ License for the specific language governing permissions and limitations
     15   ~ under the License.
     16   -->
     17 <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">
     18 
     19   <modelVersion>4.0.0</modelVersion>
     20   
     21   <parent>
     22     <groupId>io.netty</groupId>
     23     <artifactId>netty-parent</artifactId>
     24     <version>4.1.0.CR3</version>
     25   </parent>
     26 
     27   <artifactId>netty-common</artifactId>
     28   <packaging>jar</packaging>
     29 
     30   <name>Netty/Common</name>
     31 
     32   <properties>
     33     <collection.template.dir>${project.basedir}/src/main/templates</collection.template.dir>
     34     <collection.template.test.dir>${project.basedir}/src/test/templates</collection.template.test.dir>
     35     <collection.src.dir>${project.build.directory}/generated-sources/collections/java</collection.src.dir>
     36     <collection.testsrc.dir>${project.build.directory}/generated-test-sources/collections/java</collection.testsrc.dir>
     37   </properties>
     38 
     39   <dependencies>
     40     <!-- Byte code generator - completely optional -->
     41     <dependency>
     42       <groupId>org.javassist</groupId>
     43       <artifactId>javassist</artifactId>
     44       <scope>compile</scope> <!-- override the 'test' scope defined at parent pom.xml -->
     45       <optional>true</optional>
     46     </dependency>
     47 
     48     <!-- Logging frameworks - completely optional -->
     49     <dependency>
     50       <groupId>org.slf4j</groupId>
     51       <artifactId>slf4j-api</artifactId>
     52       <optional>true</optional>
     53     </dependency>
     54     <dependency>
     55       <groupId>commons-logging</groupId>
     56       <artifactId>commons-logging</artifactId>
     57       <optional>true</optional>
     58     </dependency>
     59     <dependency>
     60       <groupId>log4j</groupId>
     61       <artifactId>log4j</artifactId>
     62       <optional>true</optional>
     63     </dependency>
     64   </dependencies>
     65 
     66   <build>
     67     <plugins>
     68       <!-- Add generated collection sources. -->
     69       <plugin>
     70         <groupId>org.codehaus.mojo</groupId>
     71         <artifactId>build-helper-maven-plugin</artifactId>
     72         <version>1.9.1</version>
     73         <executions>
     74           <execution>
     75             <id>add-source</id>
     76             <phase>generate-sources</phase>
     77             <goals>
     78               <goal>add-source</goal>
     79             </goals>
     80             <configuration>
     81               <sources>
     82                 <source>${collection.src.dir}</source>
     83               </sources>
     84             </configuration>
     85           </execution>
     86           <execution>
     87             <id>add-test-source</id>
     88             <phase>generate-test-sources</phase>
     89             <goals>
     90               <goal>add-test-source</goal>
     91             </goals>
     92             <configuration>
     93               <sources>
     94                 <source>${collection.testsrc.dir}</source>
     95               </sources>
     96             </configuration>
     97           </execution>
     98         </executions>
     99       </plugin>
    100 
    101       <!-- Generate the primitive collections from the template files. -->
    102       <plugin>
    103         <groupId>org.codehaus.gmaven</groupId>
    104         <artifactId>groovy-maven-plugin</artifactId>
    105         <version>2.0</version>
    106         <dependencies>
    107           <dependency>
    108             <groupId>org.codehaus.groovy</groupId>
    109             <artifactId>groovy-all</artifactId>
    110             <version>2.4.3</version>
    111           </dependency>
    112           <dependency>
    113             <groupId>ant</groupId>
    114             <artifactId>ant-optional</artifactId>
    115             <version>1.5.3-1</version>
    116           </dependency>
    117         </dependencies>
    118         <executions>
    119           <execution>
    120             <id>generate-collections</id>
    121             <phase>generate-sources</phase>
    122             <goals>
    123               <goal>execute</goal>
    124             </goals>
    125             <configuration>
    126               <source>${project.basedir}/src/main/script/codegen.groovy</source>
    127             </configuration>
    128           </execution>
    129         </executions>
    130       </plugin>
    131     </plugins>
    132   </build>
    133 </project>
    134 
    135