Guest User

Untitled

a guest
Aug 19th, 2021
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6.  
  7. <groupId>org.example</groupId>
  8. <artifactId>ToyTest2</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10.  
  11. <properties>
  12. <maven.compiler.source>11</maven.compiler.source>
  13. <maven.compiler.target>11</maven.compiler.target>
  14. </properties>
  15.  
  16. <repositories>
  17. <repository>
  18. <id>spigotmc-repo</id>
  19. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  20. </repository>
  21. </repositories>
  22.  
  23. <dependencies>
  24. <dependency>
  25. <groupId>com.google.code.gson</groupId>
  26. <artifactId>gson</artifactId>
  27. <version>2.8.5</version>
  28. </dependency>
  29. </dependencies>
  30.  
  31. <build>
  32. <plugins>
  33. <plugin>
  34. <groupId>org.apache.maven.plugins</groupId>
  35. <artifactId>maven-jar-plugin</artifactId>
  36. <version>2.4</version>
  37. <configuration>
  38. <archive>
  39. <manifest>
  40. <mainClass>io.github.leocab.ToyTest</mainClass>
  41. </manifest>
  42. </archive>
  43. </configuration>
  44. </plugin>
  45.  
  46.  
  47. <plugin>
  48. <groupId>org.apache.maven.plugins</groupId>
  49. <artifactId>maven-shade-plugin</artifactId>
  50. <version>3.2.4</version>
  51. <executions>
  52. <execution>
  53. <phase>package</phase>
  54. <goals>
  55. <goal>shade</goal>
  56. </goals>
  57. <configuration>
  58. <transformers>
  59. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  60. <mainClass>org.sonatype.haven.HavenCli</mainClass>
  61. </transformer>
  62. </transformers>
  63. </configuration>
  64. </execution>
  65. </executions>
  66. </plugin>
  67.  
  68.  
  69. </plugins>
  70. </build>
  71. </project>
Advertisement
Add Comment
Please, Sign In to add comment