Can Maven Netbeans plugin support Portal Pack project?

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

Can Maven Netbeans plugin support Portal Pack project?

by Fran555 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We use Netbeans Portal Pack plugin for creating portlet project. Can Maven Netbeans plugin support Portal Pack project?

How can we have the Portal Pack plugin to create portlet project files and store in Maven project? Just don't understand how these two work together.

Re: Can Maven Netbeans plugin support Portal Pack project?

by Milos Kleint-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I've never use portlets myself. So all my comments are based on a
quick scan through netbeans 6.0.
I've installed the portlet support and created a default web application.
the portlet support was added as a webframework from the list. Later I
created a portlet file.. Did I cover the fuctionality or is there
more?

he upcoming 3.1 version of mevenide should cover the webframeworks
support. So it should work with portlets as well.
a few gotchas though. You create a war packaged project first and
enable the webframework(s) later in the project properties dialog. You
need to make sure you have the j2ee level compatible with the
webframework (that's an issue withthe visual web for example, not sure
it matters for portlets). Once you enable the webframework, the
configuration files shall be added to the project and dependencies
added to the pom. If the maven support recognizes the library jars (if
they are in central repo, your local repo or any other repo that is
indexed and registerered in the IDE) you will get correct dependencies
added to the project. If it cannot identify the jars, you get some
dependency stubs that you want to edit later I guess.

you can try out the 3.1 support by downloading it from the daily
builds hudson machine:
http://deadlock.netbeans.org/hudson/job/mevenide/

Regards, let me know if it works as expected or what problems you encountered.

Milos Kleint


On Thu, Apr 24, 2008 at 6:57 AM, Fran555 <franky_ip@...> wrote:

>
>  We use Netbeans Portal Pack plugin for creating portlet project. Can Maven
>  Netbeans plugin support Portal Pack project?
>
>  How can we have the Portal Pack plugin to create portlet project files and
>  store in Maven project? Just don't understand how these two work together.
>  --
>  View this message in context: http://www.nabble.com/Can-Maven-Netbeans-plugin-support-Portal-Pack-project--tp16841557p16841557.html
>  Sent from the mevenide - user mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Can Maven Netbeans plugin support Portal Pack project?

by Fran555 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, I have tried a little on the 3.1 ver, and it looks nice. I also found a maven portlet archetype, which is for portlet project.

Actually I found several portlet archetype, and don't know which one to use. We are using jsf + spring + hibernate for portlet. maven portlet archetype is for  jsr 286 standard, and can we use it for the jsr 168?

there are somethings that I don't quite understand. How is using a maven portlet archetype different from  installing the portlet support to a default web application?

How should I add dependencies for jsf / spring / hibernate? should I copy the library jars to somewhere before adding them from mevenide? All library added to IDE will be copied to maven directory?


Re: Can Maven Netbeans plugin support Portal Pack project?

by Milos Kleint-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, May 5, 2008 at 4:12 PM, Fran555 <franky_ip@...> wrote:
>
>  Ok, I have tried a little on the 3.1 ver, and it looks nice. I also found a
>  maven portlet archetype, which is for portlet project.
>
>  Actually I found several portlet archetype, and don't know which one to use.
>  We are using jsf + spring + hibernate for portlet. maven portlet archetype
>  is for  jsr 286 standard, and can we use it for the jsr 168?

Sorry, no idea. I've never heard of the JSRs and never actually
developed any portlets or web app.


>
>  there are somethings that I don't quite understand. How is using a maven
>  portlet archetype different from  installing the portlet support to a
>  default web application?

Well, the archetype is a maven way of creating a project from
templated. installing the portlet into the default webapp (if you mean
addign the webframework to the maven/ant web project) is a netbeans
way of adding web framework support into a project. It adds
dependencies and configuration files usually.

>
>  How should I add dependencies for jsf / spring / hibernate? should I copy
>  the library jars to somewhere before adding them from mevenide? All library
>  added to IDE will be copied to maven directory?

I'm not sure I follow. the webframework support shall be able to add
the jsf/spring/hibernate dependencies automatically. to get the local
repository populated, do a project build or trigger the "download all
libraries" action on the Libraries node popup menu.

Milos

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email