Error building carbon component - maven-3

I have been doing http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ but when I create client using wsdl file I got this error. How can I solve this issue.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WSO2 Carbon - Student Manager Stub 4.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) # org.wso2.carbon.student.mgt.stub ---
[INFO] Source directory: /home/jobs/wso2/Carbon/Old/org.wso2.carbon.student.mgt.stub/target/generated-code/src added.
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # org.wso2.carbon.student.mgt.stub ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) # org.wso2.carbon.student.mgt.stub ---
[INFO] Executing tasks
[java] Retrieving document at 'src/main/resources/StudentManager.wsdl'.
[java] Dec 05, 2014 1:05:42 AM org.apache.axis2.schema.SchemaCompiler compile
[java] WARNING: No schemaLocation for import of http://data.mgt.student.carbon.wso2.org/xsd; compilation may fail
[INFO] Executed tasks
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) # org.wso2.carbon.student.mgt.stub ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 8 source files to /home/jobs/wso2/Carbon/Old/org.wso2.carbon.student.mgt.stub/target/classes
Actually what is this warning means? This where what I cant understand ..
[java] WARNING: No schemaLocation for import of http://data.mgt.student.carbon.wso2.org/xsd; compilation may fail

It looks like domain class has not been updated in ../data/xsd directory in the target code. I suspect that the backend component has been updated and the wsdl has been altered, but the stub has not been updated/created yet. Therefore the client side component doesn't aware of the modifications. I suggest that you may update the wsdl file in stub resources and rebuilding the stub and client should probably solve the issue.

Related

build (mvn install) of new application takes forever

