Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>ZKP_Inspector</artifactId>
- <packaging>jar</packaging>
- <properties>
- <client.version>1.0.0</client.version>
- <exec.maven.plugin.version>1.6.0</exec.maven.plugin.version>
- </properties>
- <parent>
- <groupId>de.abc.xyz</groupId>
- <artifactId>bachelor_maven</artifactId>
- <version>1.0-SNAPSHOT</version>
- <relativePath>..</relativePath>
- </parent>
- <build>
- <plugins>
- <plugin>
- <groupId>org.openjfx</groupId>
- <artifactId>javafx-maven-plugin</artifactId>
- <version>0.0.4</version>
- <configuration>
- <mainClass>main.Main</mainClass>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>3.1.1</version>
- <executions>
- <execution>
- <id>copy-dependencies</id>
- <phase>package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/libs</outputDirectory>
- <overWriteReleases>false</overWriteReleases>
- <overWriteSnapshots>false</overWriteSnapshots>
- <overWriteIfNewer>true</overWriteIfNewer>
- <includeScope>compile</includeScope>
- <includeScope>runtime</includeScope>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>build-mac</id>
- <activation>
- <os><family>mac</family></os>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>exec-maven-plugin</artifactId>
- <groupId>org.codehaus.mojo</groupId>
- <version>${exec.maven.plugin.version}</version>
- <executions>
- <execution>
- <id>Build Native Mac App</id>
- <phase>install</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <workingDirectory>${project.basedir}</workingDirectory>
- <executable>./build_app.sh</executable>
- <environmentVariables>
- <APP_VERSION>
- ${client.version}
- </APP_VERSION>
- <PROJECT_VERSION>
- ${project.version}
- </PROJECT_VERSION>
- </environmentVariables>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>build-windows</id>
- <activation>
- <os><family>windows</family></os>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>exec-maven-plugin</artifactId>
- <groupId>org.codehaus.mojo</groupId>
- <version>${exec.maven.plugin.version}</version>
- <executions>
- <execution>
- <id>Build Native Windows App</id>
- <phase>install</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <workingDirectory>${project.basedir}</workingDirectory>
- <executable>build_app.bat</executable>
- <environmentVariables>
- <APP_VERSION>
- ${client.version}
- </APP_VERSION>
- <PROJECT_VERSION>
- ${project.version}
- </PROJECT_VERSION>
- </environmentVariables>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement