Getting GC overhead limit exceeded error in SonarQube despite setting `sonar.skipPackageDesign=true` and `sonar.skipDesign=true` - maven

This answer says to use sonar.skipPackageDesign=true and sonar.skipDesign=true.
But even after using it I'm still getting the Getting GC overhead limit exceeded error.
I'm running SonarQube using maven locally.
The command I'm using is
>set sonar.web.javaOpts=-Xmx1024m -Xms512m -XX:+HeapDumpOnOutOfMemoryError
>mvn sonar:sonar -Dsonar.projectKey=com.org.project.java -Dsonar.host.url=https://sonarqube.it.org.net -Dsonar.login=token -Dsonar.skipPackageDesign=true -Dsonar.skipDesign=true
I'm getting the following error
[ERROR] GC overhead limit exceeded -> [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/OutOfMemoryError

Related

Setting up artifact server connection(Maven) error

I am trying to setup Maven by creatiing m2/settings.xmlm file using command mvn -q org.sonatype.plugins:nexus-m2settings-maven-plugin:1.6.8:download -DnexusUrl=https://artifact.devsnc.com -DtemplateId=devsnc
but i am getting error as below:
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-m2settings-maven-plugin:1.6.8:download (default-cli) on project standalone-pom: Connection failed: com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection timed out: connect -> [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
Kindly help me

Wondering why pipeline is failing

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar (default-cli) on project ps9_omc_itemref_kfkconsumer: File src/test/java/com/michelin/ps9/omc/itemref/kfkconsumer/Ps9OmcItemrefKfkconsumerApplicationTests.java can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files -> [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
Cleaning up file based variables
00:00
ERROR: Job failed: command terminated with exit code 1

Error on releasing with maven-release-plugin on Jenkins

I got a Jenkins job that builds a java maven project.
Now I tried a release build via Jenkins (Perform Maven Release) but it fails.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project MyProject: Unable to check for local modifications
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: E155036: Please see the 'svn upgrade' command
[ERROR] svn: E155036: The working copy at '/var/lib/hudson/workspace/JobName/MyProject'
[ERROR] is too old (format 8) to work with client version '1.9.5 (r1770682)' (expects format 31). You need to upgrade the working copy first.
[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
The plugin configuration in the pom is:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<tagBase>http://svn.example.org/myproject/tags/_modules</tagBase>
</configuration>
</plugin>
I'm not sure now but in the past it was working.
What I don't understand is the maven-release-plugin not using the local svn client?
From the error message it seems so (svn upgrade) and if so why is it failing on the release but not the checkout?
Is there a way to come around this without changing jenkins?
What I tried is adding following as I understand that that should force the plugin to use this provider which should be compatible:
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>2.0.6</version>
<scope>compile</scope>
</dependency>
</dependencies>
But I got following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project MyApp: Unable to commit files
[ERROR] Provider message:
[ERROR] SVN commit failed.
[ERROR] Command output:
[ERROR] svn: E170001: Commit failed (details follow):
[ERROR] svn: E170001: MKACTIVITY of '/products/MyAppsAgregator/!svn/act/24d46a73-6601-0010-864c-7b76c8107c40': 403 Forbidden (http://svn.example.org)
[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.

Trying to work with deeplearning4j for the first time but it does not work [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I try to follow the quick start guide on deeplearning4j, deeplearning4j.org/quickstart. However, when I try to run "mvn clean install", it give me the following errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
5.1:compile (default-compile) on project dl4j-examples: Compilation failure: Com
pilation failure:
[ERROR] /D:/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/example
s/feedforward/classification/DetectGender/PredictGenderTest.java:[8,55] package
org.apache.lucene.queryparser.flexible.messages does not exist
[ERROR] /D:/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/example
s/feedforward/classification/DetectGender/PredictGenderTest.java:[9,37] package
org.canova.api.records.reader does not exist
[ERROR] /D:/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/example
s/feedforward/classification/DetectGender/PredictGenderTest.java:[10,42] package
org.canova.api.records.reader.impl does not exist
[ERROR] /D:/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/example
s/feedforward/classification/DetectGender/PredictGenderTest.java:[11,28] package
org.canova.api.split does not exist
[ERROR] /D:/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/example
s/feedforward/classification/DetectGender/PredictGenderTest.java:[12,42] package
org.deeplearning4j.datasets.canova does not exist
[ERROR] /D:/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/example
s/feedforward/classification/DetectGender/GenderRecordReader.java:[19,34] packag
e jdk.internal.util.xml.impl does not exist
[ERROR] /D:/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/example
s/feedforward/classification/DetectGender/GenderRecordReader.java:[20,56] packag
e org.apache.lucene.queryparser.flexible.core.util does not exist
[ERROR] /D:/dl4j-examples/dl4j-examples/src/main/java/org/deeplearning4j/example
s/feedforward/classification/DetectGender/GenderRecordReader.java:[21,30] packag
e org.apache.lucene.util does not exist
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :dl4j-examples
I also changed java version tag inside pom.xml from 1.7 to 1.8. I also use window 7 64 bit.
This has been fixed. Please reclone your the examples.

Error while running allure-junit example

I am trying to integrate allure-report with my junit code.
To try this, i was first trying to run the allure-junit example from https://github.com/allure-examples/allure-junit-example
When i run this code, i get the below error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire- plugin:2.18:test (default-test) on project SampleAllureTest: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: There was an error in the forked process
[ERROR] java.lang.NoSuchMethodError: org.apache.commons.beanutils.ConvertUtilsBean.register(ZZI)V
[ERROR] at ru.yandex.qatools.properties.decorators.DefaultFieldDecorator.<init>(DefaultFieldDecorator.java:24)
[ERROR] at ru.yandex.qatools.properties.PropertyLoader.populate(PropertyLoader.java:29)
[ERROR] at ru.yandex.qatools.properties.PropertyLoader.populate(PropertyLoader.java:23)
[ERROR] at ru.yandex.qatools.allure.config.AllureConfig.<init>(AllureConfig.java:80)
[ERROR] at ru.yandex.qatools.allure.config.AllureConfig.newInstance(AllureConfig.java:84)
[ERROR] at ru.yandex.qatools.allure.Allure.getVersion(Allure.java:266)
[ERROR] at ru.yandex.qatools.allure.Allure.fire(Allure.java:187)
[ERROR] at ru.yandex.qatools.allure.junit.AllureRunListener.testSuiteFinished(AllureRunListener.java:89)
[ERROR] at ru.yandex.qatools.allure.junit.AllureRunListener.testRunFinished(AllureRunListener.java:95)
[ERROR] at org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42)
[ERROR] at org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103)
[ERROR] at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)
[ERROR] at org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:131)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[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/PluginExecutionException
Could anyone please help me in fixing this issue.Please note, i didnt do any changes to the code in the sample.
You need to add commons-beanutils to your dependencies.

Resources