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

Struts 2 Portlet Archetype Not functioning properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.12
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: