JBehave
  1. JBehave
  2. JBEHAVE-402

The sourceDirectory property of the jbehave-maven-plugin is read-only in maven 2.2.1

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.2
    • Component/s: Maven Plugin
    • Labels:
      None
    • Environment:
      Maven 2.2.1
    • Number of attachments :
      0

      Description

      Modifying the sourceDirectory and testSourceDirectory properties works as expected under Maven 3 but a error occurs under Maven 2.2.1 "ERROR: Cannot override read-only parameter: sourceDirectory in goal: jbehave:run-stories-as-paths"

      Upgrading to Maven 3 is currently not a option as this was discovered by a CI build running in Hudson and it does not support Maven 3 as a project type.

        Activity

        Hide
        Mauro Talevi added a comment -

        Hi Alan, we can make the sourceDirectory not read-only, but why would you need that?

        Show
        Mauro Talevi added a comment - Hi Alan, we can make the sourceDirectory not read-only, but why would you need that?
        Hide
        Alan Parkinson added a comment -

        I'm currently using the run-stories-as-paths goal with my stories located in /src/main/resources
        I can see from the examples that the stories are mixed with the source code but I haven't done this out of habit and I have other configuration files stored in the resources folder.

        The documentation (http://jbehave.org/reference/stable/maven-goals.html) also didn't indicate that this property couldn't be modified.

        If there is a better way to layout my project I'm happy to listen

        Show
        Alan Parkinson added a comment - I'm currently using the run-stories-as-paths goal with my stories located in /src/main/resources I can see from the examples that the stories are mixed with the source code but I haven't done this out of habit and I have other configuration files stored in the resources folder. The documentation ( http://jbehave.org/reference/stable/maven-goals.html ) also didn't indicate that this property couldn't be modified. If there is a better way to layout my project I'm happy to listen
        Mauro Talevi made changes -
        Field Original Value New Value
        Summary The sourceDirectory propertey of the jbehave-maven-plugin is read-only in maven 2.2.1 The sourceDirectory property of the jbehave-maven-plugin is read-only in maven 2.2.1
        Fix Version/s 3.2 [ 16757 ]
        Fix Version/s 3.x [ 16979 ]
        Hide
        Mauro Talevi added a comment -

        Allowed sourceDirectory and testSourceDirectory to be not read-only.

        Show
        Mauro Talevi added a comment - Allowed sourceDirectory and testSourceDirectory to be not read-only.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Alan Parkinson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: