liwgfr

pom.xml

Apr 13th, 2021
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.33 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>untitled1</artifactId>
  9.     <version>1.0-SNAPSHOT</version>
  10.  
  11.     <properties>
  12.         <maven.compiler.source>16</maven.compiler.source>
  13.         <maven.compiler.target>16</maven.compiler.target>
  14.     </properties>
  15.  
  16.     <dependencies>
  17.         <dependency>
  18.             <groupId>org.apache.maven.plugins</groupId>
  19.             <artifactId>maven-assembly-plugin</artifactId>
  20.             <version>3.3.0</version>
  21.             <type>maven-plugin</type>
  22.         </dependency>
  23.  
  24.         <dependency>
  25.             <groupId>org.projectlombok</groupId>
  26.             <artifactId>lombok</artifactId>
  27.             <version>1.18.20</version>
  28.         </dependency>
  29.         <dependency>
  30.             <groupId>org.telegram</groupId>
  31.             <artifactId>telegrambots</artifactId>
  32.             <version>5.1.1</version>
  33.         </dependency>
  34.         <dependency>
  35.             <groupId>ch.qos.logback</groupId>
  36.             <artifactId>logback-classic</artifactId>
  37.             <version>1.2.3</version>
  38.         </dependency>
  39.         <dependency>
  40.             <groupId>org.jetbrains</groupId>
  41.             <artifactId>annotations</artifactId>
  42.             <version>RELEASE</version>
  43.             <scope>compile</scope>
  44.         </dependency>
  45.     </dependencies>
  46.     <build>
  47.         <finalName>application</finalName>
  48.         <plugins>
  49.             <plugin>
  50.                 <groupId>org.codehaus.mojo</groupId>
  51.                 <artifactId>appassembler-maven-plugin</artifactId>
  52.                 <version>1.1.1</version>
  53.                 <configuration>
  54.                     <assembleDirectory>target</assembleDirectory>
  55.                     <programs>
  56.                         <program>
  57.                             <mainClass>Main</mainClass>
  58.                             <name>worker</name>
  59.                         </program>
  60.                     </programs>
  61.                 </configuration>
  62.                 <executions>
  63.                     <execution>
  64.                         <phase>package</phase><goals><goal>assemble</goal></goals>
  65.                     </execution>
  66.                 </executions>
  67.             </plugin>
  68.             <plugin>
  69.                 <artifactId>maven-assembly-plugin</artifactId>
  70.                 <configuration>
  71.                     <archive>
  72.                         <manifest>
  73.                             <mainClass>Main</mainClass>
  74.                         </manifest>
  75.                     </archive>
  76.                     <descriptorRefs>
  77.                         <descriptorRef>jar-with-dependencies</descriptorRef>
  78.                     </descriptorRefs>
  79.                 </configuration>
  80.                 <executions>
  81.                     <execution>
  82.                         <id>make-assembly</id>
  83.                         <phase>package</phase>
  84.                         <goals>
  85.                             <goal>single</goal>
  86.                         </goals>
  87.                     </execution>
  88.                 </executions>
  89.             </plugin>
  90.         </plugins>
  91.     </build>
  92.  
  93. </project>
Add Comment
Please, Sign In to add comment