I tried to build the first javafx application for myself with the help of maven. I started it via java -jar and java -jar
no main manifest attribute
pom.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> <groupId>Diploma</groupId> <artifactId>Diploma</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <build> <plugins> <plugin> <groupId>com.zenjava</groupId> <artifactId>javafx-maven-plugin</artifactId> <version>2.0</version> <configuration> <mainClass>sample.MainApp</mainClass> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.0.6</version> </dependency> <dependency> <groupId>org.ghost4j</groupId> <artifactId>ghost4j</artifactId> <version>1.0.0</version> </dependency> </dependencies> </project>