Open DurankGts opened 2 years ago
I think you're running the local build instead of the cloud build: https://shannah.github.io/codenameone-maven-manual/
Maven should only build for the target platform. If it is opening the simulator when you build for android then that may point to a problem. The only reason I can think of for the simulator to pop up is for the CSS compilation.
What IDE are you using? Can you share console logs of the build?
Netbeans 15, jdk 1.8.192. I shared the build log by email support of codenameone from soporte@geotrack-solutions.com. Tomorrow I will share if you can't found in your support mail.
cd F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central; "JAVA_HOME=C:\Program Files\Java\jdk-11.0.16.1_1" cmd /c "\"F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\mvnw.cmd\" -DskipTests=true -Dcodename1.platform=ios -Dcodename1.buildTarget=ios-device -Dexec.vmArgs= -Dexec.appArgs= \"-Dmaven.ext.class.path=C:\Program Files\NetBeans-15\netbeans\java\maven-nblib\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 --errors --errors -Psimulator verify" [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.geotracksolutionsint.forcesos:forcesos-javase:jar:1.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.codenameone:codenameone-core:jar -> duplicate declaration of version (?) @ line 60, column 19 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.codenameone:codenameone-javase:jar -> duplicate declaration of version (?) @ line 70, column 19 [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] Reactor Build Order: [INFO] [INFO] forcesos-cn1libs [pom] [INFO] GoogleMaps-1.1.1 [pom] [INFO] AnimatedGifSupport [pom] [INFO] BouncyCastleCN1Lib [pom] [INFO] CN1Bluetooth [pom] [INFO] CN1Sensors [pom] [INFO] cn1-websockets [pom] [INFO] Connectivity [pom] [INFO] Telephony [pom] [INFO] CN1JSON [pom] [INFO] forcesos-common [jar] [INFO] forcesos-javase [jar] [INFO] forcesos-ios [jar] [INFO] forcesos [pom] [INFO] [INFO] ---------< com.geotracksolutionsint.forcesos:forcesos-cn1libs >--------- [INFO] Building forcesos-cn1libs 1.0-SNAPSHOT [1/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] ----< com.geotracksolutionsint.forcesos:forcesos-GoogleMaps-1.1.1 >----- [INFO] Building GoogleMaps-1.1.1 1.0-SNAPSHOT [2/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts) @ forcesos-GoogleMaps-1.1.1 --- [INFO] [INFO] ---< com.geotracksolutionsint.forcesos:forcesos-AnimatedGifSupport >---- [INFO] Building AnimatedGifSupport 1.0-SNAPSHOT [3/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts) @ forcesos-AnimatedGifSupport --- [INFO] [INFO] ---< com.geotracksolutionsint.forcesos:forcesos-BouncyCastleCN1Lib >---- [INFO] Building BouncyCastleCN1Lib 1.0-SNAPSHOT [4/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts) @ forcesos-BouncyCastleCN1Lib --- [INFO] [INFO] ------< com.geotracksolutionsint.forcesos:forcesos-CN1Bluetooth >------- [INFO] Building CN1Bluetooth 1.0-SNAPSHOT [5/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts) @ forcesos-CN1Bluetooth --- [INFO] [INFO] -------< com.geotracksolutionsint.forcesos:forcesos-CN1Sensors >-------- [INFO] Building CN1Sensors 1.0-SNAPSHOT [6/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts) @ forcesos-CN1Sensors --- [INFO] [INFO] -----< com.geotracksolutionsint.forcesos:forcesos-cn1-websockets >------ [INFO] Building cn1-websockets 1.0-SNAPSHOT [7/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts) @ forcesos-cn1-websockets --- [INFO] [INFO] ------< com.geotracksolutionsint.forcesos:forcesos-Connectivity >------- [INFO] Building Connectivity 1.0-SNAPSHOT [8/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts) @ forcesos-Connectivity --- [INFO] [INFO] --------< com.geotracksolutionsint.forcesos:forcesos-Telephony >-------- [INFO] Building Telephony 1.0-SNAPSHOT [9/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts) @ forcesos-Telephony --- [INFO] [INFO] ---------< com.geotracksolutionsint.forcesos:forcesos-CN1JSON >--------- [INFO] Building CN1JSON 1.0-SNAPSHOT [10/14] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts) @ forcesos-CN1JSON --- [INFO] [INFO] ---------< com.geotracksolutionsint.forcesos:forcesos-common >---------- [INFO] Building forcesos-common 1.0-SNAPSHOT [11/14] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- properties-maven-plugin:1.0.0:read-project-properties (default) @ forcesos-common --- [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:generate-gui-sources (generate-gui-sources) @ forcesos-common --- Generating GUI sources No GUI Entries available [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forcesos-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 9 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ forcesos-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:compliance-check (cn1-process-classes) @ forcesos-common --- [INFO] Running compliance check against Codename One Java Runtime API [INFO] See https://www.codenameone.com/javadoc/ for supported Classes and Methods [INFO] Sources haven't changed since the last compliance check. Skipping check [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:css (cn1-process-classes) @ forcesos-common --- [INFO] CSS themes not activated for this project. Skipping CSS compilation [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forcesos-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\common\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ forcesos-common --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ forcesos-common --- [INFO] Tests are skipped. [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:attach-test-artifact (attach-test-artifact) @ forcesos-common --- [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ forcesos-common --- [INFO] [INFO] ---------< com.geotracksolutionsint.forcesos:forcesos-javase >---------- [INFO] Building forcesos-javase 1.0-SNAPSHOT [12/14] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:prepare-simulator-classpath (prepare-simulator-environment) @ forcesos-javase --- [INFO] Preparing Simulator Classpath [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:generate-javase-sources (add-se-sources) @ forcesos-javase --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forcesos-javase --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ forcesos-javase --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forcesos-javase --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ forcesos-javase --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ forcesos-javase --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ forcesos-javase --- [INFO] [INFO] >>> codenameone-maven-plugin:7.0.82:build (build-desktop-macosx) > package @ forcesos-javase >>> [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:prepare-simulator-classpath (prepare-simulator-environment) @ forcesos-javase --- [INFO] Preparing Simulator Classpath [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:generate-javase-sources (add-se-sources) @ forcesos-javase --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forcesos-javase --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ forcesos-javase --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forcesos-javase --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ forcesos-javase --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ forcesos-javase --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ forcesos-javase --- [INFO] [INFO] <<< codenameone-maven-plugin:7.0.82:build (build-desktop-macosx) < package @ forcesos-javase <<< [INFO] [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:build (build-desktop-macosx) @ forcesos-javase --- [INFO] [INFO] --- exec-maven-plugin:3.0.0:exec (run-in-simulator) @ forcesos-javase --- Adding CEF to classpath Retina Scale: 1.0 Hotswap Agent not detected. To enable enhanced live class reloading feature, run with DCEVM JDK and add -XX:HotswapAgent=core to the VM options ** Database.exists() is not supported in the Javascript port. If you plan to deploy to Javascript, you should avoid this method. *** Starting CSS Watcher for prefix Watching CSS files for changes: [F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\src\main\css\theme.css] Running CSS watch with args [C:\Program Files\Java\jre1.8.0_192\bin\java, -jar, -Dcli=true, -Dcef.dir=C:\Users\Keylon Duran.m2\repository\com\codenameone\codenameone-cef\84.4.1-M3\codenameone-cef-84.4.1-M3-win64.zip-extracted, -Dparent.port=53443, C:\Users\Keylon Duran.m2\repository\com\codenameone\codenameone-designer\7.0.82\codenameone-designer-7.0.82-jar-with-dependencies.jar-extracted\designer_1.jar, -css, -input, F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\src\main\css\theme.css, -output, F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\target\classes\theme.res, -merge, F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\target\css\theme.css, -watch] CSS> Retina Scale: 1.0 CSS> Using stateless mode CSS> Looks like this CSS file needs CEF on classpath... adding it now, and retrying... CSS> Adding CEF to classpath C:\Users\Keylon Duran.m2\repository\com\codenameone\codenameone-cef\84.4.1-M3\codenameone-cef-84.4.1-M3-win64.zip-extracted CSS> Retina Scale: 1.0 CSS> Using stateless mode CSS> Updating merge file F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\target\css\theme.css CSS> Starting watch thread to watch [F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\src\main\css\theme.css] CSS> Compiling F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\target\css\theme.css to F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\target\classes\theme.res CSS> CSS file successfully compiled. F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\target\classes\theme.res Rendering frame took too long 638 milliseconds Watching CSS files for changes: [F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\src\main\css\theme.css] Running CSS watch with args [C:\Program Files\Java\jre1.8.0_192\bin\java, -jar, -Dcli=true, -Dcef.dir=C:\Users\Keylon Duran.m2\repository\com\codenameone\codenameone-cef\84.4.1-M3\codenameone-cef-84.4.1-M3-win64.zip-extracted, -Dparent.port=53443, C:\Users\Keylon Duran.m2\repository\com\codenameone\codenameone-designer\7.0.82\codenameone-designer-7.0.82-jar-with-dependencies.jar-extracted\designer_1.jar, -css, -input, F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\src\main\css\theme.css, -output, F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\target\classes\theme.res, -merge, F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase..\common\target\css\theme.css, -watch] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128M; support was removed in 8.0 [INFO] [INFO] -----------< com.geotracksolutionsint.forcesos:forcesos-ios >----------- [INFO] Building forcesos-ios 1.0-SNAPSHOT [13/14] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forcesos-ios --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 16 resources [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ forcesos-ios --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forcesos-ios --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\ios\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ forcesos-ios --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ forcesos-ios --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ forcesos-ios --- [INFO] [INFO] >>> codenameone-maven-plugin:7.0.82:build (build-ios) > package @ forcesos-ios >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forcesos-ios --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 16 resources [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ forcesos-ios --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forcesos-ios --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\ios\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ forcesos-ios --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ forcesos-ios --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ forcesos-ios --- [INFO] [INFO] <<< codenameone-maven-plugin:7.0.82:build (build-ios) < package @ forcesos-ios <<< [INFO] [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:build (build-ios) @ forcesos-ios --- [INFO] Running ANT build target ios-device
ios-device: [echo] Building iOS for target iphone Checking provisioning profile for type iphone Your build size is: 16483kb Sending build request to the server, notice that the build might take a while to complete! Sending build to account: soporte@geotrack-solutions.com
========================================== if you could check your log first the Simulator is open and next when I close simulator the build to IOS is executed I'm using net beands 15 with open jdk-11.0.16.1_1
this the problem when I pressed Run button first init the simulator and Next the compilation to specific platform
But if I pressed right click on the root of my project then just run specific platform selected in config.
I have migrated to maven project. When I build to specific platform for example Android App Config. first run the simulator and next when I close the simulator the Android Build is executed.
The old ant project just run the specific platform. If you migrate to new project structure I think that you must keep the advantage of the old structure. it is very wasteful to have to compile for a real platform and have to first show the simulator and then have it close it for the real platform compilation.