22301080 | a033473 | 2025-05-17 21:38:32 +0800 | [diff] [blame^] | 1 | <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"> |
| 2 | <modelVersion>4.0.0</modelVersion> |
| 3 | |
| 4 | <parent> |
| 5 | <groupId>com.turn</groupId> |
| 6 | <artifactId>ttorrent</artifactId> |
| 7 | <version>1.3.0-SNAPSHOT</version> |
| 8 | </parent> |
| 9 | |
| 10 | <name>Java BitTorrent library CLI</name> |
| 11 | <artifactId>ttorrent-cli</artifactId> |
| 12 | <packaging>jar</packaging> |
| 13 | |
| 14 | <dependencies> |
| 15 | <dependency> |
| 16 | <groupId>com.turn</groupId> |
| 17 | <artifactId>ttorrent-client</artifactId> |
| 18 | <version>1.3.0-SNAPSHOT</version> |
| 19 | </dependency> |
| 20 | <dependency> |
| 21 | <groupId>com.turn</groupId> |
| 22 | <artifactId>ttorrent-tracker</artifactId> |
| 23 | <version>1.3.0-SNAPSHOT</version> |
| 24 | </dependency> |
| 25 | </dependencies> |
| 26 | |
| 27 | <build> |
| 28 | <defaultGoal>package</defaultGoal> |
| 29 | |
| 30 | <plugins> |
| 31 | <plugin> |
| 32 | <groupId>org.apache.maven.plugins</groupId> |
| 33 | <artifactId>maven-jar-plugin</artifactId> |
| 34 | <version>2.4</version> |
| 35 | <configuration> |
| 36 | <archive> |
| 37 | <manifest> |
| 38 | <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 39 | </manifest> |
| 40 | </archive> |
| 41 | <includes> |
| 42 | <include>**</include> |
| 43 | </includes> |
| 44 | </configuration> |
| 45 | </plugin> |
| 46 | |
| 47 | <plugin> |
| 48 | <artifactId>maven-shade-plugin</artifactId> |
| 49 | <version>2.1</version> |
| 50 | <executions> |
| 51 | <execution> |
| 52 | <phase>package</phase> |
| 53 | <goals> |
| 54 | <goal>shade</goal> |
| 55 | </goals> |
| 56 | <configuration> |
| 57 | <outputFile>${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar</outputFile> |
| 58 | <transformers> |
| 59 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 60 | <manifestEntries> |
| 61 | <Main-Class>com.turn.ttorrent.cli.ClientMain</Main-Class> |
| 62 | </manifestEntries> |
| 63 | </transformer> |
| 64 | </transformers> |
| 65 | </configuration> |
| 66 | </execution> |
| 67 | </executions> |
| 68 | </plugin> |
| 69 | </plugins> |
| 70 | </build> |
| 71 | </project> |