pom.xml 5.01 KB
Newer Older
dthakore's avatar
dthakore committed
1 2 3 4 5 6 7
<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>

    <parent>
        <artifactId>stubs-parent</artifactId>
        <groupId>com.cablelabs.ocap</groupId>
8
        <version>1.3.2-SNAPSHOT</version>
dthakore's avatar
dthakore committed
9 10 11 12 13 14
    </parent>

    <artifactId>stubs-pkg</artifactId>    
    <name>OCAP RI Stubs Zip</name>
    
    <dependencies>
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_api</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_ds</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_dvr</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_fp</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_hn</artifactId>
            <version>${project.version}</version>
        </dependency>
        
dthakore's avatar
dthakore committed
41 42 43 44
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_api</artifactId>
            <version>${project.version}</version>
45
            <scope>runtime</scope>
dthakore's avatar
dthakore committed
46 47 48 49 50 51 52
            <type>zip</type>
            <classifier>src</classifier>
        </dependency>
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_ds</artifactId>
            <version>${project.version}</version>
53
            <scope>runtime</scope>
dthakore's avatar
dthakore committed
54 55 56 57 58 59 60
            <type>zip</type>
            <classifier>src</classifier>
        </dependency>
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_dvr</artifactId>
            <version>${project.version}</version>
61
            <scope>runtime</scope>
dthakore's avatar
dthakore committed
62 63 64 65 66 67 68
            <type>zip</type>
            <classifier>src</classifier>
        </dependency>
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_fp</artifactId>
            <version>${project.version}</version>
69
            <scope>runtime</scope>
dthakore's avatar
dthakore committed
70 71 72 73 74 75 76
            <type>zip</type>
            <classifier>src</classifier>
        </dependency>
        <dependency>
            <groupId>com.cablelabs.ocap</groupId>
            <artifactId>ocap_hn</artifactId>
            <version>${project.version}</version>
77
            <scope>runtime</scope>
dthakore's avatar
dthakore committed
78 79 80 81
            <type>zip</type>
            <classifier>src</classifier>
        </dependency>
    </dependencies>
82
     
dthakore's avatar
dthakore committed
83

84
    <build>
dthakore's avatar
dthakore committed
85 86 87 88 89
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.3</version>
90
                <inherited>false</inherited>                
dthakore's avatar
dthakore committed
91 92 93 94
                <executions>
                    <execution>
                        <id>srczip</id>
                        <goals>
95
                            <goal>single</goal>
dthakore's avatar
dthakore committed
96 97
                        </goals>
                        <phase>package</phase>
98 99 100 101 102 103
                        <configuration>
                            <descriptors>
                                <descriptor>src/assemble/srczip.xml</descriptor>
                            </descriptors>
                            <finalName>ocap_stubs-${project.version}</finalName>
                        </configuration>
dthakore's avatar
dthakore committed
104 105 106
                    </execution>
                </executions>
            </plugin>
107 108 109 110 111 112 113 114
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>1.6</version>
                <configuration>
                    <artifactSet>
                        <includes>
                            <include>com.cablelabs.ocap:ocap_api:jar:*</include>
115 116 117 118
                            <include>com.cablelabs.ocap:ocap_ds:jar:*</include>
                            <include>com.cablelabs.ocap:ocap_dvr:jar:*</include>
                            <include>com.cablelabs.ocap:ocap_fp:jar:*</include>
                            <include>com.cablelabs.ocap:ocap_hn:jar:*</include>
119 120 121 122 123 124 125 126 127 128 129 130 131 132
                        </includes>
                    </artifactSet>
                    <finalName>ocap-stub</finalName>
                </configuration>
                <executions>
                    <execution>
                        <id>uberjar</id>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <phase>package</phase>
                    </execution>
                </executions>
            </plugin>
dthakore's avatar
dthakore committed
133 134 135 136 137
        </plugins>
    </build>
</project>