Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orbit-dev] Orbit artefacts in Maven repository

When the Eclipse Project publishes artifacts to Maven Central,
we take care that all Orbit dependencies are re-mapped to their
originals in Maven land. This is done in order to avoid the
exact problems that Joakim describes.

See in https://wiki.eclipse.org/Platform-releng/Publish_To_Maven_Central
where it says: "define maven mappings to map all 3rd party artifacts to their original GAV, ..."

Stephan

On 20.03.2018 13:42, Joakim Erdfelt wrote:
Also be aware, that the unique package space that orbit demands breaks any artifact conflict resolution built into the whole maven process. (among other things that maven provides)

Example,

Let say you have a common artifact you are having to orbitize.

http://central.maven.org/maven2/javax/ws/rs/javax.ws.rs-api/2.1/

You establish groupId: org.eclipse.projectfoo.orbit
You put that artifact into artifactId: javax.ws-rs-api

You now have made extra work for the /users /of your eclipse project.

All of the /users/ of your project will have to manually exclude either ...
the "org.eclipse.projectfoo.orbit" groupId dependencies if they don't use OSGi, or
the "javax.ws.rx" groupId in multiple other dependencies to use your orbit version for its OSGi-ness.

If the orbit process removes files (which happens, be vigilant of changes to the orbit version!), then your orbit version might be incompatible with other non-osgi libraries that use the same artifact.

If you have growing group of users that use both your orbit dependencies and any build tool that uses the central maven repository system, you'll start to have calls for the -javadoc.jar and -source.jar versions of that orbit dependency as well.



On Tue, Mar 20, 2018 at 6:52 AM, Jesse McConnell <jesse.mcconnell@xxxxxxxxx <mailto:jesse.mcconnell@xxxxxxxxx>> wrote:

    AFAIK if you need them there you have to put what you need there yourself under a unique package space.

    --
    jesse mcconnell
    jesse.mcconnell@xxxxxxxxx <mailto:jesse.mcconnell@xxxxxxxxx>

    On Tue, Mar 20, 2018 at 2:59 AM, Matthias Sohn <matthias.sohn@xxxxxxxxx <mailto:matthias.sohn@xxxxxxxxx>> wrote:

        Hi,

        are Orbit artefacts also available in some Maven repository in addition to the Orbit p2 repositories ?

        -Matthias

        _______________________________________________
        orbit-dev mailing list
        orbit-dev@xxxxxxxxxxx <mailto:orbit-dev@xxxxxxxxxxx>
        To change your delivery options, retrieve your password, or unsubscribe from this list, visit
        https://dev.eclipse.org/mailman/listinfo/orbit-dev <https://dev.eclipse.org/mailman/listinfo/orbit-dev>



    _______________________________________________
    orbit-dev mailing list
    orbit-dev@xxxxxxxxxxx <mailto:orbit-dev@xxxxxxxxxxx>
    To change your delivery options, retrieve your password, or unsubscribe from this list, visit
    https://dev.eclipse.org/mailman/listinfo/orbit-dev <https://dev.eclipse.org/mailman/listinfo/orbit-dev>




_______________________________________________
orbit-dev mailing list
orbit-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orbit-dev




Back to the top