Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3974

Struts 2 Portlet Archetype Not functioning properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.12
    • Component/s: None
    • Labels:
    • Environment:

      Linux, netbeans, Intellij IDE, maven

      Description

      Upon generation of a struts2 portlet project via the archetype(struts2-archetype-portlet) i Have the following in my pom

      <plugin>
          <groupId>org.mortbay.jetty</groupId>
          <artifactId>maven-jetty-plugin</artifactId>
          <version>6.1.21</version>
          <configuration>
              <webXml>/Users/lukaszlenart/Projects/Apache/STRUTS_2_3_8/archetypes/struts2-archetype-portlet/target/pluto-resources/web.xml</webXml>
              <webAppConfig>
                  <contextPath>/struts2-archetype-portlet</contextPath>
                  <defaultsDescriptor>/WEB-INF/jetty-pluto-web-default.xml</defaultsDescriptor>
              </webAppConfig>
              <systemProperties>
                  <systemProperty>
                      <name>org.apache.pluto.embedded.portletIds</name>
                      <value>HelloPortlet</value>
                  </systemProperty>
              </systemProperties>
              <scanIntervalSeconds>10</scanIntervalSeconds>
              <scanTargets>
                  <scanTarget>src/main/webapp/WEB-INF</scanTarget>
                  <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
                  <scanTarget>src/main/resources/struts.xml</scanTarget>
              </scanTargets>
          </configuration>
          <dependencies>
              <dependency>
                  <groupId>com.bekk.boss</groupId>
                  <artifactId>maven-jetty-pluto-embedded</artifactId>
                  <version>1.0.1</version>
              </dependency>
          </dependencies>
      </plugin> 
      

      The major point is that it still makes reference to the file on your system , and package names still remain as ${package} in the source files.

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              lukman Lukman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: