Skip to content
Snippets Groups Projects
pom.xml 4.17 KiB
Newer Older
<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>

  <name>AF3 Phoenix 2.14 Product</name>
Andreas Bayha's avatar
Andreas Bayha committed
  <version>2.21.0-SNAPSHOT</version>
  <artifactId>org.fortiss.af3.phoenix.product</artifactId>
  <groupId>org.fortiss.af3.phoenix.products</groupId>
  <packaging>eclipse-repository</packaging>

  <parent>
    <groupId>org.fortiss.af3</groupId>
    <artifactId>org.fortiss.af3.root</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>../../../pom.xml</relativePath>
  </parent>

  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-director-plugin</artifactId>
        <version>${tycho-version}</version>
        <executions>
          <execution>
            <!-- install the product using the p2 director -->
            <id>default-materialize-products</id>
            <goals>
              <goal>materialize-products</goal>
            </goals>
          </execution>
          <execution>
            <!-- create zip file with the installed product -->
            <id>archive-products</id>
            <phase>verify</phase>
            <goals>
              <goal>archive-products</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <products>
            <product>
              <id>org.fortiss.af3.phoenix.product</id>
              <rootFolder>AutoFOCUS3</rootFolder>
              <rootFolders>
                <linux>AutoFOCUS3</linux>
                <macosx>AutoFOCUS3</macosx>
                <windows>AutoFOCUS3</windows>
              </rootFolders>
            </product>
          </products>
        </configuration>
      </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.8</version>
            <executions>
              <execution>
                <id>patch-product</id>
                <phase>package</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target name="Final product patching">
                    <!-- Linux build: JFX <-> Wayland compatibility -->
                    <echo message="Fixing Linux build..."/>
                    <move file="${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/AutoFOCUS3/autofocus3-phoenix"
                        tofile="${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/AutoFOCUS3/autofocus3-phoenix-binary"/>
                    <copy file="${project.basedir}/af3-linux-startup-script.sh"
                        tofile="${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/AutoFOCUS3/autofocus3-phoenix"/>
                    <chmod file="${project.build.directory}/products/org.fortiss.af3.phoenix.product/linux/gtk/x86_64/AutoFOCUS3/autofocus3-phoenix"
                        perm="750"/>
                    <!-- MacOS build -->
                    <echo message="Fixing MacOS build..."/>
                    <copy todir="${project.build.directory}/products/org.fortiss.af3.phoenix.product/macosx/cocoa/x86_64/AutoFOCUS3.app/Contents/MacOS/">
Andreas Bayha's avatar
Andreas Bayha committed
                      <fileset dir="${project.build.directory}/products/org.fortiss.af3.phoenix.product/macosx/cocoa/x86_64/AutoFOCUS3.app/Contents/Eclipse/plugins/com.microsoft.z3_2.21.0.${buildQualifier}/lib/x64/">
                        <include name="*.dylib"/>
                      </fileset>
                    </copy>
                    <copy file="${project.build.directory}/products/org.fortiss.af3.phoenix.product/macosx/cocoa/x86_64/AutoFOCUS3.app/Contents/Eclipse/autofocus3-phoenix.ini"
                        todir="${project.build.directory}/products/org.fortiss.af3.phoenix.product/macosx/cocoa/x86_64/AutoFOCUS3.app/Contents/MacOS/"/>
                  </target>
                </configuration>
              </execution>
            </executions>
          </plugin>
    </plugins>
  </build>

</project>