Topic
  • 10 replies
  • Latest Post - ‏2013-05-03T14:27:47Z by JirongHu
SystemAdmin
SystemAdmin
805 Posts

Pinned topic Buildforge and maven repositories

‏2007-04-16T07:03:14Z |
Has anyone tried using Buildforge to apply continuous integration to maven repositories? We are running our own internal maven repository (self hosting a repository, thirdparty and SNAPSHOT repository) and when a dependant jar changes we want to check through the pom dependency for any given project that relies on this jar and rebuild it. I have thought about writing my own adapter for this purpose and may eventually have to do this but it would be nice to avoid all this work if someone has done it before.
Updated on 2009-08-20T16:57:20Z at 2009-08-20T16:57:20Z by benjaminchodroff
  • SystemAdmin
    SystemAdmin
    805 Posts

    Re: Buildforge and maven repositories

    ‏2008-01-17T12:59:00Z  
    I'm just coming up against the same requirement.

    I've googled for BuildForge and Maven - this is the most promising thread that I could find :-(.

    Did you find an elegant way to do this ?

    Does anyone out there have a decent way of connecting the two systems ?

    Are IBM looking at supporting a Maven integration ?

    Specifically, we have one project in CruiseControl/Maven publishing artefacts to Artefactory and want to have a second project, depending on the first, rebuilt by BuildForge every time a new SNAPSHOT is deployed.

    Thanks for your help,
    Jules
  • SystemAdmin
    SystemAdmin
    805 Posts

    Re: Buildforge and maven repositories

    ‏2008-03-05T12:20:09Z  
    I'm just coming up against the same requirement.

    I've googled for BuildForge and Maven - this is the most promising thread that I could find :-(.

    Did you find an elegant way to do this ?

    Does anyone out there have a decent way of connecting the two systems ?

    Are IBM looking at supporting a Maven integration ?

    Specifically, we have one project in CruiseControl/Maven publishing artefacts to Artefactory and want to have a second project, depending on the first, rebuilt by BuildForge every time a new SNAPSHOT is deployed.

    Thanks for your help,
    Jules
    When do you use Cruise control versus Buildforge for building your projects? Why have the 2 distinct systems?

    So, the basic question seems to me like a continuous integration setup..(When there's a new X, run the project), the only real difference is that instead of looking into version control, you need to look at the maven repo. I don't know if there's an API or a way to simply look at timestamps in the maven repo to detertime "new-ness"
  • patrick.renaud
    patrick.renaud
    32 Posts

    Re: Buildforge and maven repositories

    ‏2008-03-14T22:16:30Z  
    It would be nice to hear from IBM what the plans are with respect to Build Forge and Maven in the future. There is a huge potential out there waiting to be exploited.
  • SystemAdmin
    SystemAdmin
    805 Posts

    Re: Buildforge and maven repositories

    ‏2008-08-12T14:26:21Z  
    Our development team is using maven2 for a lot of new projects, and I'm starting to get a lot of questions on if Build Forge can "handle" this.

    And if not, why don't we look at moving to a new tool that has support out of the box?

    Has anyone written an adapter they would be willing to share? Or have any information on ways to handle this?

    Thanks!

    Dean
  • BrettB
    BrettB
    2 Posts

    Re: Buildforge and maven repositories

    ‏2008-08-25T04:55:47Z  
    Our development team is using maven2 for a lot of new projects, and I'm starting to get a lot of questions on if Build Forge can "handle" this.

    And if not, why don't we look at moving to a new tool that has support out of the box?

    Has anyone written an adapter they would be willing to share? Or have any information on ways to handle this?

    Thanks!

    Dean
    This problem very quickly goes from being "nice to have have" to non-trivial. For instance, we have applications being be built by maven - common code upon which as many as 200 other artifacts depend. The question is - if dependency changes do we then go and rebuild 200 other projects? What if dependency changes every 30 minutes?
    Currently we have scripts to handle this kind of thing, and set an upper limit on what gets rebuilt. Between Perl and Maven this is not difficult to handle, but then BuildForge is relegated to being little more than cron (i.e. run this script when cc_update_adaptor finds new code).
    Also, afaik, there is currently no build engine that will do a maven dependency tree rebuild. Like I said, it is a non-trivial exercise and something that each site will need to put a fair bit of thought into to develop an acceptable solution. Unless of course you have an insanely fast build environment, then you should just build everything all the time :-)
  • SystemAdmin
    SystemAdmin
    805 Posts

    Re: Buildforge and maven repositories

    ‏2008-09-08T14:32:14Z  
    • BrettB
    • ‏2008-08-25T04:55:47Z
    This problem very quickly goes from being "nice to have have" to non-trivial. For instance, we have applications being be built by maven - common code upon which as many as 200 other artifacts depend. The question is - if dependency changes do we then go and rebuild 200 other projects? What if dependency changes every 30 minutes?
    Currently we have scripts to handle this kind of thing, and set an upper limit on what gets rebuilt. Between Perl and Maven this is not difficult to handle, but then BuildForge is relegated to being little more than cron (i.e. run this script when cc_update_adaptor finds new code).
    Also, afaik, there is currently no build engine that will do a maven dependency tree rebuild. Like I said, it is a non-trivial exercise and something that each site will need to put a fair bit of thought into to develop an acceptable solution. Unless of course you have an insanely fast build environment, then you should just build everything all the time :-)
    We are in the initial stages of deploying build forge and maven. I spoke to our IBM technical contact about the future plans for BF/Maven integration and the response in no exact words, you're on your own. he said it is not a difficult task to do, but it is up to each site to do their own integration if they chose to have BF rebuild each project when Maven dependencies change.
  • patrick.renaud
    patrick.renaud
    32 Posts

    Re: Buildforge and maven repositories

    ‏2008-09-09T23:45:27Z  
    We are in the initial stages of deploying build forge and maven. I spoke to our IBM technical contact about the future plans for BF/Maven integration and the response in no exact words, you're on your own. he said it is not a difficult task to do, but it is up to each site to do their own integration if they chose to have BF rebuild each project when Maven dependencies change.
    I have the same feeling: we are on our own. Very unfortunate and not a pleasant answer. Maybe IBM could productify an adaptor that generates steps at build time by parsing the Maven Reactor output, or something along these lines. Anything would be better than the current situation, where BF and Maven are not working very nicely together, to say the least...

    Look at Anthill's solution with Maven - impressive! I wouldn't mind if BF would get inspiration out of that solution.
  • BrettB
    BrettB
    2 Posts

    Re: Buildforge and maven repositories

    ‏2008-09-22T04:21:01Z  
    I have the same feeling: we are on our own. Very unfortunate and not a pleasant answer. Maybe IBM could productify an adaptor that generates steps at build time by parsing the Maven Reactor output, or something along these lines. Anything would be better than the current situation, where BF and Maven are not working very nicely together, to say the least...

    Look at Anthill's solution with Maven - impressive! I wouldn't mind if BF would get inspiration out of that solution.
    I agree that IBM are really missing out on a good opportunity here. At the moment all our in-house projects are using Maven as the build/dependency management tool. This has made BuildForge's role somewhat superfluous. Since it has no meaningful integration, and integration is difficult to achieve with the BF tools, it is mostly an expensive cron that runs a bunch of scripts. No doubt we could probably set it up better, but between Maven and the process we have designed around its use, BuildForge's role is secondary at best. Given it's popularity as a development tool IBM is indirectly turning away potential customers by not pursuing this integration, and at the moment I would have to say that I would not recommend BuildForge for development shops using Maven simply because there are many tools out there that do it better (and in some cases for free).
  • benjaminchodroff
    benjaminchodroff
    1 Post

    Re: Buildforge and maven repositories

    ‏2009-08-20T16:57:20Z  
    • BrettB
    • ‏2008-09-22T04:21:01Z
    I agree that IBM are really missing out on a good opportunity here. At the moment all our in-house projects are using Maven as the build/dependency management tool. This has made BuildForge's role somewhat superfluous. Since it has no meaningful integration, and integration is difficult to achieve with the BF tools, it is mostly an expensive cron that runs a bunch of scripts. No doubt we could probably set it up better, but between Maven and the process we have designed around its use, BuildForge's role is secondary at best. Given it's popularity as a development tool IBM is indirectly turning away potential customers by not pursuing this integration, and at the moment I would have to say that I would not recommend BuildForge for development shops using Maven simply because there are many tools out there that do it better (and in some cases for free).
    I am a Rational IT Specialist and I am going to try to convince the Build Forge development team to add this feature in a future release. I understand the need for managing libraries. While you certainly can use Build Forge to kick off a maven project, it would be ideal if Build Forge could work with the pom file in some form to manage versions of libraries. Please continue to ask Rational Support to open requests for enhancements on this idea so we can accurately gauge the interest.
  • JirongHu
    JirongHu
    34 Posts

    Re: Buildforge and maven repositories

    ‏2013-05-03T14:27:47Z  
    I am a Rational IT Specialist and I am going to try to convince the Build Forge development team to add this feature in a future release. I understand the need for managing libraries. While you certainly can use Build Forge to kick off a maven project, it would be ideal if Build Forge could work with the pom file in some form to manage versions of libraries. Please continue to ask Rational Support to open requests for enhancements on this idea so we can accurately gauge the interest.

    What's the current status about BuildForge and Maven, with ClearCase, not RTC? Any resources available? This is for clients still with CCCQBF, not in RTC.

    Thanks

    Jirong