Bug 1313604 - 3.5 maven build failure due to codehaus.org repository being retired
Summary: 3.5 maven build failure due to codehaus.org repository being retired
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Build.Maven
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Sandro Bonazzola
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-02 02:40 UTC by Greg Sheremeta
Modified: 2017-05-11 09:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-04 14:25:22 UTC
oVirt Team: Infra
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 54327 0 None None None 2016-03-04 14:25:21 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.