Advertisement
Guest User

Untitled

a guest
May 28th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.38 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.     <artifactId>ZKP_Inspector</artifactId>
  7.     <packaging>jar</packaging>
  8.  
  9.     <properties>
  10.         <client.version>1.0.0</client.version>
  11.         <exec.maven.plugin.version>1.6.0</exec.maven.plugin.version>
  12.     </properties>
  13.  
  14.     <parent>
  15.         <groupId>de.abc.xyz</groupId>
  16.         <artifactId>bachelor_maven</artifactId>
  17.         <version>1.0-SNAPSHOT</version>
  18.         <relativePath>..</relativePath>
  19.     </parent>
  20.  
  21.     <build>
  22.  
  23.         <plugins>
  24.             <plugin>
  25.                 <groupId>org.openjfx</groupId>
  26.                 <artifactId>javafx-maven-plugin</artifactId>
  27.                 <version>0.0.4</version>
  28.                 <configuration>
  29.                     <mainClass>main.Main</mainClass>
  30.                 </configuration>
  31.             </plugin>
  32.  
  33.             <plugin>
  34.                 <groupId>org.apache.maven.plugins</groupId>
  35.                 <artifactId>maven-dependency-plugin</artifactId>
  36.                 <version>3.1.1</version>
  37.                 <executions>
  38.                     <execution>
  39.                         <id>copy-dependencies</id>
  40.                         <phase>package</phase>
  41.                         <goals>
  42.                             <goal>copy-dependencies</goal>
  43.                         </goals>
  44.                         <configuration>
  45.                             <outputDirectory>${project.build.directory}/libs</outputDirectory>
  46.                             <overWriteReleases>false</overWriteReleases>
  47.                             <overWriteSnapshots>false</overWriteSnapshots>
  48.                             <overWriteIfNewer>true</overWriteIfNewer>
  49.                             <includeScope>compile</includeScope>
  50.                             <includeScope>runtime</includeScope>
  51.                         </configuration>
  52.                     </execution>
  53.                 </executions>
  54.             </plugin>
  55.  
  56.         </plugins>
  57.     </build>
  58.  
  59.     <profiles>
  60.         <profile>
  61.             <id>build-mac</id>
  62.  
  63.             <activation>
  64.                 <os><family>mac</family></os>
  65.             </activation>
  66.  
  67.             <build>
  68.                 <plugins>
  69.                     <plugin>
  70.                         <artifactId>exec-maven-plugin</artifactId>
  71.                         <groupId>org.codehaus.mojo</groupId>
  72.                         <version>${exec.maven.plugin.version}</version>
  73.                         <executions>
  74.                             <execution>
  75.                                 <id>Build Native Mac App</id>
  76.                                 <phase>install</phase>
  77.                                 <goals>
  78.                                     <goal>exec</goal>
  79.                                 </goals>
  80.                             </execution>
  81.                         </executions>
  82.                         <configuration>
  83.                             <workingDirectory>${project.basedir}</workingDirectory>
  84.                             <executable>./build_app.sh</executable>
  85.                             <environmentVariables>
  86.                                 <APP_VERSION>
  87.                                     ${client.version}
  88.                                 </APP_VERSION>
  89.                                 <PROJECT_VERSION>
  90.                                     ${project.version}
  91.                                 </PROJECT_VERSION>
  92.                             </environmentVariables>
  93.                         </configuration>
  94.                     </plugin>
  95.                 </plugins>
  96.             </build>
  97.         </profile>
  98.  
  99.         <profile>
  100.             <id>build-windows</id>
  101.  
  102.             <activation>
  103.                 <os><family>windows</family></os>
  104.             </activation>
  105.  
  106.             <build>
  107.                 <plugins>
  108.                     <plugin>
  109.                         <artifactId>exec-maven-plugin</artifactId>
  110.                         <groupId>org.codehaus.mojo</groupId>
  111.                         <version>${exec.maven.plugin.version}</version>
  112.                         <executions>
  113.                             <execution>
  114.                                 <id>Build Native Windows App</id>
  115.                                 <phase>install</phase>
  116.                                 <goals>
  117.                                     <goal>exec</goal>
  118.                                 </goals>
  119.                             </execution>
  120.                         </executions>
  121.                         <configuration>
  122.                             <workingDirectory>${project.basedir}</workingDirectory>
  123.                             <executable>build_app.bat</executable>
  124.                             <environmentVariables>
  125.                                 <APP_VERSION>
  126.                                     ${client.version}
  127.                                 </APP_VERSION>
  128.                                 <PROJECT_VERSION>
  129.                                     ${project.version}
  130.                                 </PROJECT_VERSION>
  131.                             </environmentVariables>
  132.                         </configuration>
  133.                     </plugin>
  134.                 </plugins>
  135.             </build>
  136.         </profile>
  137.  
  138.     </profiles>
  139.  
  140.  
  141. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement