Set up Static Dependency

Version 4 by Robin Shen
on Nov 27, 2009 14:54.


compared with
Current by Robin Shen
on Nov 27, 2009 15:10.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 2 changes. View first change.

 h1. Situation
 ProductA and componentA build independently as different projects. During build process of productA, build result of specified version of componentA should be retrieved and used. This specified version will not change even if componentA has a new version.
  
 h1. Demonstration
 # Visit the demo project [productA|http://demo.pmease.com/build/62.latest/], and hover mouse over the dependencies link in the build summary section, and you will see that current build depends on version _1.0.10_ of componentA.
 # Switch to [componentA|http://demo.pmease.com/build/61.latest/], and click the run button to generate a new version of componentA.
 # Switch back to [productA|http://demo.pmease.com/build/62.latest/], and click the run button to build productA. When build finishes, examine its dependency again, and it is still using version _1.0.10_ of componentA.
  # Switch back to [productA|http://demo.pmease.com/build/62.latest/], and click the run button to build productA. When build finishes, examine the dependency again, and it is still using version _1.0.10_ of componentA.
  
 h1. Resolution
 # Visit [repositories definition of productA|http://demo.pmease.com/setting/repositories/62/]. There are two repositories defined: _component-a_ and _product-a_. Repository _product-a_ is used to retrieve source code of productA from SCM, while repository _component-a_ is used to retrieve build result of componentA. Repository _component-a_ is defined to retrieve all published artifacts from version _1.0.10_ of componentA.
  # Visit [repositories definition of productA|http://demo.pmease.com/setting/repositories/62/]. There are two repositories defined: _component-a_ and _product-a_. Repository _product-a_ is used to retrieve source code of productA from SCM, while repository _component-a_ is used to retrieve build result of componentA. Repository _component-a_ is defined to retrieve all published jars from version _1.0.10_ of componentA.
 # Visit [step definitions of productA|http://demo.pmease.com/setting/steps/execution/62/]. Two checkout steps are defined to checkout repository _product-a_ and _component-a_ respectively.