forked from phoedos/pmd
253 lines
9.7 KiB
XML
253 lines
9.7 KiB
XML
<?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>pmd-ui</artifactId>
|
|
<name>PMD UI Applications</name>
|
|
|
|
<parent>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd</artifactId>
|
|
<version>6.11.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<java.version>8</java.version>
|
|
<!-- Workaround for https://youtrack.jetbrains.com/issue/IDEA-188690 -->
|
|
<maven.compiler.source>1.${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>1.${java.version}</maven.compiler.target>
|
|
|
|
<build.mr.java8.output>${project.build.directory}/classes-java8</build.mr.java8.output>
|
|
|
|
|
|
<openjfx.version>11</openjfx.version>
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
<resource>
|
|
<directory>${project.basedir}/src/main/resources/</directory>
|
|
<excludes>
|
|
<exclude>**/*.less</exclude>
|
|
</excludes>
|
|
</resource>
|
|
</resources>
|
|
|
|
<plugins>
|
|
<!-- Compiles Less files into CSS files. Currently compatible with Less 1.7.0 -->
|
|
<!-- If need be, we can probably update the Less version by using the lessJs
|
|
configuration property and having a custom less.js file around. -->
|
|
<!-- See https://github.com/marceloverdijk/lesscss-maven-plugin -->
|
|
<plugin>
|
|
<groupId>org.lesscss</groupId>
|
|
<artifactId>lesscss-maven-plugin</artifactId>
|
|
<version>1.7.0.1.1</version>
|
|
<configuration>
|
|
<sourceDirectory>${project.basedir}/src/main/resources/net/sourceforge/pmd/util/fxdesigner/less</sourceDirectory>
|
|
<outputDirectory>${project.build.outputDirectory}/net/sourceforge/pmd/util/fxdesigner/css</outputDirectory>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-pmd-plugin</artifactId>
|
|
<configuration>
|
|
<rulesets>
|
|
<ruleset>/net/sourceforge/pmd/pmd-ui-dogfood-config.xml</ruleset>
|
|
</rulesets>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Unpack Java 8 specific code into the root output dir -->
|
|
<!-- Code specific to higher versions is unpacked into META-INF/versions/n -->
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>Unpack java 8 specific deps</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifact>org.controlsfx:controlsfx:8.40.13</artifact>
|
|
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
|
|
<includes>**/*</includes>
|
|
<excludes>MANIFEST.MF</excludes>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>Unpack java 9 specific deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifact>org.controlsfx:controlsfx:9.0.0</artifact>
|
|
<outputDirectory>${project.build.outputDirectory}/META-INF/versions/9</outputDirectory>
|
|
<includes>**/*</includes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<!-- Important for it to work on JRE 9+ -->
|
|
<Multi-Release>true</Multi-Release>
|
|
<Main-Class>net.sourceforge.pmd.util.fxdesigner.DesignerStarter</Main-Class>
|
|
</manifestEntries>
|
|
</archive>
|
|
<finalName>pmd-ui-${project.version}</finalName>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-core</artifactId>
|
|
</dependency>
|
|
|
|
<!-- OpenJFX dependencies are provided. OpenJFX needs to be installed separately. -->
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-base</artifactId>
|
|
<version>${openjfx.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-controls</artifactId>
|
|
<version>${openjfx.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-fxml</artifactId>
|
|
<version>${openjfx.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-graphics</artifactId>
|
|
<version>${openjfx.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-media</artifactId>
|
|
<version>${openjfx.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-web</artifactId>
|
|
<version>${openjfx.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.fxmisc.richtext</groupId>
|
|
<artifactId>richtextfx</artifactId>
|
|
<version>0.9.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<!-- That one is "provided" because several versions are unpacked into versioned dirs -->
|
|
<!-- to create a multi-release jar. -->
|
|
<groupId>org.controlsfx</groupId>
|
|
<artifactId>controlsfx</artifactId>
|
|
<version>8.40.13</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-beanutils</groupId>
|
|
<artifactId>commons-beanutils-core</artifactId>
|
|
<version>1.8.3</version>
|
|
</dependency>
|
|
|
|
<!-- Icon packs -->
|
|
<dependency>
|
|
<groupId>org.kordamp.ikonli</groupId>
|
|
<artifactId>ikonli-javafx</artifactId>
|
|
<version>2.3.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.kordamp.ikonli</groupId>
|
|
<artifactId>ikonli-fontawesome5-pack</artifactId>
|
|
<version>2.3.0</version>
|
|
</dependency>
|
|
|
|
<!-- PMD dependencies -->
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-apex</artifactId>
|
|
<version>${project.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-java</artifactId>
|
|
<version>${project.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-javascript</artifactId>
|
|
<version>${project.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-jsp</artifactId>
|
|
<version>${project.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-plsql</artifactId>
|
|
<version>${project.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-visualforce</artifactId>
|
|
<version>${project.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-vm</artifactId>
|
|
<version>${project.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
<artifactId>pmd-xml</artifactId>
|
|
<version>${project.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|