JBehave
  1. JBehave
  2. JBEHAVE-236

Checking out, building and testing JBehave from scratch

    Details

    • Type: Task Task
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4.1, 2.5
    • Component/s: Documentation
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Hi Mauro,

      The Maven build has completely superseded the Ant build, which is now very broken. This is fair, since you've done all the work lately - thanks!

      Could you please put a small amount of documentation out to show how to build JBehave from check-out, for those of us who don't know Maven? The learning curve has been off-putting even for those of us who care a lot

      Cheers,
      Liz.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Issue Type New Feature [ 2 ] Task [ 3 ]
        Hide
        Mauro Talevi added a comment -

        Hi Liz,

        Ant build had out-of-date dependencies. I've now refactored it to read the dependencies from the Maven pom.xml so they are in sync, using the maven-ant-tasks (does not require Maven installed, but does required the maven-ant-tasks jar in the Ant lib dir, see BUILD.txt). Build works again, with only exception that I could not get the Paranamer-based behaviours to pass in CandidateStepBehaviour. It is a classloading issue, only occuring with Ant. If you run 'ant setup', which copies the dependencies to target/lib, and then use to setup your IDE classpath, you'll see that in IDE the behaviour works fine. So I excluded it for now from the batch of unit tests, leaving a FIXME in the build.xml.

        More in general, this issue shows that keeping two build systems in place is an overhead that we could do without. I think that basic usage of Maven does not differ very much from Ant, with notable exception that it's a bit more structured (with advantage of consistency). The BUILD.txt file at top-level that has some basic info on how to build with Maven. We can expand it if you can point out what could be clarified better, from a Maven novice POV.

        Show
        Mauro Talevi added a comment - Hi Liz, Ant build had out-of-date dependencies. I've now refactored it to read the dependencies from the Maven pom.xml so they are in sync, using the maven-ant-tasks (does not require Maven installed, but does required the maven-ant-tasks jar in the Ant lib dir, see BUILD.txt). Build works again, with only exception that I could not get the Paranamer-based behaviours to pass in CandidateStepBehaviour. It is a classloading issue, only occuring with Ant. If you run 'ant setup', which copies the dependencies to target/lib, and then use to setup your IDE classpath, you'll see that in IDE the behaviour works fine. So I excluded it for now from the batch of unit tests, leaving a FIXME in the build.xml. More in general, this issue shows that keeping two build systems in place is an overhead that we could do without. I think that basic usage of Maven does not differ very much from Ant, with notable exception that it's a bit more structured (with advantage of consistency). The BUILD.txt file at top-level that has some basic info on how to build with Maven. We can expand it if you can point out what could be clarified better, from a Maven novice POV.
        Mauro Talevi made changes -
        Assignee Mauro Talevi [ maurotalevi ]
        Fix Version/s 2.5 [ 15850 ]
        Mauro Talevi made changes -
        Fix Version/s 2.4.1 [ 16188 ]
        Hide
        Mauro Talevi added a comment -

        Added documentation page "Building Source" in "About" section.

        Show
        Mauro Talevi added a comment - Added documentation page "Building Source" in "About" section.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Elizabeth Keogh

            Dates

            • Created:
              Updated:
              Resolved: