https://bugzilla.redhat.com/show_bug.cgi?id=1147899
Bug ID: 1147899 Summary: jenkins: maven-project plugin doesn't work Product: Fedora Version: 21 Component: jenkins Assignee: msrb@redhat.com Reporter: msrb@redhat.com QA Contact: extras-qa@fedoraproject.org CC: java-sig-commits@lists.fedoraproject.org, msrb@redhat.com
Description of problem:
This is probably related to core plugins (rhbz#1147838), but it needs some investigating. When I am trying to build maven project with maven-plugin, I am always getting:
Started by user anonymous Building in workspace /var/lib/jenkins/jobs/maven1/workspace Cloning the remote Git repository Cloning repository https://github.com/kohsuke/akuma.git
git init /var/lib/jenkins/jobs/maven1/workspace # timeout=10
Fetching upstream changes from https://github.com/kohsuke/akuma.git
git --version # timeout=10 git fetch --tags --progress https://github.com/kohsuke/akuma.git
+refs/heads/*:refs/remotes/origin/*
git config remote.origin.url https://github.com/kohsuke/akuma.git #
timeout=10
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* #
timeout=10
git config remote.origin.url https://github.com/kohsuke/akuma.git #
timeout=10 Fetching upstream changes from https://github.com/kohsuke/akuma.git
git fetch --tags --progress https://github.com/kohsuke/akuma.git
+refs/heads/*:refs/remotes/origin/*
git rev-parse refs/remotes/origin/master^{commit} # timeout=10 git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 0440b32a2040894cd22c48e2e4603a3c3d64948d (refs/remotes/origin/master)
git config core.sparsecheckout # timeout=10 git checkout -f 0440b32a2040894cd22c48e2e4603a3c3d64948d
First time build. Skipping changelog. Parsing POMs FATAL: null java.lang.StackOverflowError at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40) ...
Version-Release number of selected component (if applicable): 1.581-2
How reproducible: always
https://bugzilla.redhat.com/show_bug.cgi?id=1147899
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mizdebsk@redhat.com
--- Comment #1 from Mikolaj Izdebski mizdebsk@redhat.com --- I can reproduce this as well.
https://bugzilla.redhat.com/show_bug.cgi?id=1147899
Alex abcoyle@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |abcoyle@gmail.com
--- Comment #2 from Alex abcoyle@gmail.com --- I could also reproduce; the solution in my case, was to copy an appropriate Maven settings.xml to /var/lib/jenkins/.m2, with owner/group jenkins (I was trying to build a project for the organisation where I work, the settings.xml is for the organisation in this case)
After copying the settings.xml into the expected location, I didn't get the error any more.
Obviously the lack of a custom settings.xml should not cause this error, but as a workaround it may help, or offer a hint at the root cause.
Thanks
https://bugzilla.redhat.com/show_bug.cgi?id=1147899
--- Comment #3 from Alex abcoyle@gmail.com --- Some clarification regarding my previous comment: copying the settings.xml is not the change that makes the difference, the correct workaround is to exec Maven manually once, after the first Jenkins build has failed:
cd /var/lib/jenkins/workspace/<job-name> su -s /bin/bash -c "mvn clean" jenkins
After performing this workaround, I found that subsequent Jenkins builds will succeed.
https://bugzilla.redhat.com/show_bug.cgi?id=1147899
Fedora Java SIG java-sig-commits@lists.fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|java-sig-commits@lists.fedo | |raproject.org |
Michal Srb msrb@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
java-sig-commits@lists.fedoraproject.org