Getting error: Unable to parse POM - java

While building a Maven project in Jenkins, I am getting below error. Can you provide steps to solve this error?
Building in workspace C:\Program Files (x86)\Jenkins\workspace\JenkinProject
Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven on Jenkins
ERROR: Failed to parse POMs
java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven\apache-maven-3.5.3 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven\apache-maven-3.5.3.__rename
at hudson.FilePath$29.invoke(FilePath.java:2107)
Finished: FAILURE

Related

DEPMOD File not found, how can i solve this?

i'm new in Android ROM compiling and i'm doing this private build and happend this error after 1h30min, i could not found anything that can help me solve this error
make[1]: Entering directory '/home/onygan/peplus/out/target/product/ysl/obj/KERNEL_OBJ'
INSTALL drivers/char/rdbg.ko
INSTALL drivers/media/platform/msm/dvb/adapter/mpq-adapter.ko
INSTALL drivers/media/platform/msm/dvb/demux/mpq-dmx-hw-plugin.ko
INSTALL drivers/video/backlight/lcd.ko
INSTALL fs/efivarfs/efivarfs.ko
INSTALL net/bridge/br_netfilter.ko
INSTALL net/ipv4/tcp_bic.ko
INSTALL net/ipv4/tcp_htcp.ko
INSTALL net/wireguard/wireguard.ko
DEPMOD 4.9.262-perf+
make[1]: Leaving directory '/home/onygan/peplus/out/target/product/ysl/obj/KERNEL_OBJ'
make: Leaving directory '/home/onygan/peplus/kernel/xiaomi/ysl'
depmod: WARNING: could not open modules.order at /home/onygan/peplus/out/target/product/ysl/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0: No such file or directory
depmod: WARNING: could not open modules.builtin at /home/onygan/peplus/out/target/product/ysl/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0: No such file or directory
00:52:32 ninja failed with: exit status 1
ninja: build stopped: subcommand failed.

GWT source build failure

I'm compiling a snapshot (current master) of gwt from source.
When running the command ant clean dist-dev, it results in the below build failure.
BUILD FAILED
C:\gwt_project\gwt\build.xml:53: The following error occurred while executing this line:
C:\gwt_project\gwt\distro-source\build.xml:23: Failed to copy C:\gwt_project\gwt\build\out\gwt-dev-merged.jar to C:\gwt_project\gwt\build\lib\gwt-dev.jar due to C:\gwt_project\gwt\build\lib\gwt-dev.jar
When running ant elemental dist-dev,it fails as below
BUILD FAILED
C:\gwt_project\gwt\build.xml:76: The following error occurred while executing this line:
C:\gwt_project\gwt\elemental\build.xml:20: Execute failed: java.io.IOException: Cannot run program "idl\build" (in directory "C:\gwt_project\gwt\elemental"): CreateProcess error=2, The system cannot find the file specified
I have tried executing these commands from an admin command prompt to check if it is a permission issue. However it still fails with the same result.
Probably Windows still holds the 'C:\gwt_project\gwt\build\out\gwt-dev-merged.jar' file, such that it can't be moved to the new location. Changing the ANT task from 'move' to 'copy' should fix the issue (in C:\gwt_project\gwt\distro-source\build.xml:23).

Jenkins Setup Issue