I was trying to use an existing application as starting point for a new one.
So, I copied over the src-folder, the pom and a couple of IDE-specific files config files.
I then refactored all giving it a new path and application name and then I wanted to do a first build and entered mvn install.
This process is now hanging since 1 1/2 hours in vaadin-maven-plugin:18.0.2:build-frontend (see full console output below).
Is this expected or why is this taking so long? Can I somehow figure out, why and where this is hanging?
What am I missing? Are there any files other then those mentioned that absolutely MUST exist before a new Vaadin application can (even be tried to) be built?
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< ch.zh.ksta.monitoring:my_app >---------------
[INFO] Building KStA-ZH-Monitoring 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # my_app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # my_app ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- vaadin-maven-plugin:18.0.2:prepare-frontend (default) # my_app ---
[INFO] writing file D:\Projects\my_app\target\flow-frontend\package.json.
[INFO] writing file D:\Projects\my_app\target\flow-frontend\form\package.json.
[INFO] writing file 'D:\Projects\my_app\target\index.html'
[INFO] writing file 'D:\Projects\my_app\target\index.ts'
[INFO] Copying frontend resources from jar files ...
[INFO] Visited 173 resources. Took 2229 ms.
[INFO]
[INFO] --- vaadin-maven-plugin:18.0.2:build-frontend (default) # my_app ---
[INFO] Scanning classes to find frontend configurations and dependencies...
[INFO] Visited 720 classes. Took 2553 ms.
[INFO] Visited 126 classes. Took 138 ms.
[INFO] writing file D:\Projects\my_app\target\flow-frontend\package.json.
[INFO] writing file D:\Projects\my_app\target\flow-frontend\form\package.json.
[INFO] writing file 'D:\Projects\my_app\target\index.html'
[INFO] writing file 'D:\Projects\my_app\target\index.ts'
[INFO] Parsing java files from [D:\Projects\my_app\src\main\java]
[INFO] There are no connect endpoints to generate.
[INFO] Running `pnpm install` to resolve and optionally download frontend dependencies. This may take a moment, please stand by...
[INFO] Generated pnpmfile hook file: 'D:\Projects\my_app\pnpmfile.js'
[INFO] installing pnpm version 4.4.0 locally
[INFO] using 'C:\Users\mmo\.vaadin\node\node.exe C:\Users\mmo\.vaadin\node_modules\pnpm\bin\pnpm.js' for frontend package installation
Later addition:
If I terminate this using ^C I get:
...
2021-05-31 18:24:40,199 ERROR [task-1] com.vaadin.flow.server.frontend.TaskRunNpmInstall: Command `C:\Program Files\nodejs\node.exe C:\Users\mmo\.vaadin\node_modules\pnpm\bin\pnpm.js --shamefully-hoist=true install` failed:
Using hooks from: D:\Projects\my_app\pnpmfile.jsreadPackage hook is declared. Manifests of dependencies might get overridden
2021-05-31 18:24:40,201 ERROR [task-1] com.vaadin.flow.server.frontend.TaskRunNpmInstall: >>> Dependency ERROR. Check that all required dependencies are deployed in pnpm repositories.
2021-05-31 18:24:40,205 DEBUG [task-1] com.vaadin.flow.server.startup.DevModeInitializer: Could not initialize dev mode handler. One of the node tasks failed
com.vaadin.flow.server.ExecutionFailedException: Pnpm install has exited with non zero status. Some dependencies are not installed. Check pnpm command output
at com.vaadin.flow.server.frontend.TaskRunNpmInstall.runNpmInstall(TaskRunNpmInstall.java:405)
at com.vaadin.flow.server.frontend.TaskRunNpmInstall.execute(TaskRunNpmInstall.java:120)
at com.vaadin.flow.server.frontend.NodeTasks.execute(NodeTasks.java:634)
at com.vaadin.flow.server.startup.DevModeInitializer.runNodeTasks(DevModeInitializer.java:471)
at com.vaadin.flow.server.startup.DevModeInitializer.lambda$initDevModeHandler$0(DevModeInitializer.java:381)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
If I restart the build again it will hang again.
Gee - is this brittle... :-(
Got this same error. I deleted from my home directory:
.vaadin
.pnpm-store
... and the generated stuff from my project:
webpack.config.js
tsconfig.json
types.d.ts
webpack.config.js
webpack.generated.js
pnpm-lock.yaml
pnpmfile.js
package.json
.npmrc
target
.pnpm-debug.log
... probably overkill, but then it worked again.

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

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

setting spring.profiles.active in OS X

I want to set the variable spring.profiles.active in order to create a package from the command line accordingly, but I don't know how to do it
MacBook-Pro-de-nunito:tdk calzada$ export spring.profiles.active=war,pebloc
-bash: export: `spring.profiles.active=war,pebloc': not a valid identifier
I have also another one
MacBook-Pro-de-nunito:tdk calzada$ export APP-KEY=pebloc
-bash: export: `APP-KEY=pebloc': not a valid identifier
After trying the proposed solution, the active profiles are empty
MacBook-Pro-de-nunito:tdk calzada$ export SPRING_PROFILE_ACTIVE=war,sebloc
MacBook-Pro-de-nunito:tdk calzada$ mvn help:active-profiles
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.tdk:tdk:jar:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-web:jar -> duplicate declaration of version (?) # line 70, 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] ------------------------------------------------------------------------
[INFO] Building tdk 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2:active-profiles (default-cli) # tdk ---
[INFO]
Active Profiles for Project 'com.tdk:tdk:jar:0.0.1-SNAPSHOT':
The following profiles are active:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.491 s
[INFO] Finished at: 2017-03-15T19:23:01+01:00
[INFO] Final Memory: 12M/309M
[INFO] ------------------------------------------------------------------------
Wouldn't be better to define this variables when you package the app. ?
mvn clean package -DskipTests -Dspring.profiles.active=pebloc,war -DAPP-KEY=pebloc

Why does a Maven 3 multi-module project fail on "clean package", and succeed on "clean compile" followed by "package"?

This is similar to the asked and answered question Maven test dependency on multi module project. However, this has nothing to do with the test phase, instead I'm having problems with package.
I have a multi-module project something like:
root
|
|-parent-client
| |
| |-client-1
| |
| \-client-2
|
\-parent-server
|
|-server-1
|
|-server-2
|
|-server-3
|
\-server-4
My dependencies are client-1 -> client-2 -> server-1 -> server-2 -> server-3 -> server-4, which is to say that client-2 depends on server-1, server-1 depends on server-2, and so on. Each is scoped to compile.
So the problem is that when I run mvn clean package in the root, I get a compilation failure in server-2 that package server-3 does not exist.
When I run mvn clean compile followed by mvn package in the root, it runs through without issue.
It always fails at the same module when it fails.
My understanding of the Build Lifecycle is that compile package is redundant since package includes the compile lifecycle.
The project is more complex, with a total of 41 modules, two parents and one root. Creating a simple example inevitably works as expected.
I'm stumped as to how I should proceed.
Update 2015-10-25
Turns out I was wrong about the order of commands for success. I've updated my question and the description, and included debug output per Michael-O's request:
<snip/>
[INFO] --- maven-ejb-plugin:2.3:ejb (default-ejb) # terradatum-systemconfig ---
[INFO] Building EJB terradatum-systemconfig-4.8.1-SNAPSHOT with EJB version 3.0
[INFO] Building jar: /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/systemconfig/ejb/target/terradatum-systemconfig-4.8.1-SNAPSHOT.jar
[INFO] Building EJB client terradatum-systemconfig-4.8.1-SNAPSHOT-client
[INFO] Building jar: /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/systemconfig/ejb/target/terradatum-systemconfig-4.8.1-SNAPSHOT-client.jar
<snip/>
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building terradatum-payment 4.8.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # terradatum-payment ---
[INFO] Deleting /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/payment/ejb/target
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # terradatum-payment ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) # terradatum-payment ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/payment/ejb/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] bootstrap class path not set in conjunction with -source 1.6
[INFO] 1 warning
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/payment/ejb/src/main/java/com/terradatum/common/payment/PaymentRemoteDelegate.java:[13,42] package com.terradatum.common.systemconfig does not exist
<snip/>
Update 2015-11-16
After much refactoring the build no longer fails in the same place. I've seen it fail in a similar way, consistently, but the location of the failure moves around. I am not running multiple threads, but it seems very clear to me there's a race somewhere in which an obviously available package (absolutely located and reachable in my ~/.m2/repository local cache, and added to the classpath) is not visible to the Maven compiler.
And knowing what I know about race conditions, I have no idea how I would file a bug report of any substance given I can't offer anything more than supposition and finger pointing.

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?

Resources