[WARNING] The requested profile "demo" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project mg-news-server: Compilation failure
[ERROR] /opt/app/src/news/src/main/java/com/news/biz/impl/NewsCommentBizImpl.java:[17,38] package com.sun.media.jfxmedia.logging does not exist
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :news
缺少 com.sun.media.jfxmedia.logging
。
com.sun.media.jfxmedia.logging
在 jfxrt.jar
中。
jfxrt.jar
在 $JAVA_HOME/jre/lib/ext
目录下。
jfxrt.jar
拷贝到OpenJDK的对应位置。