Commit 4b5ab0e0 authored by Matthieu Moy's avatar Matthieu Moy

Fichiers JavaFX dans un sous-répertoire du dépôt

parent 5c23eeeb
Pipeline #5529 failed with stage
in 9 seconds
File added
<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>
<groupId>fr.univ-lyon1.info.m1</groupId>
<artifactId>poneymon_fx</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>poneymon_fx</name>
<url>https://forge.univ-lyon1.fr/matthieu.moy/m1if01</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javafx</groupId>
<artifactId>jfxrt</artifactId>
<version>2.0</version>
<type>jar</type>
<scope>system</scope>
<systemPath>${project.basedir}/../../lib/jfxrt.jar</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<source>1.8</source>
<target>1.8</target>
<mainClass>fr.univ_lyon1.info.m1.poneymon_fx.App</mainClass>
</configuration>
</plugin>
<!--plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<archive>
<index>true</index>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>fr.univ_lyon1.info.m1.poneymon_fx.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>fr.univ_lyon1.info.m1.poneymon_fx.App</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <!-- https://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>validate</id>
<phase>test</phase>
<configuration>
<configLocation>src/main/config/checkstyle.xml</configLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<!-- mvn test fails for any warning or error -->
<failsOnError>true</failsOnError>
<violationSeverity>warning</violationSeverity>
<linkXRef>false</linkXRef>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
HERE=$(cd "$(dirname "$BASH_SOURCE")" && pwd)
if [ -z "$HERE" ] || [ ! -f "$HERE"/jfxrt.jar ]; then
HERE=$(cd "$(dirname "$0")" && pwd)
fi
if [ -z "$HERE" ] || [ ! -f "$HERE"/jfxrt.jar ]; then
HERE=$PWD
fi
if [ -z "$HERE" ] || [ ! -f "$HERE"/jfxrt.jar ]; then
HERE=$PWD/lib
fi
if [ -z "$HERE" ] || [ ! -f "$HERE"/jfxrt.jar ]; then
echo "Failed to autodetect directory."
exit 1
fi
CLASSPATH="$HERE"/jfxrt.jar:"$HERE"/jfxswt.jar:.
export CLASSPATH
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment