Re: [Carbon-dev] why do we do "mvn install" instead of "mvn package"

2011-03-27 Thread Sumedha Rubasinghe
On Sun, Mar 27, 2011 at 9:03 PM, Sanjiva Weerawarana wrote:

> The install command triggers the deployment into the local repo- is that a
> necessary step?


It depends on the situation your in.

For example,
- your fixing an issue & if the next step is building the product to get
that change included, 'install' phase is required.
- But, if one is copying the resultant jar file manually, using 'package'
phase is quite sufficient.
- If the chance is significant & running integration tests is a must, then
'package' phase is not enough.

So, it comes down to understanding what maven life cycle[1] is doing &
choosing the appropriate phase based on the situation your in.

/sumedha

[1]
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html


>
> Sanjiva.
> --
> Sanjiva Weerawarana, Ph.D.
> Founder, Chairman & CEO; WSO2, Inc.;  http://wso2.com/
> email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
> 650 265 8311
> blog: http://sanjiva.weerawarana.org/
>
> Lean . Enterprise . Middleware
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] why do we do "mvn install" instead of "mvn package"

2011-03-27 Thread Sanjiva Weerawarana
Let me rephrase that .. can we not have a target that installs the
dependencies into the local repo but not the final products?

Sanjiva.

On Sun, Mar 27, 2011 at 9:03 PM, Sanjiva Weerawarana wrote:

> The install command triggers the deployment into the local repo- is that a
> necessary step?
>
> Sanjiva.
> --
> Sanjiva Weerawarana, Ph.D.
> Founder, Chairman & CEO; WSO2, Inc.;  http://wso2.com/
> email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
> 650 265 8311
> blog: http://sanjiva.weerawarana.org/
>
> Lean . Enterprise . Middleware
>



-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] why do we do "mvn install" instead of "mvn package"

2011-03-27 Thread Sanjiva Weerawarana
The install command triggers the deployment into the local repo- is that a
necessary step?

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev