Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | |
| 3 | <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"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | |
| 6 | <parent> |
| 7 | <groupId>com.squareup.okhttp.sample</groupId> |
| 8 | <artifactId>sample-parent</artifactId> |
Tobias Thierer | 6c251e2 | 2016-06-24 19:04:17 +0100 | [diff] [blame] | 9 | <version>2.7.5</version> |
Narayan Kamath | 166772b | 2013-11-04 16:04:55 +0000 | [diff] [blame] | 10 | </parent> |
| 11 | |
| 12 | <artifactId>static-server</artifactId> |
| 13 | <name>Sample: Static Server</name> |
| 14 | |
| 15 | <dependencies> |
| 16 | <dependency> |
| 17 | <groupId>com.squareup.okhttp</groupId> |
| 18 | <artifactId>mockwebserver</artifactId> |
| 19 | <version>${project.version}</version> |
| 20 | </dependency> |
| 21 | |
| 22 | </dependencies> |
| 23 | |
| 24 | <build> |
| 25 | <plugins> |
| 26 | <plugin> |
| 27 | <groupId>org.apache.maven.plugins</groupId> |
| 28 | <artifactId>maven-shade-plugin</artifactId> |
| 29 | <version>2.1</version> |
| 30 | <configuration> |
| 31 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 32 | <shadedClassifierName>shaded</shadedClassifierName> |
| 33 | <transformers> |
| 34 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 35 | <manifestEntries> |
| 36 | <Main-Class>com.squareup.okhttp.sample.SampleServer</Main-Class> |
| 37 | </manifestEntries> |
| 38 | </transformer> |
| 39 | </transformers> |
| 40 | <filters> |
| 41 | <filter> |
| 42 | <artifact>*:*</artifact> |
| 43 | <excludes> |
| 44 | <exclude>META-INF/*.SF</exclude> |
| 45 | <exclude>META-INF/*.DSA</exclude> |
| 46 | <exclude>META-INF/*.RSA</exclude> |
| 47 | </excludes> |
| 48 | </filter> |
| 49 | </filters> |
| 50 | </configuration> |
| 51 | <executions> |
| 52 | <execution> |
| 53 | <phase>package</phase> |
| 54 | <goals><goal>shade</goal></goals> |
| 55 | </execution> |
| 56 | </executions> |
| 57 | </plugin> |
| 58 | </plugins> |
| 59 | </build> |
| 60 | </project> |