JBehave
  1. JBehave
  2. JBEHAVE-507

unpack-view-resources goal requires resources to be in compile scope

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4
    • Component/s: Maven Plugin
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Because I run JBehave in the test scope of the same project that it is testing I cannot use the compile scope for JBehave dependencies.

      However, the maven unpack-view-resources goal requires the resources to be in compile scope. This means that they get included in my final WAR.

      When I switch them to test scope the unpack-view-resources goal doesn't find them.

      I suppose the best fix would be to allow the unpack-view-resources goal to have its scope configured in the same way as the run-stories goals.

        Activity

        Hide
        Caoilte O'Connor added a comment -

        problem dependencies:

        <dependency>
        <groupId>org.jbehave.site</groupId>
        <artifactId>jbehave-site-resources</artifactId>
        <version>$

        {jbehave.site.version}

        </version>
        <type>zip</type>
        </dependency>
        <dependency>
        <groupId>org.jbehave</groupId>
        <artifactId>jbehave-core</artifactId>
        <version>$

        {jbehave.version}

        </version>
        <classifier>resources</classifier>
        <type>zip</type>
        </dependency>

        Show
        Caoilte O'Connor added a comment - problem dependencies: <dependency> <groupId>org.jbehave.site</groupId> <artifactId>jbehave-site-resources</artifactId> <version>$ {jbehave.site.version} </version> <type>zip</type> </dependency> <dependency> <groupId>org.jbehave</groupId> <artifactId>jbehave-core</artifactId> <version>$ {jbehave.version} </version> <classifier>resources</classifier> <type>zip</type> </dependency>
        Mauro Talevi made changes -
        Field Original Value New Value
        Assignee Mauro Talevi [ maurotalevi ]
        Fix Version/s 3.4 [ 17278 ]
        Affects Version/s web-3.3.1 [ 17313 ]
        Hide
        Mauro Talevi added a comment -

        Changed dependency resolution of Maven goal unpack-view-resources to include test scope.

        No additional configuration is required when using goal.

        Updated the examples view resources to be at test scope and all the examples modules (running either at compile or test scope) can access the view resources.

        Show
        Mauro Talevi added a comment - Changed dependency resolution of Maven goal unpack-view-resources to include test scope. No additional configuration is required when using goal. Updated the examples view resources to be at test scope and all the examples modules (running either at compile or test scope) can access the view resources.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Caoilte O'Connor added a comment -

        Nice one Mauro. You run a tight ship.

        Show
        Caoilte O'Connor added a comment - Nice one Mauro. You run a tight ship.

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Caoilte O'Connor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: