Re: [proposal] - maven 2 based build?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Feb 23 2006 - 11:43:18 EST

  • Next message: Mike Kienenberger: "Re: [proposal] - maven 2 based build?"

    [I am forwarding this message to cayenne-devel with my comment. Bill,
    I see you are subscribed to it already.]

    A few months ago we went through a big reorg of the build scripts to
    better handle multiple subprojects (back then the driving force was
    to be able to develop 1.4 and 1.5 builds in parallel). I am very
    satisfied with what we have now, but I do realize that scaling it to
    a larger number of subprojects can be tough.

    While we maybe looking for alternatives, my current concerns/
    questions (many coming from total ignorance about maven) are the
    following:

    1. Unit tests DB switching. Will it be possible with Maven?

    http://objectstyle.org/confluence/display/CAY/Running+Unit+Tests

    2. Ant scripts are optimized to do things incrementally, so if I need
    to run just a single test, I don't have to do the entire build (maybe
    this concern will go away once I upgrade to the new Apple MacBook? :-))

    3. Web site. While our current site may need improvement (see the
    whole CMS thread - http://www.objectstyle.org/cayenne/lists/cayenne-
    user/2005/10/0157.html ), I'd like to preserve the "branded" site,
    just make it more flexible. Wouldn't switching to Maven-built site
    take us further away from that goal?

    4. (showing my ignorance here) If dependencies are downloaded during
    the build, how do we setup Eclipse to use the right dependencies.
    Corollary to that - if we don't want to use the latest version of
    some dependency package (e.g. cause it is not widely deployed out
    there yet and is not fully backwards compatible), can Maven handle that?

    5. If there is something Maven does not support is there a way to
    plugin an Ant script in the build process?

    As you see all of these concerns are about loosing flexibility that
    Ant presently gives us. So maybe lets try Maven with cayenne-jpa to
    get a feel of what it is, but I'd postpone the discussion of
    migration of the main Cayenne build system till at least after 1.2.

    Right now cayenne-jpa project has no consistent build system. I was
    going to write an Ant-based script very soon (CAY-459 task). So Bill,
    would it be possible to set up something Maven-based quickly for the
    JPA work?

    Andrus

    On Feb 23, 2006, at 7:29 AM, Bill Dudney wrote:
    > Hi All,
    >
    > I wanted to start a thread on this topic.
    >
    > I was wondering what the dev community interest is on moving to m2
    > for at least the cayenne jpa stuff.
    >
    > I have been involved in a couple of m2 moves and would be glad to
    > help out with this on Cayenne.
    >
    > Benefits as I see them;
    > 1) automated build without reliance on properties files
    > 2) easy to package various builds in one invocation (i.e. linux,
    > windows, osx builds in one invocation of m2)
    > 3) Simplified site building and deploying
    > 4) makes it much easier to get an m2 repository for people to use
    > maven with Cayenne
    >
    > Downside:
    > 1) directory layout should match the m2 expected dir structure for
    > maximum benifit
    > 2) m2 is not as familiar so some people that want to download and
    > build cayenne themselves might be turned off
    > 3) the ibiblio repo can be very slow and make maven very slow
    >
    > There are probably lots of others on both the + and - side.
    >
    > Thoughts?
    >
    > Bill Dudney
    > MyFaces - myfaces.apache.org
    > Wadi - incubator.apache.org/wadi



    This archive was generated by hypermail 2.0.0 : Thu Feb 23 2006 - 11:43:20 EST