Wondering why pipeline is failing - maven

[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

Related

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

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

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

Could not transfer artifact commons-io:commons-io:pom:2.5-SNAPSHOT from/to LT-Nexus-Dependencies

Getting this error when i am trying to maven clean install
[ERROR] Failed to execute goal on project: Could not resolve dependencies for project:war:8.3.3: Failed to collect dependencies at com.piam:authentication-filter:jar:3.18.1 -> com.ltg.piam:commons-external:jar:3.18.1 -> com.nimbusds:oauth2-oidc-sdk:jar:4.9 -> com.nimbusds:nimbus-jose-jwt:jar:4.14 -> commons-io:commons-io:jar:2.5-SNAPSHOT: Failed to read artifact descriptor for commons-io:commons-io:jar:2.5-SNAPSHOT: Could not transfer artifact commons-io:commons-io:pom:2.5-SNAPSHOT from/to LT-Nexus-Dependencies (): authentication failed for commons-io/commons-io/2.5-SNAPSHOT/commons-io-2.5-SNAPSHOT.pom, status: 401 Unauthorized -> [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/DependencyResolutionException

maven package issues with dspace

I am teaching DSpace for MLIS students and when I give mvn package, I get the following error (file attached).
I try to install DSpace on Windows 7 with the following set of files. which in the past I have succeeded several times. As we could not upgrade the OS in the computer lab, I am stuck to teach the same installation, this time too.
jdk1.6.0_38,
apache-ant-1.9.2,
apache-maven-3.0.5,
apache tomcat 7.0,
dspace-3.2-src-release.
Kindly help me resolve.
The error log file:
C:\dspace\dspace-3.2-src-release\dspace>mvn package
[INFO] Scanning for projects...
Downloading: http://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.dspace:dspace:3.2 (C:\dspace\dspace-3.2-src-release\dspace\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.dspace:dspace-parent:3.2: Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to sonatype-releases
(http://oss.sonatype.org/content/repositories/releases/): peer not authenticated and 'parent.relativePath' points at wrong local POM # org.dspace:dspace-parent:3.2, C:\dspace\dspace-3.2-src-release\pom.xml, line 17, column 13 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
C:\dspace\dspace-3.2-src-release\dspace>

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