<?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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>eu.fthevenet</groupId>
  <artifactId>binjr</artifactId>
  <name>binjr</name>
  <version>1.3.5</version>
  <description>Flexible Time Series Visualization</description>
  <url>http://www.binjr.eu</url>
  <developers>
    <developer>
      <name>Frederic Thevenet</name>
      <url>http://www.fthevenet.eu/</url>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:https://github.com/fthevenet/binjr.git</connection>
    <developerConnection>scm:git:https://github.com/fthevenet/binjr.git</developerConnection>
    <tag>v1.3.5</tag>
    <url>https://github.com/fthevenet/binjr</url>
  </scm>
  <organization>
    <name>Frederic Thevenet</name>
    <url>http://www.fthevenet.eu/</url>
  </organization>
  <build>
    <finalName>${project.name}</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.2</version>
        <configuration>
          <encoding>UTF-8</encoding>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.0.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <transformers>
                <transformer>
                  <manifestEntries>
                    <Main-Class>eu.fthevenet.binjr.Bootstrap</Main-Class>
                    <Specification-Title>${project.name}</Specification-Title>
                    <Specification-Version>${project.version}</Specification-Version>
                    <Specification-Vendor>${project.organization.name}</Specification-Vendor>
                    <Implementation-Title>${project.name}</Implementation-Title>
                    <Implementation-Version>${project.version}</Implementation-Version>
                    <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
                    <SplashScreen-Image>images/splashscreen.png</SplashScreen-Image>
                    <Build-Number>${env.BINJR_BUILD_NUMBER}</Build-Number>
                  </manifestEntries>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.5.3</version>
        <dependencies>
          <dependency>
            <groupId>org.apache.maven.scm</groupId>
            <artifactId>maven-scm-provider-gitexe</artifactId>
            <version>1.9.5</version>
          </dependency>
        </dependencies>
        <configuration>
          <tagNameFormat>v@{project.version}</tagNameFormat>
          <autoVersionSubmodules>true</autoVersionSubmodules>
          <useReleaseProfile>false</useReleaseProfile>
          <checkModificationExcludes>
            <checkModificationExclude>pom.xml</checkModificationExclude>
          </checkModificationExcludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.8</version>
        <extensions>true</extensions>
        <configuration>
          <skipNexusStagingDeployMojo>${skipDeploy}</skipNexusStagingDeployMojo>
          <serverId>ossrh</serverId>
          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <groupId>de.jutzig</groupId>
        <artifactId>github-release-plugin</artifactId>
        <version>1.2.0</version>
        <executions>
          <execution>
            <phase>deploy</phase>
            <goals>
              <goal>release</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <description>${project.name} v${project.version}</description>
          <releaseName>${project.name} v${project.version}</releaseName>
          <tag>v${project.version}</tag>
          <prerelease>${github.deploy.prerelease}</prerelease>
          <overwriteArtifact>true</overwriteArtifact>
          <fileSets>
            <fileSet>
              <directory>${project.build.directory}</directory>
              <includes>
                <include>${project.name}.jar</include>
              </includes>
            </fileSet>
          </fileSets>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>build-extras</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.0.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.0.0</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <doclint>none</doclint>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>sign</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <properties>
        <skipDeploy>false</skipDeploy>
      </properties>
    </profile>
    <profile>
      <id>buildNativeBundles</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>3.0.0</version>
            <executions>
              <execution>
                <id>clean-version</id>
                <phase>validate</phase>
                <goals>
                  <goal>regex-property</goal>
                </goals>
                <configuration>
                  <name>bundle.version</name>
                  <value>1.3.5</value>
                  <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(-SNAPSHOT)?$</regex>
                  <replacement>$1.$2.$3</replacement>
                  <failIfNoMatch>true</failIfNoMatch>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-resources-plugin</artifactId>
            <version>3.0.2</version>
            <executions>
              <execution>
                <id>default-testResources</id>
                <phase>process-test-resources</phase>
                <goals>
                  <goal>testResources</goal>
                </goals>
              </execution>
              <execution>
                <id>default-resources</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>resources</goal>
                </goals>
              </execution>
              <execution>
                <id>installer-windows</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <outputDirectory>/home/travis/build/fthevenet/binjr/binjr/target/checkout/binjr/src/main/deploy/package/windows</outputDirectory>
                  <resources>
                    <resource>
                      <directory>src/main/resources/bundlers</directory>
                      <includes>
                        <include>*.wxs</include>
                      </includes>
                      <filtering>true</filtering>
                    </resource>
                  </resources>
                </configuration>
              </execution>
              <execution>
                <id>installer-linux</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <outputDirectory>/home/travis/build/fthevenet/binjr/binjr/target/checkout/binjr/src/main/deploy/package/linux</outputDirectory>
                  <resources>
                    <resource>
                      <directory>src/main/resources/bundlers</directory>
                      <includes>
                        <include>*.spec</include>
                        <include>control</include>
                        <include>copyright</include>
                      </includes>
                      <filtering>true</filtering>
                    </resource>
                  </resources>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>com.zenjava</groupId>
            <artifactId>javafx-maven-plugin</artifactId>
            <version>8.8.3</version>
            <executions>
              <execution>
                <id>fromUrl-jfxjar</id>
                <phase>install</phase>
                <goals>
                  <goal>build-jar</goal>
                </goals>
                <configuration>
                  <mainClass>eu.fthevenet.binjr.Bootstrap</mainClass>
                  <vendor>Frederic Thevenet</vendor>
                  <bundler>all</bundler>
                  <nativeReleaseVersion>1.3.5</nativeReleaseVersion>
                  <appName>binjr</appName>
                  <additionalAppResources>/home/travis/build/fthevenet/binjr/binjr/target/checkout/binjr/src/main/deploy/resources</additionalAppResources>
                  <additionalBundlerResources>/home/travis/build/fthevenet/binjr/binjr/target/checkout/binjr/src/main/deploy/bundlers</additionalBundlerResources>
                  <jvmArgs>
                    <jvmArg>-splash:splashscreen.png</jvmArg>
                    <jvmArg>-XX:+UseG1GC</jvmArg>
                    <jvmArg>-XX:MaxGCPauseMillis=200</jvmArg>
                    <jvmArg>-Xmx2048m</jvmArg>
                  </jvmArgs>
                  <manifestAttributes>
                    <Main-Class>eu.fthevenet.binjr.Bootstrap</Main-Class>
                    <Specification-Title>binjr</Specification-Title>
                    <Specification-Version>1.3.5</Specification-Version>
                    <Specification-Vendor>Frederic Thevenet</Specification-Vendor>
                    <Implementation-Title>binjr</Implementation-Title>
                    <Implementation-Version>1.3.5</Implementation-Version>
                    <Implementation-Vendor>Frederic Thevenet</Implementation-Vendor>
                    <SplashScreen-Image>images/splashscreen.png</SplashScreen-Image>
                    <Build-Number>747</Build-Number>
                  </manifestAttributes>
                  <verbose>true</verbose>
                  <description>A time-series visualization studio</description>
                  <title>binjr</title>
                  <fileAssociations>
                    <fileAssociation>
                      <extensions>bjr</extensions>
                      <description>binjr Workspace Files</description>
                      <contentType>bjr</contentType>
                      <icon>binjr.ico</icon>
                    </fileAssociation>
                  </fileAssociations>
                  <bundleArguments>
                    <licenseFile>LICENSE</licenseFile>
                    <win.menuGroup>binjr</win.menuGroup>
                  </bundleArguments>
                  <skipJNLP>true</skipJNLP>
                </configuration>
              </execution>
              <execution>
                <id>fromUrl-native</id>
                <phase>install</phase>
                <goals>
                  <goal>build-native</goal>
                </goals>
                <configuration>
                  <mainClass>eu.fthevenet.binjr.Bootstrap</mainClass>
                  <vendor>Frederic Thevenet</vendor>
                  <bundler>all</bundler>
                  <nativeReleaseVersion>1.3.5</nativeReleaseVersion>
                  <appName>binjr</appName>
                  <additionalAppResources>/home/travis/build/fthevenet/binjr/binjr/target/checkout/binjr/src/main/deploy/resources</additionalAppResources>
                  <additionalBundlerResources>/home/travis/build/fthevenet/binjr/binjr/target/checkout/binjr/src/main/deploy/bundlers</additionalBundlerResources>
                  <jvmArgs>
                    <jvmArg>-splash:splashscreen.png</jvmArg>
                    <jvmArg>-XX:+UseG1GC</jvmArg>
                    <jvmArg>-XX:MaxGCPauseMillis=200</jvmArg>
                    <jvmArg>-Xmx2048m</jvmArg>
                  </jvmArgs>
                  <manifestAttributes>
                    <Main-Class>eu.fthevenet.binjr.Bootstrap</Main-Class>
                    <Specification-Title>binjr</Specification-Title>
                    <Specification-Version>1.3.5</Specification-Version>
                    <Specification-Vendor>Frederic Thevenet</Specification-Vendor>
                    <Implementation-Title>binjr</Implementation-Title>
                    <Implementation-Version>1.3.5</Implementation-Version>
                    <Implementation-Vendor>Frederic Thevenet</Implementation-Vendor>
                    <SplashScreen-Image>images/splashscreen.png</SplashScreen-Image>
                    <Build-Number>747</Build-Number>
                  </manifestAttributes>
                  <verbose>true</verbose>
                  <description>A time-series visualization studio</description>
                  <title>binjr</title>
                  <fileAssociations>
                    <fileAssociation>
                      <extensions>bjr</extensions>
                      <description>binjr Workspace Files</description>
                      <contentType>bjr</contentType>
                      <icon>binjr.ico</icon>
                    </fileAssociation>
                  </fileAssociations>
                  <bundleArguments>
                    <licenseFile>LICENSE</licenseFile>
                    <win.menuGroup>binjr</win.menuGroup>
                  </bundleArguments>
                  <skipJNLP>true</skipJNLP>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <mainClass>eu.fthevenet.binjr.Bootstrap</mainClass>
              <vendor>Frederic Thevenet</vendor>
              <bundler>all</bundler>
              <nativeReleaseVersion>1.3.5</nativeReleaseVersion>
              <appName>binjr</appName>
              <additionalAppResources>/home/travis/build/fthevenet/binjr/binjr/target/checkout/binjr/src/main/deploy/resources</additionalAppResources>
              <additionalBundlerResources>/home/travis/build/fthevenet/binjr/binjr/target/checkout/binjr/src/main/deploy/bundlers</additionalBundlerResources>
              <jvmArgs>
                <jvmArg>-splash:splashscreen.png</jvmArg>
                <jvmArg>-XX:+UseG1GC</jvmArg>
                <jvmArg>-XX:MaxGCPauseMillis=200</jvmArg>
                <jvmArg>-Xmx2048m</jvmArg>
              </jvmArgs>
              <manifestAttributes>
                <Main-Class>eu.fthevenet.binjr.Bootstrap</Main-Class>
                <Specification-Title>binjr</Specification-Title>
                <Specification-Version>1.3.5</Specification-Version>
                <Specification-Vendor>Frederic Thevenet</Specification-Vendor>
                <Implementation-Title>binjr</Implementation-Title>
                <Implementation-Version>1.3.5</Implementation-Version>
                <Implementation-Vendor>Frederic Thevenet</Implementation-Vendor>
                <SplashScreen-Image>images/splashscreen.png</SplashScreen-Image>
                <Build-Number>747</Build-Number>
              </manifestAttributes>
              <verbose>true</verbose>
              <description>A time-series visualization studio</description>
              <title>binjr</title>
              <fileAssociations>
                <fileAssociation>
                  <extensions>bjr</extensions>
                  <description>binjr Workspace Files</description>
                  <contentType>bjr</contentType>
                  <icon>binjr.ico</icon>
                </fileAssociation>
              </fileAssociations>
              <bundleArguments>
                <licenseFile>LICENSE</licenseFile>
                <win.menuGroup>binjr</win.menuGroup>
              </bundleArguments>
              <skipJNLP>true</skipJNLP>
            </configuration>
          </plugin>
          <plugin>
            <groupId>de.jutzig</groupId>
            <artifactId>github-release-plugin</artifactId>
            <version>1.2.0</version>
            <executions>
              <execution>
                <phase>deploy</phase>
                <goals>
                  <goal>release</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <description>binjr v${project.version}</description>
              <releaseName>binjr v${project.version}</releaseName>
              <tag>v${project.version}</tag>
              <prerelease>${github.deploy.prerelease}</prerelease>
              <overwriteArtifact>true</overwriteArtifact>
              <fileSets>
                <fileSet>
                  <directory>${project.build.directory}</directory>
                  <includes>
                    <include>${project.artifactId}.jar</include>
                  </includes>
                </fileSet>
                <fileSet>
                  <directory>${project.build.directory}/jfx/native/</directory>
                  <includes>
                    <include>${project.artifactId}*.msi</include>
                    <include>${project.artifactId}*.deb</include>
                    <include>${project.artifactId}*.rpm</include>
                    <include>${project.artifactId}*.dmg</include>
                  </includes>
                </fileSet>
              </fileSets>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <license.shortName>ASL 2.0</license.shortName>
    <license.name>Apache Software License 2.0</license.name>
    <License.url>http://www.apache.org/licenses/LICENSE-2.0</License.url>
    <detailedDescription>binjr is a Java based, open source, time series visualization tool. It can plot time series data from multiple sources as a set of charts, which end users can navigate or zoom in and out.</detailedDescription>
    <github.global.server>github</github.global.server>
    <releaseUrl>https://github.com/fthevenet/binjr/releases</releaseUrl>
    <project.scm.id>${github.global.server}</project.scm.id>
    <skipDeploy>true</skipDeploy>
    <helpUrl>https://github.com/fthevenet/binjr/wiki</helpUrl>
  </properties>
</project>

