Bug 1313604

Summary: 3.5 maven build failure due to codehaus.org repository being retired
Product: [oVirt] ovirt-engine Reporter: Greg Sheremeta <gshereme>
Component: Build.MavenAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: bugs, juan.hernandez, mperina, sbonazzo
Target Milestone: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-04 14:25:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Greg Sheremeta 2016-03-02 02:40:32 UTC
Description of problem:
codehaus is dead -- must remove references to the old codehaus repo in 3.5's pom

the build will fail because snmp4j is getting pulled from codehaus and not oosnmp.net

Version-Release number of selected component (if applicable):
3.5 master

How reproducible:
always

Steps to Reproduce:
1. checkout 3.5 (i used a fresh vm)
2. delete local maven repository
3. make

Actual results:
the build will fail

Expected results:
successful build

Additional info:
this patch should roughly do it

diff --git a/pom.xml b/pom.xml
index 404668a..10215ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -403,14 +403,6 @@
       </releases>
     </repository>
     <repository>
-      <id>codehaus</id>
-      <name>Codehaus Releases</name>
-      <url>http://repository.codehaus.org/</url>
-      <snapshots>
-        <enabled>false</enabled>
-      </snapshots>
-    </repository>
-    <repository>
       <id>snmp4j</id>
       <name>snmp4j</name>
       <url>https://oosnmp.net/dist/release/</url>

Comment 1 Martin Perina 2016-03-02 07:30:46 UTC
AFAIK we are not supposed to build oVirt 3.5 anymore. RHEV 3.5 build is done in a different way, so it shouldn't be affected. I looked at master/3.6 and we don't use this repo anymore. So shouldn't it be closed as WONTFIX?

Comment 2 Greg Sheremeta 2016-03-02 14:32:43 UTC
@Martin, you have a point, but it's a pretty harmless patch and saves people a lot of frustration when we're backporting patches.

Comment 3 Martin Perina 2016-03-02 17:24:00 UTC
@Greg, I asked about the reason of the bug/fix, because there won't be any other 3.5 build (3.5.8 downstream was the last one), which means we will no longer need to backport any patches to 3.5 branch.

But anyway, feel free to send a patch for this if you think it's still needed.

Comment 4 Greg Sheremeta 2016-03-02 17:26:19 UTC
I'm not actually applying fixes to 3.5, but I'm regression testing performance issues between 4.0, 3.6, and 3.5. Which requires the ability to build 3.5 :)

Comment 5 Sandro Bonazzola 2016-03-04 12:45:33 UTC
Ok on my side for fixing the build there.