Whenever ivy resolves and publishes a project, it creates files in the .ivy2 
directory. Specifically, it creates a com.xxx/ directory and drops some xml and 
property files in there and it also creates some com.xxx.-.xml files. For 
example:

com.xxx-base-compile.xml
com.xxx-base-test.xml
Would love to understand what all these files do, but meanwhile... I have a 
requirement for a hermetic build to avoid parallel build conflicts, etc, so 
want to put those files in an _build directory created for a specific build run.

I took one step by creating a 'cache'.

<caches>                                                                        
                                                                                
                                                                            
  <cache name="localRepositoryCacheData" basedir="${ivy.local.cache.basedir}"/> 
                                                                                
                                                                            
</caches>                                                                       
                                                                                
                                                               
and associating the cache with my local resolver:

<filesystem name="local" cache="localRepositoryCacheData">                      
                                                                                
                                                                          
  <ivy pattern="${repository.dir}/[module]/ivy.xml" />                          
                                                                                
                                                                      
  <artifact pattern="${repository.dir}/[module]/[artifact].[ext]" />            
                                                                                
                                                                      
</filesystem>                                                                   
                                                                                
                                                                          
That successfully moved the com.xxx/ directory and nested files to the new 
location, but the com.xxx-base-compile.xml file, for example, still appears in 
the .ivy2 directory. How do I move these to an appropriate place?


Reply via email to