Ok I will include each plugin seperately. I haven't done this before, so
will checkout the maven site. Funny enough, maven did not complain with
the dependency as I had it.

 

Should the struts plugins not all be included in the final version of
Appfuse 2 and let users do exclusions of unwanted stuff ?

 

Travers 

 

________________________________

From: Michael Horwitz [mailto:[EMAIL PROTECTED] 
Sent: 05 July 2007 09:45 AM
To: [email protected]
Subject: Re: [appfuse-user] struts bundled plugins in appfuse2

 

I took a quick look in the repository, and struts2-plugins is a pom file
only. Including it as you have below should make Maven throw an error -
by default all dependencies are taken to be jar files. You are going to
need to include each plugin you want to use as a separate dependency. 

 

On the subject of transitive dependencies you may need to do some work
to exclude any unwanted dependencies that come in transitively from the
plugins. This does take a bit of fiddling to get things right.

 

Mike.

 

On 7/5/07, Travers Snyman <[EMAIL PROTECTED]> wrote: 

Thanks Mike

 

I include the following in my project pom.xml

 

        <dependency>

            <groupId>org.apache.struts</groupId>

            <artifactId>struts2-plugins</artifactId>

            <version>${struts.version}</version>

        </dependency>

 

It does not do anything with regards to downloading the plugins (mvn
integration-test). I notice in the m2 local repository, there are
specific artifacts for the codebehind and spring plugins. Also these are
included as modules in the struts2-plugins bundle. Will there not be a
conflict if I eventually get the struts-plugins downloaded? 

 

Thanks 

Travers

________________________________

From: Michael Horwitz [mailto: [EMAIL PROTECTED] 
Sent: 04 July 2007 04:29 PM
To: [email protected]
Subject: Re: [appfuse-user] struts bundled plugins in appfuse2

 

The Struts 2 Spring plugin is also included. To add another plugin,
simply add the dependency to your project's pom.xml . 

Mike.

On 7/4/07, Travers Snyman < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

Am I correct in the understanding that creating a project with the basic
struts archetype, only the struts core and code behind are included in
the project ? If one wanted to use some of the bundled struts 2 plugins
like jasperReports, jfreeChart, sitegraph, etc. how would I do that ?.
Do I add dependencies in the appfuse-struts-2.0-m5.pom or in the
generated pom under my project directory  or is there another way of
using the bundled plugins.

 

Regards

Travers

 

 

Reply via email to