Bug 1139016 - Move all maven repositories references into top level pom.xml
Summary: Move all maven repositories references into top level pom.xml
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.5
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 3.5.0
Assignee: Alon Bar-Lev
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-07 13:45 UTC by Yaniv Lavi
Modified: 2016-02-10 19:30 UTC (History)
9 users (show)

Fixed In Version: ovirt-3.5.0_rc3
Clone Of:
Environment:
Last Closed: 2014-10-17 12:21:18 UTC
oVirt Team: Infra
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 32635 0 master ABANDONED packaging: build: fixed engine first clean build Never
oVirt gerrit 32756 0 master MERGED build: maven: move all repos to top level pom, remove unused Never
oVirt gerrit 33041 0 ovirt-engine-3.5 MERGED build: maven: move all repos to top level pom, remove unused Never

Description Yaniv Lavi 2014-09-07 13:45:01 UTC
Description of problem:
I've installed maven and openjdk java\java-devel 1.7 on a clean el6 machine. When I try to build engine from source I get this error:

[ERROR] Failed to execute goal on project interface-common-jaxrs: Could not resolve dependencies for project org.ovirt.engine.api:interface-common-jaxrs:jar:3.5.0-SNAPSHOT: Could not find artifact org.ovirt.ovirt-host-deploy:ovirt-host-deploy:jar:1.3.0-master-SNAPSHOT -> [Help 1]

To my understanding this is because this repo with artifact is missing:
https://oss.sonatype.org/content/repositories/snapshots/org/ovirt/ovirt-host-deploy/ovirt-host-deploy/1.3.0-master-SNAPSHOT/

This should be added to project, so it can be built without needing to add this to maven's settings.xml.
 
Version-Release number of selected component (if applicable):
3.5

How reproducible:
Always

Steps to Reproduce:
1. install fresh el6 machine.
2. Install maven and openjdk java\java-devel 1.7.
3. try to build.

Actual results:
error:
[ERROR] Failed to execute goal on project interface-common-jaxrs: Could not resolve dependencies for project org.ovirt.engine.api:interface-common-jaxrs:jar:3.5.0-SNAPSHOT: Could not find artifact org.ovirt.ovirt-host-deploy:ovirt-host-deploy:jar:1.3.0-master-SNAPSHOT -> [Help 1]

Expected results:
Should pull all deps and build correctly.

Additional info:

Comment 1 Yaniv Lavi 2014-09-07 13:48:31 UTC
This should be added to pom:
"""
<repository>
    <id>mvn-releases</id>
    <url>
        https://oss.sonatype.org/content/repositories/snapshots
    </url>
    <releases></releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>
"""

Comment 2 Alon Bar-Lev 2014-09-08 08:14:32 UTC
artifact it not missing, follow maven-metadata.xml and see what it refers, and it does exists.

I just confirmed once again... just to make sure.

if you think that this is el6 specific, please try to use upstream maven as-is[1]

[1] http://apache.mivzakim.net/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz

Comment 3 Alon Bar-Lev 2014-09-10 12:04:36 UTC
Having multiple repositories under different names cause maven to be confused, there should be a reference for external repositories only in top level pom.xml per project (parent).

Comment 4 Sandro Bonazzola 2014-10-17 12:21:18 UTC
oVirt 3.5 has been released and should include the fix for this issue.


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