• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3  <modelVersion>4.0.0</modelVersion>
4
5  <parent>
6    <groupId>org.brotli</groupId>
7    <artifactId>parent</artifactId>
8    <version>0.2.0-SNAPSHOT</version>
9  </parent>
10  <artifactId>dec</artifactId>
11  <version>0.2.0-SNAPSHOT</version>
12  <packaging>jar</packaging>
13
14  <name>${project.groupId}:${project.artifactId}</name>
15
16  <properties>
17    <manifestdir>${project.build.directory}/osgi</manifestdir>
18    <manifestfile>${manifestdir}/MANIFEST.MF</manifestfile>
19  </properties>
20
21  <build>
22    <sourceDirectory>../../..</sourceDirectory>
23    <testSourceDirectory>../../..</testSourceDirectory>
24    <plugins>
25      <plugin>
26        <groupId>org.apache.maven.plugins</groupId>
27        <artifactId>maven-compiler-plugin</artifactId>
28        <configuration>
29          <includes>
30            <include>org/brotli/dec/*.java</include>
31          </includes>
32          <excludes>
33            <exclude>**/*Test*.java</exclude>
34          </excludes>
35          <testIncludes>
36            <include>org/brotli/dec/*Test*.java</include>
37          </testIncludes>
38          <testExcludes>
39            <exclude>org/brotli/dec/SetDictionaryTest.java</exclude>
40          </testExcludes>
41        </configuration>
42      </plugin>
43      <plugin>
44        <groupId>org.apache.maven.plugins</groupId>
45        <artifactId>maven-source-plugin</artifactId>
46        <version>2.4</version>
47        <executions>
48          <execution>
49            <id>attach-sources</id>
50            <phase>verify</phase>
51            <goals>
52              <goal>jar-no-fork</goal>
53            </goals>
54            <configuration>
55              <includes>
56                <include>org/brotli/dec/*.java</include>
57              </includes>
58              <excludes>
59                <exclude>**/*Test*.java</exclude>
60              </excludes>
61            </configuration>
62          </execution>
63        </executions>
64      </plugin>
65      <plugin>
66        <groupId>org.apache.maven.plugins</groupId>
67        <artifactId>maven-javadoc-plugin</artifactId>
68        <version>2.10.4</version>
69        <executions>
70          <execution>
71            <id>attach-javadocs</id>
72            <phase>verify</phase>
73            <goals>
74              <goal>jar</goal>
75            </goals>
76            <configuration>
77              <sourcepath>.</sourcepath>
78              <sourceFileExcludes>
79                <exclude>**/*Test*.java</exclude>
80              </sourceFileExcludes>
81            </configuration>
82          </execution>
83        </executions>
84      </plugin>
85      <plugin>
86        <groupId>org.apache.felix</groupId>
87        <artifactId>maven-bundle-plugin</artifactId>
88        <version>3.0.1</version>
89        <configuration>
90          <archive>
91            <forced>true</forced>
92          </archive>
93          <excludeDependencies>true</excludeDependencies>
94          <manifestLocation>${manifestdir}</manifestLocation>
95          <instructions>
96            <_nouses>true</_nouses>
97            <Bundle-SymbolicName>org.brotli.${project.artifactId}</Bundle-SymbolicName>
98            <Bundle-Description>${project.description}</Bundle-Description>
99            <Export-Package>org.brotli.dec;version=${project.version};-noimport:=true</Export-Package>
100            <Private-Package></Private-Package>
101            <Import-Package>*</Import-Package>
102            <DynamicImport-Package></DynamicImport-Package>
103            <Bundle-DocURL>${project.url}</Bundle-DocURL>
104          </instructions>
105        </configuration>
106        <executions>
107          <execution>
108            <id>bundle-manifest</id>
109            <phase>process-classes</phase>
110            <goals>
111              <goal>manifest</goal>
112            </goals>
113          </execution>
114        </executions>
115      </plugin>
116      <plugin>
117        <groupId>org.apache.maven.plugins</groupId>
118        <artifactId>maven-jar-plugin</artifactId>
119        <version>2.5</version>
120        <configuration>
121          <archive>
122            <manifestFile>${manifestfile}</manifestFile>
123          </archive>
124        </configuration>
125      </plugin>
126    </plugins>
127  </build>
128
129  <dependencies>
130    <dependency>
131      <groupId>junit</groupId>
132      <artifactId>junit</artifactId>
133      <version>4.12</version>
134      <scope>test</scope>
135    </dependency>
136  </dependencies>
137</project>
138