On 8/30/06, Attila Mezei-Horvati <[EMAIL PROTECTED]> wrote:
> From: "Henry S. Isidro" <[EMAIL PROTECTED]>
> To: "Maven Users List" <users@maven.apache.org>
> Subject: Re: mvn2: war packaging
> Date: Wed, 30 Aug 2006 07:43:56 +0800
>
> If you're trying to include a jar in the lib folder
> of a war package, just
> declare the jar file as a dependency in the war's
> pom file. This will make
> maven automatically put it in the lib folder during
> packaging.
>
> - Henry

The problem is I am creating the jar file during the
war compilation. As I know, I can specify dependency
only for another pom jar package.

However I am running an ant task to generate code from
xsd files and compiling it. I was hoping I don't have
to move it out to a separate project; I can keep it in
this project and just copy it. Unfortunately copy
works _after_ the war is created and I don't know how
to specify the order (first copy then war). I also
tried to add it as web resource with a targetPath
option. Unfortunately that doesn't work either.

Is there a specific reason for having those files in jar?
If not, I think you may add directory, where you create your
files as 'resource' and files will be copied into 'WEB-INF/classes'
folder.

And yes - the best option will be to create separate subproject.

Regards,
Tomek

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to