I have done the Jenkins Setup to clone solution from Github Repo and trigger the build and solution should run on multiple browsers in parallel (I'm using ANT build).
But when I'm trying to run scripts, its triggering the build but unable to clone solution on VM, throwing below error
Started by upstream project "HippoAutomationTests" build number 12
originally caused by:
Started by user Andy Williams
[EnvInject] - Loading node environment variables.
Building on master in workspace /x01/builds/workspace/HippoAutomationTests/browser/Firefox
using credential b89b0ace-6852-43d4-83a7-83f3ba77a290
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://bitbucket.org/kohler_source/hippoautomationtests.git # timeout=10
Fetching upstream changes from https://bitbucket.org/kohler_source/hippoautomationtests.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials Bitbucket Credentials
> git fetch --tags --progress https://bitbucket.org/kohler_source/hippoautomationtests.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 104215052b7b4ae548eb2a4782bd9292bc93b95a (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 104215052b7b4ae548eb2a4782bd9292bc93b95a
Commit message: "Updating the solution"
> git rev-list --no-walk 104215052b7b4ae548eb2a4782bd9292bc93b95a # timeout=10
[Firefox] $ /x01/jenkins/tools/hudson.tasks.Ant_AntInstallation/Ant_Installation/bin/ant -file build.xml -DGroup=HippoIndia -Dbrowser=Firefox -DURL=http://plumbingindia.kohler.acct.us.onehippo.com/ -DrealTimeReport=true -DrunParallel=methods -Dselenium.capture.path=/Test/build/test-output/new -Dtest.url=http://plumbingindia.kohler.acct.us.onehippo.com/ -DuseVideoCapture=false -DbuildName=Test -DdbMode=false -Dselenium.timeout=60000 -DlocalExecution=true -DthreadCount=1 -Dtest.browser=Firefox -Dpackages=com.tests.* -Dtest.browser.version=11.0 -DretryCount=0 -Dselenium.port=4444 -DdbUrl=localhost:3306/isaf -DshowVideosOnPass=false -DdataProviderThreadCount=20 -Dgroups=HippoIndia -DuseProxy=false -DdbUser=isaf_user -Dselenium.host=localhost -DdbPass=isaf#123 -DreportType=iwafreport build.config run.test
Buildfile: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/build.xml
build.config:
[copy] Copying 1 file to /x01/builds/workspace/HippoAutomationTests/browser/Firefox
clean:
[delete] Deleting directory /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build
init:
[mkdir] Created dir: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build
[mkdir] Created dir: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-classes
[mkdir] Created dir: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-output
compile:
[javac] /x01/builds/workspace/HippoAutomationTests/browser/Firefox/build.xml:99: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 18 source files to /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
run.test:
[java] Error occurred during initialization of VM
[java] Error opening zip file or JAR manifest missing : /x01/builds/workspace/HippoAutomationTests/browser/Firefox/lib\aspectjweaver.jar
[java] agent library failed to init: instrument
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 4 seconds
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-output/IwafReport to /x01/jenkins/jobs/HippoAutomationTests/configurations/axis-browser/Firefox/htmlreports/HTML_20Report
ERROR: Specified HTML directory '/x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-output/IwafReport' does not exist.
Build step 'Publish HTML reports' changed build result to FAILURE
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
testng-results.xml was last modified before this build started. Ignoring it.
testng-results.xml was last modified before this build started. Ignoring it.
Saving reports...
Found matching files but did not find any TestNG results.
Finished: FAILURE
Please provide some suggestion to resolve the issue.
The aspectjweaver.jar JAR is missing on your build environment as per the error message:
[java] Error occurred during initialization of VM [java] Error opening zip file or JAR manifest missing : /x01/builds/workspace/HippoAutomationTests/browser/Firefox/lib\aspectjweaver.jar
[java] agent library failed to init: instrument
[java] Java Result: 1
Ensure that this JAR is present and don't use \ as a path delimiter. It should be lib/aspectjweaver.jar just like rest of the path.

Sonarqube: Job fails with Couldn't delete lock file: .././.sonar_lock java.nio.file.NoSuchFileException

I am running command 'gradle sonarqube --stacktrace" which started resulting in the following:
Analysis report generated in /Users/shashank.devan/dev/myproject/build/sonar/batch-report
23:38:14.994 DEBUG - Couldn't delete lock file: /Users/shashank.devan/dev/myproject/./.sonar_lock java.nio.file.NoSuchFileException: /Users/shashank.devan/dev/myproject/./.sonar_lock
> Buildiat sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
at java.nio.file.Files.delete(Files.java:1126)
at org.sonar.home.cache.DirectoryLock.unlock(DirectoryLock.java:98)
at org.sonar.batch.scan.ProjectLock.stop(ProjectLock.java:57)..
..
What went wrong:
Execution failed for task ':myproject:sonarqube'.
> Unable to execute Sonar
Did I miss something? The command was working fine for other directories.
I faced this error recently. Analysis successful but report processing failed[Saying .sonarlock file couldn't be deleted]
I had warnings in the build but no error.
we need to check the logs of sonar analysis for more information.So from build console navigate to sonar url.
[INFO] [20:02:34.373] ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/com.app
Click on Administration->background tasks->(check your failed build with logs link at end)->open logs to check the error.
I had validation failed error for multimodule mvn project in sonar logs.
org.sonar.api.utils.MessageException: Validation of project failed:
o Module "com.app:app-bootstrap" is already part of project "com.app:appco"
Fixed it by updating the group id's of all my projects modules and submodules.

Sonarqube evaluation - Ant Build failing

Updated to reflect Sonar-Runner
We have these projects configured:
We're using this sonar-project.properties file in the root of the folder containing our application source:
sonar.projectKey=Southern
sonar.projectName=Southern
sonar.projectVersion=1.0
sonar.sources=.
We run the sonar-runner command in the same folder in which the above properties file exists. We get the following error:
ERROR: Error during SonarQube Scanner execution
ERROR: Unable to load component class org.sonar.batch.report.ActiveRulesPublishe
r
ERROR: Caused by: Unable to load component interface org.sonar.api.batch.rule.Ac
tiveRules
ERROR: Caused by: Unable to load component class org.sonar.batch.rule.ModuleQPro
files
ERROR: Caused by: Error 500 on http://localhost:9000/api/qualityprofiles/search.
protobuf?projectKey=Southern
ERROR:
The SonarQube application and website are running and available.
Downloaded the sonar-runner.
Updated properties file: sonar-sources=src. Scans ran but hung with an error that the DB was locked.
Rebooted the machine and restarted SonarQube. Problem resolved. All scans run.

Categories