Attila Mezei-Horvati 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.
>
> Any ideas?
> thanks,
> Attila
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
Good day to you, Attila,
Specifying to include that jar file using webResouces should have worked.
However, there is a known bug that sometimes, webResources does not work.
You may want to take a look at [1] and try and apply patch2 to your
maven-war-plugin and see if your webResources would then work.
Cheers,
Franz
[1] http://jira.codehaus.org/browse/MWAR-67
--
View this message in context:
http://www.nabble.com/mvn2%3A-war-packaging-tf2186390.html#a6062426
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]