Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.6
    • Component/s: project-team
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      4

      Description

      The maven POM reference contains a picUrl property: http://maven.apache.org/pom.html#Developers

      <properties>
      <picUrl>http://tinyurl.com/prv4t</picUrl>
      </properties>

      The attached lets the team-report mojo automatically add a Picture column that adds a table cell that displays the picture

      <td><img src="yourPicUrl"/></td>

      I quickly tried to add a test case but for some reason, the generated Developer model didn't contain the Properties. The plugin works though when running on my project.

      1. MPIR-176_add_picUrl_property_support_with_unit_tests.patch
        16 kB
        Jerome Lacoste
      2. MPIR-176_add_picUrl_property_support.patch
        7 kB
        Jerome Lacoste
      3. project-team-plugin-config-with_pictures.xml
        2 kB
        Jerome Lacoste
      4. team-list.html
        4 kB
        Jerome Lacoste

        Activity

        Hide
        Jerome Lacoste added a comment -

        The test file I tried to use for testing the new feature.

        Show
        Jerome Lacoste added a comment - The test file I tried to use for testing the new feature.
        Hide
        Jerome Lacoste added a comment -

        The team-list.html generated by

        mvn install
        mkdir tmp
        cd tmp
        cp ../src/test/resources/plugin-configs/project-team-plugin-config-with_pictures.xml pom.xml

        (comment out <build> node in pom.xml)

        mvn project-info-reports:project-team

        Show
        Jerome Lacoste added a comment - The team-list.html generated by mvn install mkdir tmp cd tmp cp ../src/test/resources/plugin-configs/project-team-plugin-config-with_pictures.xml pom.xml (comment out <build> node in pom.xml) mvn project-info-reports:project-team
        Hide
        Jerome Lacoste added a comment -

        New patch with unit tests.

        Show
        Jerome Lacoste added a comment - New patch with unit tests.
        Hide
        Kristian Rosenvold added a comment -

        Fixed with unit test in r1401610.

        We now support properties/picUrl as well as gravatar.com for the email address

        Show
        Kristian Rosenvold added a comment - Fixed with unit test in r1401610. We now support properties/picUrl as well as gravatar.com for the email address

          People

          • Assignee:
            Kristian Rosenvold
            Reporter:
            Jerome Lacoste
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: