указал плагин мавена 8.5.0, стоял по умолчанию 2.0
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for fineFood:fineFood:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 21, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building fineFood 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ fineFood ---
[INFO]
[INFO] >>> javafx-maven-plugin:8.5.0:jar (default-cli) @ fineFood >>>
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ fineFood ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ fineFood ---
[WARNING] File encoding has not been set, using platform encoding Cp1251, i.e. build is platform dependent!
[INFO] Compiling 4 source files to D:\Android\fineFood\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ fineFood ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\Android\fineFood\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ fineFood ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ fineFood ---
[INFO] No tests to run.
[INFO] Surefire report directory: D:\Android\fineFood\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ fineFood ---
[INFO] Building jar: D:\Android\fineFood\target\fineFood-1.0-SNAPSHOT.jar
[INFO]
[INFO] <<< javafx-maven-plugin:8.5.0:jar (default-cli) @ fineFood <<<
[INFO]
[INFO] --- javafx-maven-plugin:8.5.0:jar (default-cli) @ fineFood ---
[INFO] Building JavaFX JAR for application
[INFO] Adding 'deploy' directory to Mojo classpath: D:\Android\fineFood/src/main/deploy
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.956s
[INFO] Finished at: Sat Aug 20 19:33:01 GMT+03:00 2016
[INFO] Final Memory: 14M/287M
[INFO] ------------------------------------------------------------------------
Vorh: корочь расковырял и убил проект, потом починил, настроил переменные среды, щас при сборке пишет
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for fineFood:fineFood:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 21, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building fineFood 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ fineFood ---
[INFO] Deleting D:\Android\fineFood\target
[INFO]
[INFO] >>> javafx-maven-plugin:2.0:jar (default-cli) @ fineFood >>>
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ fineFood ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ fineFood ---
[WARNING] File encoding has not been set, using platform encoding Cp1251, i.e. build is platform dependent!
[INFO] Compiling 4 source files to D:\Android\fineFood\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ fineFood ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\Android\fineFood\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ fineFood ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ fineFood ---
[INFO] No tests to run.
[INFO] Surefire report directory: D:\Android\fineFood\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ fineFood ---
[INFO] Building jar: D:\Android\fineFood\target\fineFood-1.0-SNAPSHOT.jar
[INFO]
[INFO] <<< javafx-maven-plugin:2.0:jar (default-cli) @ fineFood <<<
[INFO]
[INFO] --- javafx-maven-plugin:2.0:jar (default-cli) @ fineFood ---
[INFO] Building JavaFX JAR for application
[INFO] Adding 'deploy' directory to Mojo classpath: D:\Android\fineFood/src/main/deploy
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.020s
[INFO] Finished at: Sat Aug 20 19:17:29 GMT+03:00 2016
[INFO] Final Memory: 14M/286M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.zenjava:javafx-maven-plugin:2.0:jar (default-cli) on project fineFood: Execution default-cli of goal com.zenjava:javafx-maven-plugin:2.0:jar failed: An API incompatibility was encountered while executing com.zenjava:javafx-mav
en-plugin:2.0:jar: java.lang.NoSuchMethodError: com.sun.javafx.tools.packager.Log.setLogger(Lcom/sun/javafx/tools/packager/Log$Logger;)V
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.zenjava:javafx-maven-plugin:2.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/www/.m2/repository/com/zenjava/javafx-maven-plugin/2.0/javafx-maven-plugin-2.0.jar
[ERROR] urls[1] = file:/C:/Users/www/.m2/repository/org/twdata/maven/mojo-executor/2.0/mojo-executor-2.0.jar
[ERROR] urls[2] = file:/C:/Users/www/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[3] = file:/C:/Users/www/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[4] = file:/C:/Users/www/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[5] = file:/C:/Users/www/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[6] = file:/C:/Users/www/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[7] = file:/C:/Users/www/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar
[ERROR] urls[8] = file:/C:/Users/www/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[9] = file:/C:/Users/www/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[10] = file:/C:/Users/www/.m2/repository/org/codehaus/plexus/plexus-archiver/2.1.1/plexus-archiver-2.1.1.jar
[ERROR] urls[11] = file:/C:/Users/www/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[12] = file:/C:/Users/www/.m2/repository/org/codehaus/plexus/plexus-io/2.0.3/plexus-io-2.0.3.jar
[ERROR] urls[13] = file:/C:/Program%20Files/Java/jdk1.8.0_91/jre/../lib/ant-javafx.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[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] cwiki.apache.org/confluence/display/MAVEN/PluginCo...
Vorh: вот что получил
D:\Android\fineFood>java -jar D:\Android\fineFood\out\artifacts\test\test.jar
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/mysql/cj/jdbc/Driver
at mainFx.create.connectDB.ConnectionDB.(ConnectionDB.java:24)
at mainFx.create.connectDB.ConnectionDB.(ConnectionDB.java:10)
at mainFx.Main.main(Main.java:248)
... 11 more
Caused by: java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 14 more
Exception running application mainFx.Main
Vorh: мне так и не удаётся собрать рабочий проект, получаю jar весом 1,7мб, при потыке запуска - на секунду появляется консоль и пропадает
Ещё я так и не понял, что надобно писать в class path?
манифест автоматически создан, путь к main указал, все библиотеки указал собрать в проекте
правда собирал через Build->Build Artefacts, консолькой пользоваться пока не умею
GavriKos: Корочь ArrayList arrayList = new ArrayList();
я писал без , так как хотел пихать туда ещё чё нить. В as3, во время выполнения, выскочила бы ошибка, если метод отсутствует, а тут жёстко привязали
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for fineFood:fineFood:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 21, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building fineFood 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ fineFood ---
[INFO]
[INFO] >>> javafx-maven-plugin:8.5.0:jar (default-cli) @ fineFood >>>
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ fineFood ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ fineFood ---
[WARNING] File encoding has not been set, using platform encoding Cp1251, i.e. build is platform dependent!
[INFO] Compiling 4 source files to D:\Android\fineFood\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ fineFood ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\Android\fineFood\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ fineFood ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ fineFood ---
[INFO] No tests to run.
[INFO] Surefire report directory: D:\Android\fineFood\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ fineFood ---
[INFO] Building jar: D:\Android\fineFood\target\fineFood-1.0-SNAPSHOT.jar
[INFO]
[INFO] <<< javafx-maven-plugin:8.5.0:jar (default-cli) @ fineFood <<<
[INFO]
[INFO] --- javafx-maven-plugin:8.5.0:jar (default-cli) @ fineFood ---
[INFO] Building JavaFX JAR for application
[INFO] Adding 'deploy' directory to Mojo classpath: D:\Android\fineFood/src/main/deploy
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.956s
[INFO] Finished at: Sat Aug 20 19:33:01 GMT+03:00 2016
[INFO] Final Memory: 14M/287M
[INFO] ------------------------------------------------------------------------
правда не запускается всё равно