You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2013/01/28 20:55:12 UTC

[jira] [Updated] (WW-3974) Struts 2 Portlet Archetype Not functioning properly

     [ https://issues.apache.org/jira/browse/WW-3974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-3974:
------------------------------

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

{code:xml}
<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> 
{code}

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

  was:
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 :D , and package names still remain as ${package} in the source files.

    
> Struts 2 Portlet Archetype Not functioning properly
> ---------------------------------------------------
>
>                 Key: WW-3974
>                 URL: https://issues.apache.org/jira/browse/WW-3974
>             Project: Struts 2
>          Issue Type: Bug
>         Environment: Linux, netbeans, Intellij IDE, maven
>            Reporter: Lukman
>              Labels: portlet, struts2
>
> Upon generation of a struts2 portlet project via the archetype(struts2-archetype-portlet) i Have the following in my pom 
> {code:xml}
> <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> 
> {code}
> The major point is that it still makes reference to the file on your system :D , and package names still remain as ${package} in the source files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira