pom-jfxrt-hack.xml 3.59 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<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>
Matthieu Moy's avatar
Matthieu Moy committed
22
      <version>4.12</version>
23 24 25 26 27 28 29 30 31 32 33 34 35 36
      <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>
37 38 39 40 41 42 43 44 45
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.0</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
      <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>
	  <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>