Maven Archetype Bundles
  1. Maven Archetype Bundles
  2. MARCHETYPES-11

maven-archetype-portlet: Wrong <portlet-class> in portlet.xml

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The <portlet-class> element in portlet.xml generates the wrong portlet class unless you specify MyPortlet as artifactId. The errors lies in the portlet.xml template:

      <portlet-class>$

      {groupId}.${artifactId}</portlet-class>

      The Class of the portlet is constant, namely MyPortlet, so it should instead say:

      <portlet-class>${groupId}

      .MyPortlet</portlet-class>

        Activity

        Nils-Helge Garli created issue -
        Hervé Boutemy made changes -
        Field Original Value New Value
        Project Maven Archetype [ 11095 ] Maven Archetype Bundles [ 12090 ]
        Key ARCHETYPE-86 MARCHETYPES-11
        Component/s Archetypes [ 12127 ]
        Hervé Boutemy made changes -
        Fix Version/s 1.1 [ 16474 ]
        Component/s Maven Portlet Archetype [ 14429 ]
        Hervé Boutemy made changes -
        Fix Version/s 1.1 [ 16474 ]
        Fix Version/s 5 [ 16859 ]
        Anders Hammar made changes -
        Fix Version/s 5 [ 16859 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:07:30 UTC 2015 [ 1428224850959 ]
        Mark Thomas made changes -
        Workflow jira [ 12716922 ] Default workflow, editable Closed status [ 12760177 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:28:17 UTC 2015 [ 1428272897935 ]
        Mark Thomas made changes -
        Workflow jira [ 12954350 ] Default workflow, editable Closed status [ 12991149 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Nils-Helge Garli
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development