Hi,

I agree with Tim. If you havn't run 'install' on the changed module, you
should first install it. Then you could use '-U' parameter to force maven to
update the new 'SNATSHOT'. That assumes that the module you have changed is
'SNAPSHOT'.

On Sat, Apr 10, 2010 at 10:01 PM, Tim O'Brien <[email protected]>wrote:

>
>
> On Apr 10, 2010, at 1:38 AM, Vijay Shanker Dubey <[email protected]>
> wrote:
>
>  Hi,
>>
>> I have a multi module web project. Four modules of the project are
>> packaged
>> as jar and added as dependency to the fifth module, which is packaged as
>> war. When it is time to deploy the application i just run package on the
>> war
>> project and my war is created with all the dependencies.
>>
>>
>
> This I'd your problem, you need to run package from a higher level.
>  Running package from the top-level of the multi-module project will fix
> this.
>
>
>  Now there is a problem.
>>
>> One of the my module have heavy changes. Now when i created war for my
>> projects these changes was not reflected in the output war file(the jar in
>> lib folder of war has still the old code).
>>
>> Can you please point the things i am missing from the release process? Why
>> the old code is being packaged with the war?
>>
>>
> Because you were running "package" in a single module, and Maven used the
> version in the local repository.  Run "mvn package" from a higher level in
> the multimodule project.
>
>
>  Can you please point some good resource for real file build process using
>> maven?
>>
>> Regards,
>> Vijay Shanker Dubey
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Garin Yan
________________________________________
Software Engineer, International Service
Founder International Co.,Ltd.
Address: Suzhou International Science Park (Phase V)
         328 Xinghu Rd., Suzhou, Jiangsu, P.R.China, 215123
Tel:+86 512 86665500-7063  Fax:+86 512 87183808  Cell:151 0621 9276
[email protected]  ||  www.founderinternational.com
________________________________________
Enjoying 20 years of success satisfying global leaders with every IT need --
Founder’s 30,000 employees are committed to helping you succeed.

Reply via email to