Supplied Maven script for one or multiple portlets?

View: New views
3 Messages — Rating Filter:   Alert me  

Supplied Maven script for one or multiple portlets?

by Glen Mazza :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, is the Maven script on the deploying page (http://portals.apache.org/pluto/v20/deploying.html) meant for just one portlet, or will it work for multiple portlets within the same WAR as well.  It's artifactId (HelloWorldPortlet) implies it should only be used for one portlet but the testsuite and pluto-portal WARs both contain multiple portlets so I'm unsure.

Thanks,
Glen

Re: Supplied Maven script for one or multiple portlets?

by Eric Dalquist :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The deployment is for the entire WAR so you can have as many portlets as
you would like in one webapp.

-Eric

Glen Mazza wrote:

> Hello, is the Maven script on the deploying page
> (http://portals.apache.org/pluto/v20/deploying.html) meant for just one
> portlet, or will it work for multiple portlets within the same WAR as well.
> It's artifactId (HelloWorldPortlet) implies it should only be used for one
> portlet but the testsuite and pluto-portal WARs both contain multiple
> portlets so I'm unsure.
>
> Thanks,
> Glen
>
>  


smime.p7s (4K) Download Attachment

Re: Supplied Maven script for one or multiple portlets?

by Ate Douma :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Glen Mazza wrote:
> Hello, is the Maven script on the deploying page
> (http://portals.apache.org/pluto/v20/deploying.html) meant for just one
> portlet, or will it work for multiple portlets within the same WAR as well.
> It's artifactId (HelloWorldPortlet) implies it should only be used for one
> portlet but the testsuite and pluto-portal WARs both contain multiple
> portlets so I'm unsure.

The artifactId of the example configuration shown should be regarded as just that: an example :)

The deployment always concerns a full portlet (web) *application*, meaning you can combine multiple portlet definitions (all defined in one
portlet.xml) to be deployed as a single set.

It is comparable to deploying a plain web application for which you can define multiple servlets in one web.xml

Regards,

Ate

>
> Thanks,
> Glen
>