Gluon plugin fails to compile on Window intellij - java

I know that this is basicly the same as this but I followed all the advice from the answer and it doesnt work for me... When trying to do anything that isn't - gluonfx:run I get the following error:
"C:\Program Files\Amazon Corretto\jdk11.0.16_8\bin\java.exe" "-Dmaven.multiModuleProjectDirectory=C:\Java Projects\SPO related\Prototypes\SPO Gluon Prototype" "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2\lib\idea_rt.jar=56069:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2022.2 com.gluonhq:gluonfx-maven-plugin:1.0.16:compile
[INFO] Scanning for projects...
[INFO]
[INFO] -------< com.spoapplication:spo-gluon-prototype >--------
[INFO] Building SPO Gluon Prototype 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> gluonfx-maven-plugin:1.0.16:compile (default-cli) > process-classes # spo-gluon-prototype >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # spo-gluon-prototype ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 13 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # spo-gluon-prototype ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< gluonfx-maven-plugin:1.0.16:compile (default-cli) < process-classes # spo-gluon-prototype <<<
[INFO]
[INFO]
[INFO] --- gluonfx-maven-plugin:1.0.16:compile (default-cli) # spo-gluon-prototype ---
[Thu Jan 12 20:52:44 IST 2023][INFO] ==================== COMPILE TASK ====================
_______ ___ __ __ _______ __ _
| || | | | | || || | | |
| ___|| | | | | || _ || |_| |
| | __ | | | |_| || | | || |
| || || |___ | || |_| || _ |
| |_| || || || || | | |
|_______||_______||_______||_______||_| |__|
Access to the latest docs, tips and tricks and more info on
how to get support? Register your usage of Gluon Substrate now at
https://gluonhq.com/activate
[Thu Jan 12 20:52:45 IST 2023][INFO] We will now compile your code for x86_64-microsoft-windows. This may take some time.
java.io.IOException: Cannot run program "cl" (in directory "C:\Java Projects\SPO related\Prototypes\SPO Gluon Prototype\target\gluonfx\x86_64-windows\gvm\SPO Gluon Prototype"): CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.gluonhq.substrate.util.ProcessRunner.setupProcess(ProcessRunner.java:378)
at com.gluonhq.substrate.util.ProcessRunner.runProcess(ProcessRunner.java:236)
at com.gluonhq.substrate.target.AbstractTargetConfiguration.compileAdditionalSources(AbstractTargetConfiguration.java:356)
at com.gluonhq.substrate.target.AbstractTargetConfiguration.compile(AbstractTargetConfiguration.java:134)
at com.gluonhq.substrate.SubstrateDispatcher.nativeCompile(SubstrateDispatcher.java:425)
at com.gluonhq.NativeCompileMojo.execute(NativeCompileMojo.java:54)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:492)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:153)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 30 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.639 s
[INFO] Finished at: 2023-01-12T20:52:45+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.16:compile (default-cli) on project spo-gluon-prototype: Error: Cannot run program "cl" (in directory "C:\Java Projects\SPO related\Prototypes\SPO Gluon Prototype\target\gluonfx\x86_64-windows\gvm\SPO Gluon Prototype"): CreateProcess error=2, The system cannot find the file specified -> [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/MojoExecutionException
Process finished with exit code 1
I don't understand why do I get: cannot run program "cl".
I tried reading and re-reading all the gluon documantion and online solutions but it didn't bear any fruit. It could be that I installed VS 2022 or I installed some things incorrectly there.
I need to chat with someone that has experience because I have none, I learned to code the past couple of months for a project in a high school class.

Related

SonarQube generate PDF report

I have Jenkins to build my Java deployable and then push code into SonarQube for code scanning,
I am able to see the Bug report on SonarQube as well,
But I want a downloadable report in a PDF format or anything that can be shared after the scan.
I added the following properties in my project's pom.xml-
<properties>
<sonar.analysis.mode>preview</sonar.analysis.mode> <sonar.issuesReport.html.enable>true</sonar.issuesReport.html.enable>
</properties>
On my local Jenkins I have the following commands -
echo ** Executing SQ Analysis **
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.projectKey=Demo -Dsonar.sources=src/main/java -Dsonar.login=[someKey] -Dsonar.ProjectName=Demo -Dsonar.analysis.mode=preview -Dsonar.issuesReport.html.enable=true
I am getting the following error while trying to build -
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # Linear-ingestion ---
[INFO] Installing /home/user/.jenkins/workspace/Linear/target/Linear-ingestion-1.0-SNAPSHOT.jar to /home/user/.m2/repository/com/cloudlytics/Linear-ingestion/1.0-SNAPSHOT/Linear-ingestion-1.0-SNAPSHOT.jar
[INFO] Installing /home/user/.jenkins/workspace/Linear/pom.xml to /home/user/.m2/repository/com/cloudlytics/Linear-ingestion/1.0-SNAPSHOT/Linear-ingestion-1.0-SNAPSHOT.pom
[INFO] Installing /home/user/.jenkins/workspace/Linear/target/Linear-ingestion-1.0-SNAPSHOT-jar-with-dependencies.jar to /home/user/.m2/repository/com/cloudlytics/Linear-ingestion/1.0-SNAPSHOT/Linear-ingestion-1.0-SNAPSHOT-jar-with-dependencies.jar
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenFingerprinter$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.531 s
[INFO] Finished at: 2018-07-04T13:41:08+05:30
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /home/user/.jenkins/workspace/Linear/pom.xml to com.cloudlytics/Linear-ingestion/1.0-SNAPSHOT/Linear-ingestion-1.0-SNAPSHOT.pom
[JENKINS] Archiving /home/user/.jenkins/workspace/Linear/target/Linear-ingestion-1.0-SNAPSHOT.jar to com.cloudlytics/Linear-ingestion/1.0-SNAPSHOT/Linear-ingestion-1.0-SNAPSHOT.jar
[JENKINS] Archiving /home/user/.jenkins/workspace/Linear/target/Linear-ingestion-1.0-SNAPSHOT-jar-with-dependencies.jar to com.cloudlytics/Linear-ingestion/1.0-SNAPSHOT/Linear-ingestion-1.0-SNAPSHOT-jar-with-dependencies.jar
[Linear] $ /bin/sh -xe /home/user/office/R&D/apache-tomcat-8.5.31/temp/jenkins3011322823073246601.sh
channel stopped
+ echo RemoteSystemsTempFiles bin log4j.properties pom.xml src target Executing SQ Analysis RemoteSystemsTempFiles bin log4j.properties pom.xml src target
RemoteSystemsTempFiles bin log4j.properties pom.xml src target Executing SQ Analysis RemoteSystemsTempFiles bin log4j.properties pom.xml src target
+ mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.projectKey=Linear -Dsonar.sources=src/main/java -Dsonar.login=f51956611fa53b292bb19e25752cb22b5afe893e -Dsonar.ProjectName=Linear sonar-runner -Dsonar.analysis.mode=preview -Dsonar.issuesReport.html.enable=true
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.cloudlytics:Linear-ingestion:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework:spring-core:jar -> version ${springframework.version} vs ${spring.version} # line 52, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework:spring-context:jar -> version ${springframework.version} vs ${org.springframework-version} # line 67, column 15
[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] ------------------< com.cloudlytics:Linear-ingestion >------------------
[INFO] Building Linear-ingestion 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- sonar-maven-plugin:3.4.1.1168:sonar (default-cli) # Linear-ingestion ---
[INFO] User cache: /home/user/.sonar/cache
[INFO] SonarQube version: 6.7.4
[INFO] Default locale: "en_IN", source code encoding: "UTF-8"
[INFO] Issues mode
[WARNING] The use of the issues mode (sonar.analysis.mode=issues) is deprecated. This mode will be dropped in the future.
[INFO] Load global settings
[INFO] Load global settings (done) | time=454ms
[INFO] Server id: AWRKrQutLb-E1SWiQK4O
[INFO] User cache: /home/user/.sonar/cache
[INFO] Exclude plugins: devcockpit, ldap, authgithub, authbitbucket, pdfreport, authaad, googleanalytics, governance
[INFO] Load plugins index
[INFO] Load plugins index (done) | time=141ms
[INFO] Scanning only changed files
[INFO] Process project properties
[INFO] Load project repositories
[WARNING] Project doesn't exist on the server. All issues will be marked as 'new'.
[INFO] Load project repositories (done) | time=72ms
[INFO] Load quality profiles
[INFO] Load quality profiles (done) | time=2536ms
[INFO] Load active rules
[INFO] Load active rules (done) | time=1558ms
[INFO] Load metrics repository
[INFO] Load metrics repository (done) | time=80ms
[INFO] Project key: Linear
[INFO] ------------- Scan Linear-ingestion
[INFO] Load server rules
[INFO] Load server rules (done) | time=804ms
[INFO] Base dir: /home/user/.jenkins/workspace/Linear
[INFO] Working dir: /home/user/.jenkins/workspace/Linear/target/sonar
[INFO] Source paths: src/main/java
[INFO] Source encoding: UTF-8, default locale: en_IN
[INFO] Index files
[INFO] 68 files indexed
[INFO] Quality profile for java: Sonar way
[INFO] Sensor JavaSquidSensor [java]
[INFO] Configured Java source version (sonar.java.source): 7
[INFO] JavaClasspath initialization
[INFO] JavaClasspath initialization (done) | time=14ms
[INFO] JavaTestClasspath initialization
[INFO] JavaTestClasspath initialization (done) | time=2ms
[INFO] Java Main Files AST scan
[INFO] 68 source files to be analyzed
[INFO] 45/68 files analyzed, current file: /home/user/.jenkins/workspace/Linear/src/main/java/com/blazeclan/sqs_polling_manager/xml/parser/dao/LogicallyDeleteDAO.java
[INFO] 68/68 source files have been analyzed
[INFO] Java Main Files AST scan (done) | time=12267ms
[INFO] Java Test Files AST scan
[INFO] 0 source files to be analyzed
[INFO] 0/0 source files have been analyzed
[INFO] Java Test Files AST scan (done) | time=3ms
[INFO] Sensor JavaSquidSensor [java] (done) | time=12972ms
[INFO] Sensor SurefireSensor [java]
[INFO] parsing [/home/user/.jenkins/workspace/Linear/target/surefire-reports]
[INFO] Sensor SurefireSensor [java] (done) | time=3ms
[INFO] Sensor JaCoCoSensor [java]
[INFO] Sensor JaCoCoSensor [java] (done) | time=0ms
[INFO] Sensor SonarJavaXmlFileSensor [java]
[INFO] Sensor SonarJavaXmlFileSensor [java] (done) | time=1ms
[INFO] Sensor Analyzer for "php.ini" files [php]
[INFO] Sensor Analyzer for "php.ini" files [php] (done) | time=11ms
[INFO] Performing issue tracking
[INFO] 79/79 components tracked
[INFO] ANALYSIS SUCCESSFUL
[INFO] Task total time: 22.039 s
[INFO]
[INFO] ------------------< com.cloudlytics:Linear-ingestion >------------------
[INFO] Building Linear-ingestion 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.370 s
[INFO] Finished at: 2018-07-04T13:41:51+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "sonar-runner". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/LifecyclePhaseNotFoundException
Build step 'Execute shell' marked build as failure
Finished: FAILURE
You want to execute unexistent sonar-runner goal:
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.projectKey=Demo -Dsonar.sources=src/main/java -Dsonar.login=[someKey] -Dsonar.ProjectName=Demo sonar-runner -Dsonar.analysis.mode=preview -Dsonar.issuesReport.html.enable=true
You have to remove it:
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.projectKey=Demo -Dsonar.sources=src/main/java -Dsonar.login=[someKey] -Dsonar.ProjectName=Demo -Dsonar.analysis.mode=preview -Dsonar.issuesReport.html.enable=true
I would recommended to remove more parameters:
sonar.projectKey - maven plugin is responsible for generating this parameter
sonar.ProjectName - doesn't exist (correct name is sonar.projectName), maven plugin will use vaule of name or artifactId nodes from your pom.xml file
sonar.sources=src/main/java - maven plugin is responsible for generating value of this parameter
sonar.analysis.mode=preview - deprecated and shouldn't be used (since 6.6, you use 6.7.4)
sonar.issuesReport.html.enable - Issues Report Plugin which uses this parameter is incompatible with SonarQube 6.7.4
Finally you can execute a simple and short command:
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.login=[someKey]

Malformed input or input contains unmappable characters

I'm having the following problem with a Maven project on our Jenkins server while running the Sonarqube maven plugin in a Jenkins pipeline.
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:54 min
[INFO] Finished at: 2017-11-14T11:42:51+00:00
[INFO] Final Memory: 74M/606M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project pandora-parent-pom: Malformed input or input contains unmappable characters: src/main/webapp/images/D??rogations.ep
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Malformed input or input contains unmappable characters: src/main/webapp/images/D??rogations.ep
at org.sonarsource.scanner.maven.bootstrap.ExceptionHandling.handle(ExceptionHandling.java:36)
at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:80)
at org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:139)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
Caused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: src/main/webapp/images/D??rogations.ep
at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
at sun.nio.fs.AbstractPath.resolve(AbstractPath.java:53)
at org.sonar.api.batch.fs.internal.DefaultInputFile.path(DefaultInputFile.java:83)
at org.sonar.api.batch.fs.internal.DefaultInputFile.file(DefaultInputFile.java:75)
at org.sonar.api.batch.fs.internal.PathPattern$RelativePathPattern.match(PathPattern.java:101)
at org.sonar.batch.scan.filesystem.LanguageDetection.isCandidateForLanguage(LanguageDetection.java:124)
at org.sonar.batch.scan.filesystem.LanguageDetection.language(LanguageDetection.java:97)
at org.sonar.batch.scan.filesystem.InputFileBuilder.completeAndComputeMetadata(InputFileBuilder.java:98)
at org.sonar.batch.scan.filesystem.FileIndexer$1.call(FileIndexer.java:164)
at org.sonar.batch.scan.filesystem.FileIndexer$1.call(FileIndexer.java:161)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[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/MojoExecutionException
The file itself is named Dérogations.ep .
The part of the Jenkinsfile which contains the Sonar execution
stage('Sonar') {
withSonarQubeEnv('SonarQube') {
updateGitlabCommitStatus(name: 'sonar', state: 'running')
configFileProvider([configFile(fileId: 'ec266a3e-2586-4b2c-b0bb-386603d5a4ef', variable: 'MAVEN_SETTINGS')]) {
sh "export"
sh "${mvnHome}/bin/mvn org.jacoco:jacoco-maven-plugin:prepare-agent install -s $MAVEN_SETTINGS -Pcoverage-per-test -Dmaven.test.failure.ignore"
sh "export"
sh "${mvnHome}/bin/mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -s $MAVEN_SETTINGS -Dsonar.branch=${env.BRANCH_NAME} -Dmaven.test.failure.ignore"
sh "export"
jacoco()
}
updateGitlabCommitStatus(name: 'sonar', state: 'success')
}
}
The export call returns (amongst others) these params, which I assigned to our build node.
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
export LC_COLLATE='en_US.UTF-8'
export LC_CTYPE='en_US.UTF-8'
The maven-compiler-plugin and maven-resources-plugin are also configured in UTF-8 and the Sonar logs also suggest that everything is nicely in UTF-8 (except for one file which is in ISO-8859)
[INFO] ------------- Scan MP services jenkins
[INFO] Base dir: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services
[INFO] Working dir: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/sonar
[INFO] Source paths: pom.xml, src/main/java
[INFO] Test paths: src/test/java
[INFO] Binary dirs: target/classes
[INFO] Source encoding: UTF-8, default locale: en_US
[INFO] Index files
[INFO] 299 files indexed
[INFO] Quality profile for java: MP
[INFO] Sensor Lines Sensor
[INFO] Sensor Lines Sensor (done) | time=14ms
[INFO] Sensor JavaSquidSensor
[INFO] Configured Java source version (sonar.java.source): 7
[INFO] JavaClasspath initialization
[INFO] JavaClasspath initialization (done) | time=1ms
[INFO] JavaTestClasspath initialization
[INFO] JavaTestClasspath initialization (done) | time=3ms
[INFO] Java Main Files AST scan
[INFO] 293 source files to be analyzed
[INFO] 196/293 files analyzed, current file: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/src/main/java/be/MP/xxx/MP/dao/impl/HistoriqueActionServiceImpl.java
[INFO] 283/293 files analyzed, current file: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/src/main/java/be/MP/xxx/MP/service/impl/SourceAuthentiqueServiceImpl.java
[INFO] 293/293 source files have been analyzed
[WARNING] Classes not found during the analysis : [javax.portlet.PortletRequest]
[INFO] Java Main Files AST scan (done) | time=21386ms
[INFO] Java Test Files AST scan
[INFO] 6 source files to be analyzed
[INFO] 6/6 source files have been analyzed
[INFO] Java Test Files AST scan (done) | time=334ms
[INFO] Sensor JavaSquidSensor (done) | time=21757ms
[INFO] Sensor PmdSensor
[INFO] Execute PMD 5.4.2...
[INFO] Java version: 1.7
[INFO] PMD configuration: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/sonar/pmd.xml
[INFO] PMD configuration: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/sonar/pmd-unit-tests.xml
[INFO] Execute PMD 5.4.2 done: 2375 ms
[INFO] Sensor PmdSensor (done) | time=2379ms
[INFO] Sensor CheckstyleSensor
[INFO] Execute Checkstyle 7.3...
[INFO] Checkstyle configuration: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/sonar/checkstyle.xml
[INFO] Checkstyle charset: UTF-8
[INFO] Execute Checkstyle 7.3 done: 1605 ms
[INFO] Sensor CheckstyleSensor (done) | time=1607ms
[INFO] Sensor SCM Sensor
[INFO] SCM provider for this project is: git
[INFO] 299 files to be analyzed
[INFO] 299/299 files analyzed
[INFO] Sensor SCM Sensor (done) | time=3669ms
[INFO] Sensor FindBugs Sensor
[INFO] Loading findbugs plugin: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/sonar/findbugs/fb-contrib.jar
[INFO] Loading findbugs plugin: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/sonar/findbugs/findsecbugs-plugin.jar
[INFO] Findbugs output report: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/sonar/findbugs-result.xml
The following classes needed for analysis were missing:
org.junit.runners.model.Statement
org.junit.Assert
org.assertj.core.api.Assertions
org.assertj.core.api.AbstractIntegerAssert
org.assertj.core.api.ListAssert
org.assertj.core.api.AbstractListAssert
org.junit.rules.TestRule
org.h2.Driver
org.assertj.core.groups.Tuple
[INFO] Sensor FindBugs Sensor (done) | time=23684ms
[INFO] Sensor SurefireSensor
[INFO] Property 'sonar.junit.reportsPath' is deprecated. Use property 'sonar.junit.reportPaths' instead.
[INFO] parsing [/workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/surefire-reports]
[INFO] Sensor SurefireSensor (done) | time=114ms
[INFO] Sensor JaCoCoSensor
[INFO] Analysing /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/jacoco.exec
[INFO] No information about coverage per test.
[INFO] Sensor JaCoCoSensor (done) | time=512ms
[INFO] Sensor JaCoCoItSensor
[INFO] JaCoCoItSensor: JaCoCo IT report not found: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/jacoco-it.exec
[INFO] Sensor JaCoCoItSensor (done) | time=0ms
[INFO] Sensor JaCoCoOverallSensor
[INFO] Analysing /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/jacoco.exec
[INFO] Analysing /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Services/target/sonar/jacoco-overall.exec
[INFO] No information about coverage per test.
[INFO] Sensor JaCoCoOverallSensor (done) | time=212ms
[INFO] Sensor SonarJavaXmlFileSensor
[INFO] Sensor SonarJavaXmlFileSensor (done) | time=2ms
[INFO] Sensor Zero Coverage Sensor
[INFO] Sensor Zero Coverage Sensor (done) | time=119ms
[INFO] Sensor Code Colorizer Sensor
[INFO] Sensor Code Colorizer Sensor (done) | time=4ms
[INFO] Sensor CPD Block Indexer
[INFO] JavaCpdBlockIndexer is used for java
[INFO] Sensor CPD Block Indexer (done) | time=283ms
[INFO] ------------- Scan MP Web UI jenkins
[INFO] Base dir: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Webui
[INFO] Working dir: /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Webui/target/sonar
[INFO] Source paths: src/main/webapp, pom.xml, src/main/java
[INFO] Binary dirs: target/classes
[INFO] Source encoding: UTF-8, default locale: en_US
[INFO] Index files
[WARNING] Invalid character encountered in file /workspace/workspace/MP-pipeline_jenkins-HSMRPDPBA52NIJUTYCTAAM5Q76P4BDGNRHEXQ6VTGOHHOGM5XPRQ/Webui/src/main/webapp/js/my/widgets/templates/TutorialWidget.html at line 3 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
The only way to make it work is adding -Dsun.jnu.encoding=UTF-8 when doing the sonarqube analysis. Why does maven need this setting for the sonar-maven-plugin but not for anything else (like mvn clean install) ?

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project jraft: No license for governance

I'm trying to setup SonarQube.com on travis for a maven project, but I see the following exception on build:
[INFO] User cache: /home/travis/.sonar/cache
[INFO] Load global settings
[INFO] Load global settings (done) | time=456ms
[INFO] User cache: /home/travis/.sonar/cache
[INFO] Load plugins index
[INFO] Load plugins index (done) | time=16ms
[INFO] Download sonar-scm-cvs-plugin-1.0.jar
[INFO] Download sonar-scm-svn-plugin-1.3.jar
[INFO] Download sonar-plsql-plugin-2.9.0.901.jar
[INFO] Download sonar-csharp-plugin-5.8.0.660.jar
[INFO] Download sonar-java-plugin-4.7.1.9272.jar
[INFO] Download sonar-web-plugin-2.5.0.476.jar
[INFO] Download sonar-flex-plugin-2.3.jar
[INFO] Download sonar-xml-plugin-1.4.2.885.jar
[INFO] Download sonar-vbnet-plugin-3.0.3.346.jar
[INFO] Download sonar-swift-plugin-2.0.0.1127.jar
[INFO] Download sonar-python-plugin-1.7.0.1195.jar
[INFO] Download sonar-github-plugin-1.4.0.699.jar
[INFO] Download sonar-cfamily-plugin-4.6.0.7071.jar
[INFO] Download sonar-auth-github-plugin-1.3.jar
[INFO] Download sonar-rpg-plugin-2.1.0.736.jar
[INFO] Download sonar-scm-mercurial-plugin-1.1.1.jar
[INFO] Download sonar-googleanalytics-plugin-1.1.jar
[INFO] Download sonar-widget-lab-plugin-1.8.1.jar
[INFO] Download sonar-pli-plugin-1.5.0.702.jar
[INFO] Download sonar-javascript-plugin-2.21.0.4409.jar
[INFO] Download sonar-groovy-plugin-1.4.jar
[INFO] Download sonar-cobol-plugin-3.3.1.1636.jar
[INFO] Download sonar-scm-git-plugin-1.2.jar
[INFO] Download sonar-php-plugin-2.10.0.2087.jar
[INFO] Download sonar-abap-plugin-3.3.jar
[INFO] Download sonar-governance-plugin-2.0.0.1789.jar
[INFO] Download qualinsight-sonarqube-badges-3.0.1.jar
[INFO] SonarQube version: 6.3.0
[INFO] Default locale: "en_US", source code encoding: "UTF-8"
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:42 min
[INFO] Finished at: 2017-04-03T09:47:20+00:00
[INFO] Final Memory: 70M/468M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project jraft: No license for governance -> [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/MojoExecutionException
Here is the .travis.yml:
language: java
jdk:
- oraclejdk8
addons:
sonarqube:
organization: ${SONAR_ORGANIZATION}
token:
secure: ${SONAR_TOKEN}
script:
- ./travis.sh
cache:
directories:
- $HOME/.m2/repository
- $HOME/.sonar
- $HOME/jvm
- $HOME/maven
Here is the travis.sh:
#!/bin/bash
set -e
INITIAL_VERSION=1.0-SNAPSHOT
export MAVEN_OPTS="-Xmx1G -Xms128m"
mvn package sonar:sonar \
$MAVEN_ARGS \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \
-Dsonar.projectVersion=$INITIAL_VERSION
Why I am seeing this error No license for governance as I am not using any commercial sonar component (only sonar-java I suppose)?
The problem seems to be related to the fact that one of the plugins needs a commercial key, but How I can tell Travis to only install the java plugin?
Taking a look at your repository, you should not override the various parameters that the Travis Add-on is specifying for you.
More specifically, when you override SONAR_TOKEN on the Maven command line (at line 12), the consequence is that the token that you have encrypted and passed at line 11 of your .travis.yml file is completely wiped out. Because of this, your analysis is run like if you were anonymous.
So please follow the Get Started guide and simply run the following Maven command:
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
sonar-governance plugin is commercial plugin.
check here
.....
[INFO] Download sonar-governance-plugin-2.0.0.1789.jar
......
For me the below works from my jenkins pipeline
node{
stage 'Code Quality'
sh "mvn sonar:sonar -Dsonar.host.url=http://<hostname>:9000"
}

Maven - JAVA_HOME location and Compilation failure executing javac

---skippable part---
Hi all, first time here and hopefully I'm not writing a clone of anything else. I spent days looking for cases like mine and all the things I tried failed to work, or couldn't simply find the correct solution for me.
I'm trying to use Maven on another student's project I'm working on (have to continue what he already did) for a school project, on a pc with Ubuntu 14.04. I'm in my project directory downloaded from github and I need to create a .war file and use that for Tomcat.
I was following a guide of that student, and probably I'm a little confused on what to do.
---tl:dr i need help---
So when I launch mvn -version, I get this:
Java version: 1.7.0_101, vendor: Oracle Corporation Java home:
/usr/lib/jvm/java-7-openjdk-amd64/jre Default locale: it_IT, platform
encoding: UTF-8 OS name: "linux", version: "3.19.0-58-generic", arch:
"amd64", family: "unix"
Few days ago I had problems with $JAVA_HOME environment variable and probably solved it managing the /etc/environment file, in fact I don't get any error about this. Now when I do a mvn package I get
[INFO] Scanning for projects... [INFO]
[INFO]
------------------------------------------------------------------------ [INFO] Building GWT Maven Archetype 2.6.0-SNAPSHOT [INFO]
------------------------------------------------------------------------ [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce
(enforce-versions) # webprotege --- [INFO] [INFO] ---
gwt-maven-plugin:2.7.0:generateAsync (default) # webprotege --- [INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) #
webprotege --- [INFO] Source directory:
/home/wapaolo/Documenti/data/webprotege/webprotege/target/generated-sources/gwt
added. [INFO] [INFO] --- maven-resources-plugin:2.3:resources
(default-resources) # webprotege --- [INFO] Using 'UTF-8' encoding to
copy filtered resources. [INFO] Copying 10 resources [INFO] [INFO]
--- maven-compiler-plugin:2.3.2:compile (default-compile) # webprotege --- [INFO] Compiling 1744 source files to /home/wapaolo/Documenti/data/webprotege/webprotege/target/webprotege-2.6.0-SNAPSHOT/WEB-INF/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : [INFO]
------------------------------------------------------------- [ERROR] Failure executing javac, but could not parse the error: javac: invalid
target release: 1.8 Usage: javac use -help
for a list of possible options
[INFO] 1 error [INFO]
------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
------------------------------------------------------------------------ [INFO] Total time: 5.241s [INFO] Finished at: Mon May 09 16:54:04 CEST
2016 [INFO] Final Memory: 18M/295M [INFO]
------------------------------------------------------------------------ [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project webprotege: Compilation failure [ERROR]
Failure executing javac, but could not parse the error: [ERROR] javac:
invalid target release: 1.8 [ERROR] Usage: javac [ERROR] use -help for a list of possible options [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
So what should I do to proceed now? I've no clue..
Your maven project wants java 1.8 but your compiler is 1.7. Look in the pom.xml file for something like
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
and change that to 1.7 OR download the 1.8 jdk.

change kurento test port

I am trying to integrate kurento in my VPS server,with the help of
http://doc-kurento.readthedocs.org/en/stable/tutorials/java/tutorial-helloworld.html
git clone https://github.com/Kurento/kurento-tutorial-java.git
cd kurento-tutorial-java/kurento-hello-world
git checkout 6.4.0
mvn compile exec:java
My problem is ,the port 8443 is already assigned for parallel plesk.So i am not able to use this port for kurento.Is there any way to change the test port from 8443?
I have updated the port in src/main/resources/application.properties and tried with mvn compile -e exec:java -Dserver.port=8089,but still this is not working
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Kurento Java Tutorial - One2One Call Advanced 6.4.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) # kurento-one2one-call-recording ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) # kurento-one2one-call-recording ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create-timestamp (get-build-timestamp) # kurento-one2one-call-recording ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) # kurento-one2one-call-recording ---
[INFO] Executing: /bin/sh -c cd '/var/www/vhosts/vps72185.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /var/www/vhosts/vps72185.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording
[INFO] Storing buildNumber: 9fba36e32343bb490384a4e1869e2b40de78fa2e at timestamp: 1460955195622
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref
[INFO] Executing: /bin/sh -c cd '/var/www/vhosts/vps123.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /var/www/vhosts/vps123.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:exec (default) # kurento-one2one-call-recording ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # kurento-one2one-call-recording ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 325 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) # kurento-one2one-call-recording ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) # kurento-one2one-call-recording ---
.------------------------------------.
| |
| | |/ / _ _ _ ___ _ _| |_ ___ |
| | ' < || | '_/ -_) ' \ _/ _ \ |
| |_|\_\_,_|_| \___|_||_\__\___/ |
| |
'------------------------------------'
version 6.4.0
00:53:17.662 [OneCallRecApp.main()] INFO - o.k.t.one2onecallrec.One2OneCallRecApp -
Starting One2OneCallRecApp on vps123.vps.ovh.ca with PID 23974 (/var/www/vhosts/vps123.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording/target/classes started by root in /var/www/vhosts/vps123.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording)
00:53:17.665 [OneCallRecApp.main()] DEBUG - o.k.t.one2onecallrec.One2OneCallRecApp -
Running with Spring Boot v1.3.0.RELEASE, Spring v4.2.3.RELEASE
00:53:17.665 [OneCallRecApp.main()] INFO - o.k.t.one2onecallrec.One2OneCallRecApp -
No profiles are active
00:53:17.975 [ pool-1-thread-1] INFO - o.h.validator.internal.util.Version -
HV000001: Hibernate Validator 5.2.2.Final
ERRORS
The tutorials are spring-boot applications. You can change the port where the application is served from the command line. Just add the server.port flag when invoking the exec maven plugin
mvn compile exec:java -Dserver.port=<port>
There is an answer to this also here
The application must be started with a KMS running locally. Otherwise, you'll need the flag -Dkms.url=ws://<ip>:8888/kurento. Once it starts, you will be able to access your application in https://localhost:<port>. Please note that the app is served through a secure connection.
EDIT 1
This line from your logs
Caused by: org.kurento.commons.exception.KurentoException:
[KurentoClient] Exception connecting to WebSocket server
ws://127.0.0.1:8888/kurento
indicates that KMS is not running in that machine, or that it's running in a different port. Please do make sure the KMS process is indeed running when you launch the application.

Categories