javafx maven集成采用javafx-maven-plugin,
主要分为几个目标:
jfx:jar
jfx:web
jfx:native
jfx:fix-classpath
jfx:generate-key-store
jfx:run
但是在
mvn clean jfx:run
时遇到了问题:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
解决方法:
<build> <plugins> <plugin> <groupId>com.zenjava</groupId> <artifactId>javafx-maven-plugin</artifactId> <version>2.0</version> <configuration> <mainClass>net.jalbright.scratch.App</mainClass> </configuration> <dependencies> <dependency> <groupId>org.twdata.maven</groupId> <artifactId>mojo-executor</artifactId> <version>2.1.0</version> </dependency> </dependencies> </plugin> </plugins> </build>
参考:http://www.zenjava.com/2013/05/26/javafx-maven-plugin-2-0-alpha-feedback-needed/
http://zenjava.com/javafx/maven/index.html
http://stackoverflow.com/questions/19407959/javafx-maven-plugin-and-api-incompatibility
时间: 2024-10-09 16:40:43