Maven build and repositories are back

In the past openSCADA was built by ant, then by maven and finally using the Eclipse PDE build. While still we think that the PDE build is much faster, more reliable and easier to handle (once you set it up) with Tycho it became quite easy to create your local build. So we added the POM stuff again, this time using tycho and a small tool we created on our own to ease the pain tycho gave us.

But now the base projects aurora, jinterop, oxygen, utgard and atlantis can be built using maven/tycho and the artifacts can be also be consumed as a maven2 repository (http://repo.openscada.org/maven). Only the dependencies are not present since tycho does not generate these for the POM files.

But since the build times with maven are about 5 times longer and maven has so many issues, the PDE build will remain the primary target for us. The maven repositories will be built in the nightly build phase and published afterwards.

Update: The maven repositories have been moved to http://repo.openscada.org/maven/snapshots and http://repo.openscada.org/maven/releases in order to provide SNAPSHOT and RELEASE repositories.

This entry was posted in News. Bookmark the permalink.

6 Responses to Maven build and repositories are back

  1. Alberto says:

    Hello,

    one question.
    What artifact names should I use in my pom.xml?

    Regards.

    • Jens Reimann says:

      Depends what module you like to include in your setup.

      • Alberto says:

        Ok. I got it (exploring mvn repo from browser). The problem is maven can’t find jars, and the repo haven’t indexes for search. I don’t know why. A sample pom.xml would be very useful. Thanks

        My pom

        org.openscada.utgard
        org.openscada.opc.lib
        1.1.0.v20130529
        jar

        My settings

        openscada-repo
        Open Scada repository
        http://repo.openscada.org/maven

        true
        never

        false
        never

        • Alberto says:

          Finally it worked. I configured repository as “http://repo.openscada.org/maven/releases” instead of “http://repo.openscada.org/maven”.

          I’m using play framework for my app.

          • Jens Reimann says:

            Sorry, we made release and snapshot repositories. I updated the post. Thx for posting the comment and sorry for the inconvenience.

  2. Thanks for putting this back up.

    I have a couple of questions:

    1) I don’t know anything about Tycho, but can it not produce a POM with the transitive dependencies? Not a HUGE issue, but I had to dig around the repo for all the stuff (which I found).
    2) Am I missing something, or is JCIFS missing from the distro. Hopefully using the version in central is not an issue.

    My dependencies in pom.xml

    org.openscada.utgard
    org.openscada.opc.lib
    1.1.0.v20130529

    org.openscada.utgard
    org.openscada.opc.dcom
    1.1.0.v20130529

    org.openscada.jinterop
    org.openscada.jinterop.core
    1.1.0.v20130529

    org.openscada.jinterop
    org.openscada.jinterop.deps
    1.1.0.v20130529

    org.samba.jcifs
    jcifs
    1.3.3

    Would be nice to only need the org.openscada.opc.lib artifact, since it eventually needs the rest of them to function.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>