BUILD FAILURE Error: when executing "mvn clean package" command - swagger

I'm using following version.
maven: 3.3.9
jdk: java-7-openjdk-amd64
JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64/"
I'm getting packages type error when I'm running $ mvn clean package command. I'm new to use swagger to generate documentation(.yml file to .html)
ERROR:
enter code here[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:21:5: Missing a Javadoc comment. [JavadocMethod]
[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:28: Line is longer than 100 characters (found 233). [LineLength]
[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:35:5: Missing a Javadoc comment. [JavadocMethod]
[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:37:27: Local variable name 'b' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. [LocalVariableName]
[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:46:36: Catch parameter name 'e' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. [CatchParameterName]
[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/config/ConfigParser.java:10: Import statement for 'org.slf4j.Logger' is in the wrong order. Should be in the 'THIRD_PARTY_PACKAGE' group, expecting not assigned imports on this line. [CustomImportOrder]
[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/config/ConfigParser.java:11: Import statement for 'org.slf4j.LoggerFactory' is in the wrong order. Should be in the 'THIRD_PARTY_PACKAGE' group, expecting not assigned imports on this line. [CustomImportOrder]
[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/config/ConfigParser.java:17:5: Missing a Javadoc comment. [JavadocMethod]
[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/config/ConfigParser.java:38:28: Catch parameter name 'e' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. [CatchParameterName]
Audit done.
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) # swagger-codegen ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) # swagger-codegen ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # swagger-codegen ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1563 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) # swagger-codegen ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 147 source files to /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/examples/XmlExampleGenerator.java:[17,32] package org.codehaus.plexus.util does not exist
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] swagger-codegen-project ............................ SUCCESS [ 2.958 s]
[INFO] swagger-codegen (core library) ..................... FAILURE [ 11.114 s]
[INFO] swagger-codegen (executable) ....................... SKIPPED
[INFO] swagger-codegen (maven-plugin) ..................... SKIPPED
[INFO] swagger-generator .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.646 s
[INFO] Finished at: 2017-08-16T15:36:08+05:00
[INFO] Final Memory: 39M/553M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project swagger-codegen: Compilation failure
[ERROR] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/examples/XmlExampleGenerator.java:[17,32] package org.codehaus.plexus.util does not exist
[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 <goals> -rf :swagger-codegen
I've also run debugging mode by running mvn clean package -X, but nothing getting in mind please any one look into it save my life.

Based on the following line:
[ERROR] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/examples/XmlExampleGenerator.java:[17,32] package org.codehaus.plexus.util does not exist
Looks like you're not using the latest master, which has the following line instead:
16 import io.swagger.models.properties.AbstractNumericProperty;
17 import io.swagger.models.properties.PasswordProperty;
18 import io.swagger.models.properties.UUIDProperty;
Please clone from the latest master.
You can also use the SNAPSHOT version without building the project manually:
https://github.com/swagger-api/swagger-codegen#compatibility

Related

Could not find goal 'java-Dexec.mainClass=com.mystique.application.Main_Runner' | Jenkins

Tried to build and run my local Cucumber project in Jenkins with 2 build steps. 1st step was successful clean install, but 2nd steps (exec:java-Dexec.mainClass="com.mystique.application.Main_Runner") is throwing attached error.
Logs:
Building in workspace C:\Users\807240\.jenkins\workspace\Cucumber
[Cucumber] $ cmd.exe /C "C:\Soumen\Softwares\apache-maven-3.6.1\bin\mvn.cmd -f C:/Soumen/Cucumber_WorkspacePhoton/Cucumber/pom.xml -s C:\Soumen\Softwares\apache-maven-3.6.1\conf\settings.xml -gs C:\Soumen\Softwares\apache-maven-3.6.1\conf\settings.xml clean install && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< com.opencredo:cucumber-jvm-parallel >-----------------
[INFO] Building cucumber-jvm-parallel 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for info.cukes:cucumber-java:jar:1.2.3 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.apache.directory.studio:org.apache.commons.codec:jar:1.8 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.yaml:snakeyaml:jar:1.8 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The artifact junit:junit-dep:jar:4.11 has been relocated to junit:junit:jar:4.11
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # cucumber-jvm-parallel ---
[INFO] Deleting C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # cucumber-jvm-parallel ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # cucumber-jvm-parallel ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # cucumber-jvm-parallel ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # cucumber-jvm-parallel ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 101 source files to C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\target\test-classes
[WARNING] /C:/Soumen/Cucumber_WorkspacePhoton/Cucumber/src/test/java/com/mystique/roomsteps/RunTests.java: Some input files use unchecked or unsafe operations.
[WARNING] /C:/Soumen/Cucumber_WorkspacePhoton/Cucumber/src/test/java/com/mystique/roomsteps/RunTests.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.19:test (default-test) # cucumber-jvm-parallel ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # cucumber-jvm-parallel ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\target\cucumber-jvm-parallel-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # cucumber-jvm-parallel ---
[INFO] Installing C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\target\cucumber-jvm-parallel-1.0-SNAPSHOT.jar to C:\Soumen\MavenRepo\com\opencredo\cucumber-jvm-parallel\1.0-SNAPSHOT\cucumber-jvm-parallel-1.0-SNAPSHOT.jar
[INFO] Installing C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\pom.xml to C:\Soumen\MavenRepo\com\opencredo\cucumber-jvm-parallel\1.0-SNAPSHOT\cucumber-jvm-parallel-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.053 s
[INFO] Finished at: 2020-04-01T18:36:10+05:30
[INFO] ------------------------------------------------------------------------
[Cucumber] $ cmd.exe /C "C:\Soumen\Softwares\apache-maven-3.6.1\bin\mvn.cmd -f C:/Soumen/Cucumber_WorkspacePhoton/Cucumber/pom.xml -s C:\Soumen\Softwares\apache-maven-3.6.1\conf\settings.xml -gs C:\Soumen\Softwares\apache-maven-3.6.1\conf\settings.xml exec:java-Dexec.mainClass=com.mystique.application.Main_Runner && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.496 s
[INFO] Finished at: 2020-04-01T18:36:16+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'java-Dexec.mainClass=com.mystique.application.Main_Runner' in plugin org.codehaus.mojo:exec-maven-plugin:1.5.0 among available goals exec, help, java -> [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/MojoNotFoundException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
you miss a space between exec:java and -Dexec.mainClass="com.mystique.application.Main_Runner"

Building Jenkins fails

Did a git clone https://github.com/jenkinsci/jenkins.git
cd jenkins
mvn install
I am getting the below error.
`
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error: java.nio.file.NoSuchFileException: C:\jenkins\cli\target\classes\META-INF\annotations\org.kohsuke.accmod.Restricted
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Jenkins main module 2.142-SNAPSHOT ................. SUCCESS [ 2.720 s]
[INFO] Jenkins cli ........................................ FAILURE [ 1.985 s]
[INFO] Jenkins core ....................................... SKIPPED
[INFO] Jenkins war ........................................ SKIPPED
[INFO] Tests for Jenkins core 2.142-SNAPSHOT .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.255 s
[INFO] Finished at: 2018-09-18T23:34:03-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile (default-compile) on project cli: Compilation failure
[ERROR] error: java.nio.file.NoSuchFileException: C:\jenkins\cli\target\classes\META-INF\annotations\org.kohsuke.accmod.Restricted
[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 <goals> -rf :cli
`
Any idea why the mvn install is failing on a project downloaded directly from stash.

apache isis simple-app clean install fails

I am trying apache isis for the first time on my Windows machine (following tutorial: https://www.youtube.com/watch?v=OTNHR5EdAs8&list=PLbRpnAmQ6xsBGB_mRAUob8WRBsSL_IsBO), I executed the command:
mvn archetype:generate "-DarchetypeGroupId=org.apache.isis.archetype" "-D archetypeArtifactId=simpleapp-archetype" "-D archetypeVersion=1.16.2""-D groupId=com.mycompany""-D artifactId=myapp""-D version=1.0-SNAPSHOT" "-B"
Which created the myapp in a folder.
After that I Cd'd in myapp folder and executed mvn clean install which eventually failed with following error message:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] SimpleApp Parent 1.0-SNAPSHOT ...................... SUCCESS [ 4.576 s]
[INFO] SimpleApp Simple Module ............................ FAILURE [ 22.055 s]
[INFO] SimpleApp Application .............................. SKIPPED
[INFO] SimpleApp Webapp 1.0-SNAPSHOT ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.747 s
[INFO] Finished at: 2018-03-21T08:19:19+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.datanucleus:datanucleus-maven-plugin:4.0.5:enhance (process-classes) on project myapp-module-simple: Error executing DataNucleus tool org.datanucleus.enhancer.DataNucleusEnhancer: InvocationTargetException: java/sql/Date: java.sql.Date -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :myapp-module-simple
PS E:\Apache isis\test_project\myapp>
Did I miss anything? Any dependencies?
As of this writing Apache Isis only runs on Java 7 and 8. We are aiming to be compatible with Java 11 when it ships in Sept/Oct (as that is the next LTS version of Java).

Duplicated resource file when uploading jslint.xml to Sonar

I have a Jenkins job which has 2 parts
Run eslint checks via maven and generate jslint.xml file.
Upload jslint.xml to sonar using the Jenkins sonarcube plugin.
Our build was working fine until suddenly it starts throwing the exception
[INFO]
[INFO] --- eslint-maven-plugin:0.1.6:eslint (default) # gal ---
[ERROR] /mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js 10:57 strict Missing "use strict" statement. (http://eslint.org/docs/rules/strict)
[ERROR] /mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js 13:5 no-underscore-dangle Unexpected dangling '_' in '_oExtendedEditor'. (http://eslint.org/docs/rules/no-underscore-dangle)
[ERROR] /mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js 14:5 no-underscore-dangle Unexpected dangling '_' in '_oApplicationToolbar'. (http://eslint.org/docs/rules/no-underscore-dangle)
[ERROR] /mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js 15:5 no-underscore-dangle Unexpected dangling '_' in '_oPaletteToolbar'. (http://eslint.org/docs/rules/no-underscore-dangle)
...
...
[ERROR] /mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/main/webapp/extensions/vc/solmanDiagramEditorExtension.js 4:0 global-strict Use the function form of "use strict". (http://eslint.org/docs/rules/global-strict)
[ERROR] /mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/main/webapp/extensions/vc/constants.js 2:26 strict Missing "use strict" statement. (http://eslint.org/docs/rules/strict)
[ERROR] /mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/main/webapp/utilities/globalUtilities.js 6:45 strict Missing "use strict" statement. (http://eslint.org/docs/rules/strict)
[ERROR] /mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/main/webapp/utilities/globalUtilities.js 16:5 no-underscore-dangle Unexpected dangling '_' in '_sLocale'. (http://eslint.org/docs/rules/no-underscore-dangle)
[ERROR] /mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/main/webapp/utilities/globalUtilities.js 23:5 no-underscore-dangle Unexpected dangling '_' in '_oBundle'. (http://eslint.org/docs/rules/no-underscore-dangle)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.050s
[INFO] Finished at: Mon May 04 15:35:10 UTC 2015
[INFO] Final Memory: 22M/349M
[INFO] ------------------------------------------------------------------------
2015-05-04 15:35:11.367:INFO:oejsl.ELContextCleaner:javax.el.BeanELResolver purged
2015-05-04 15:35:11.367:INFO:oejsh.ContextHandler:stopped o.m.j.p.JettyWebAppContext{/,[file:/mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/resource/1.26.1/resource-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/core/1.26.1/core-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/commons/1.26.1/commons-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/layout/1.26.1/layout-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/unified/1.26.1/unified-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/ux3/1.26.1/ux3-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/table/1.26.1/table-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/visualization/1.26.1/visualization-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/themelib_sap_ux/1.26.1/themelib_sap_ux-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/themelib_sap_platinum/1.26.1/themelib_sap_platinum-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/mobile/1.26.1/mobile-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/themelib_sap_goldreflection/1.26.1/themelib_sap_goldreflection-1.26.1.jar!/META-INF/resources/, jar:file:/usr/sap/ljs/persistentfs/.m2/repository/com/sap/ui5/themelib_sap_bluecrystal/1.26.1/themelib_sap_bluecrystal-1.26.1.jar!/META-INF/resources/]},file:/mnt/perm_storage/persistent/jenkinssolman_web/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/src/
[workspace] $ mvn -f /usr/sap/ljs/persistentfs/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/pom.xml -e -B sonar:sonar -Dsonar.surefire.reportsPath=target/jslint.xml -Dsonar.profile=ESLint_Fiori -Dsonar.javascript.jslint.reportPath=target/jslint.xml -Dsonar.profile=ESLint_Fiori -Dsonar.jdbc.url=jdbc:mysql://ldisonarci.wdf.sap.corp:3306/sonar?useUnicode=true&characterEncoding=utf8 ******** ******** -Dsonar.host.url=http://ldisonarci.wdf.sap.corp:8080/sonar
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gal 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
[INFO]
[INFO] --- sonar-maven-plugin:2.6:sonar (default-cli) # gal ---
[INFO] SonarQube version: 4.5.1
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: /usr/sap/ljs/persistentfs/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/target/sonar
INFO: SonarQube Server 4.5.1
[INFO] [15:35:19.185] Load global referentials...
[INFO] [15:35:19.316] Load global referentials done: 133 ms
[INFO] [15:35:19.334] User cache: /usr/sap/ljs/home/.sonar/cache
[INFO] [15:35:19.348] Install plugins
[INFO] [15:35:19.496] Install JDBC driver
[INFO] [15:35:19.504] Create JDBC datasource for jdbc:mysql://ldisonarci.wdf.sap.corp:3306/sonar?useUnicode=true&characterEncoding=utf8
[INFO] [15:35:21.177] Initializing Hibernate
[INFO] [15:35:23.421] Load project referentials...
[WARN] [15:35:23.422] Ability to set quality profile from command line using 'sonar.profile' is deprecated and will be dropped in a future SonarQube version. Please configure quality profile used by your project on SonarQube server.
[INFO] [15:35:23.745] Load project referentials done: 324 ms
[INFO] [15:35:23.745] Load project settings
[INFO] [15:35:24.064] Loading technical debt model...
[INFO] [15:35:24.093] Loading technical debt model done: 29 ms
[INFO] [15:35:24.100] Apply project exclusions
[WARN] [15:35:24.101] 'sonar.includedModules' property is deprecated since version 4.3 and should not be used anymore.
[INFO] [15:35:24.424] ------------- Scan gal
[INFO] [15:35:24.429] Load module settings
[INFO] [15:35:26.250] Loading rules...
[INFO] [15:35:26.582] Loading rules done: 332 ms
[INFO] [15:35:26.603] Configure Maven plugins
[INFO] [15:35:26.771] Compare to previous analysis (2015-05-04)
[INFO] [15:35:26.784] Compare over 30 days (2015-04-04, analysis of 2015-04-07 07:45:54.0)
[INFO] [15:35:26.795] Compare to previous version (2015-01-22)
[INFO] [15:35:26.796] No quality gate is configured.
[INFO] [15:35:26.984] Initializer FindbugsMavenInitializer...
[INFO] [15:35:26.986] Initializer FindbugsMavenInitializer done: 2 ms
[INFO] [15:35:26.986] Initializer MqrInitializer...
[INFO] [15:35:26.986] Skipping non-aggregator project
[INFO] [15:35:26.986] Initializer MqrInitializer done: 0 ms
[INFO] [15:35:26.986] Base dir: /usr/sap/ljs/persistentfs/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC
[INFO] [15:35:26.986] Working dir: /usr/sap/ljs/persistentfs/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/target/sonar
[INFO] [15:35:26.987] Source paths: src/main/webapp, pom.xml
[INFO] [15:35:26.987] Test paths: src/test/java
[INFO] [15:35:26.987] Binary dirs: target/classes
[INFO] [15:35:26.987] Source encoding: UTF-8, default locale: en_US
[INFO] [15:35:26.987] Index files
[INFO] [15:35:28.386] 414 files indexed
[INFO] [15:35:42.885] Quality profile for java: SAPDefaultProfile_1_3_10
[INFO] [15:35:42.885] Quality profile for js#sap: ESLint_Fiori
[INFO] [15:35:42.885] Quality profile for mqr: ESLint_Fiori
[INFO] [15:35:43.052] Sensor JavaSquidSensor...
[INFO] [15:35:43.414] Java Main Files AST scan...
[INFO] [15:35:43.417] 0 source files to be analyzed
[INFO] [15:35:43.418] Java Main Files AST scan done: 4 ms
[INFO] [15:35:43.418] 0/0 source files analyzed
[INFO] [15:35:43.421] Java bytecode scan...
[INFO] [15:35:43.531] Java bytecode scan done: 110 ms
[INFO] [15:35:43.531] Java Test Files AST scan...
[INFO] [15:35:43.531] 71 source files to be analyzed
[INFO] [15:35:44.546] Java Test Files AST scan done: 1015 ms
[INFO] [15:35:44.546] 71/71 source files analyzed
[INFO] [15:35:44.551] Package design analysis...
[INFO] [15:35:44.565] Package design analysis done: 13 ms
[INFO] [15:35:44.573] Sensor JavaSquidSensor done: 1521 ms
[INFO] [15:35:44.574] Sensor QProfileSensor...
[INFO] [15:35:44.577] Sensor QProfileSensor done: 3 ms
[INFO] [15:35:44.577] Sensor CoverageSensor...
[INFO] [15:35:44.577] Sensor CoverageSensor done: 0 ms
[INFO] [15:35:44.577] Sensor LintSensor...
[INFO] [15:35:44.578] parsing /usr/sap/ljs/persistentfs/jenkins/jobs/com.sap.solman.graphical.component-official_branch_sp1-sonar/workspace/SMGC/target/jslint.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.675s
[INFO] Finished at: Mon May 04 15:35:44 UTC 2015
[INFO] Final Memory: 36M/320M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project gal: Duplicate source for resource: org.sonar.api.resources.File#60ba6a62[key=src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js,deprecatedKey=src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js,path=src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js,dir=src/main/webapp/ags_gal_app/Controllers,filename=extendedEditorEventHandler.js,language=JavaScript # SAP] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project gal: Duplicate source for resource: org.sonar.api.resources.File#60ba6a62[key=src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js,deprecatedKey=src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js,path=src/main/webapp/ags_gal_app/Controllers/extendedEditorEventHandler.js,dir=src/main/webapp/ags_gal_app/Controllers,filename=extendedEditorEventHandler.js,language=JavaScript # SAP]
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
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:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
The error occurs when i try to parse the jslint.xml file.
For this i added the properties "-Dsonar.javascript.jslint.reportPath=target/jslint.xml" in the Addition Properties field in the Jenkins plugin.
If I remove it the jobs will work but the file will not be uploaded.
Any idea what could cause this problem?

I am unable to bulid Maven Project

Please I am very new when comes to maven project and wildfly (JBoss) Server. I have a Java EE 7 project which I developed with NetBeans for Apache Tomcat 8. For some good reason I want to migrate to WildFly 8.
I have recreated the project on JBoss Studio 7.1 with all the Maven Dependencies. First attempt to run the project returns "Forbidden".
I tried to be sure the project is complied and deployed by running
mvn clean package
Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ProjectName 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # ProjectName ---
[INFO] Deleting /path/to/the/ProjectName/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # ProjectName ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # ProjectName ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 74 source files to /path/to/the/ProjectName/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.062 s
[INFO] Finished at: 2014-11-18T10:58:47+01:00
[INFO] Final Memory: 8M/150M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ProjectName: Compilation failure -> [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
I re-run the command with -e
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project nants: Compilation failure -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project nants: Compilation failure
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:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:483)
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.compiler.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:862)
at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
[ERROR]
These tips contains my environment
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T21:58:10+01:00)
Maven home: /path/to/maven
Java version: 1.8.0_20, vendor: Oracle Corporation
Java home: /usr/lib/jvm/oracle_jdk_8/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.16.0-24-generic", arch: "amd64", family: "unix"
I read the suggested wiki but could't solve the issue still. Maybe because I am still new.Please I will appreciate your help on resolving this errors.
You are using Java 8, please try on Java 7 as some components may not support Java 8.
Similar problem is described here: maven-compilation-fails-without-explaining-why
I finally found what problem for failed compilation was, I have fixed that by correcting my POM.xml there was an error on my JAVA_HOME settings. though I am still getting "Forbidden" from the url which will need a different question thread if I am unable to resolve it.
<maven.compiler.executable>/absolute/path/to/bin/javac</maven.compiler.executable>
TO:
<maven.compiler.executable>${JAVA_HOME}/bin/javac</maven.compiler.executable>

Resources