Hi
Sorry for the wrong info .I just plainly forgot that.
Another work around which can be done with war plugin is to include the
dependency as a web resource entry like :
<build>
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration> <webResources> <resource>
<directory>resource2</directory> </resource> </webResources>
</configuration> </plugin> </plugins> </build>
And manually include the jar file in your project . create a resource2
directory . create services directory . Include the dependency inside that
after creating the dir structure for artifact id .
Try including the jar files in the foll: structure :
-pom.xml
-resource2
- services
-create directories full group id of the dependency ( like
ant/ ant/1.4 etc )
- finally place the jar file
And the directory resource2 is pointed out as a webresource in pom.xml and
thus the generated war file will have the structure :
-WEB-INF
-services
-full directory for the dependency as you have created in services
folder in project.
- jar file
Thanks
Saritha SV
On 11/5/07, Dimitris Kapanidis <[EMAIL PROTECTED]> wrote:
>
> Saritha SV wrote:
> > Hi
> >
> > Inorder to exclude dependencies you can specify scope as provided for
> the
> > dependencies .
> > And to include these dependencies in a different folder please try :
> >
> > <javaModule>
> > <groupId>grupid of dependency</groupId>
> > <artifactId>artifact id of
> > dependency</artifactId>
> > <bundleDir>/service(try giving the path where you
> need
> > the dependency)</bundleDir>
> > </javaModule>
> >
> > Include this in the <modules> tag in maven-war-plugin.
> >
> >
> The <modules> parameter exists only on mave-ear-plugin as far as I know.
>
> > Thanks
> > Saritha
> >
> > On 11/5/07, Saloucious <[EMAIL PROTECTED]> wrote:
> >
> >> Hi,
> >>
> >> I'm packaging a war and all dependencies go into WEB-INF/lib, but i
> would
> >> like to exclude 2 of them and but them into a services dir.
> >>
> >> The target layout I'm after is:
> >>
> >> WAR root
> >> |
> >> |---WEB-INF
> >> | |---lib (with dependencies)
> >> |
> >> |---services (with my 2 excluded dependencies)
> >>
> >> Is it possible to do that ?
> >>
> >> Thanks
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/War-packaging-and-how-to-change-dependencies-directory-tf4752596s177.html#a13589848
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>