0 Replies Latest reply on Mar 14, 2013 2:06 PM by ashish.mohan_ashish.mohan

    Provisioning agent's repository searching order causing delay

    ashish.mohan_ashish.mohan

      I'm using Fuse Fabric ESB Enterprise to create child containers and deploy application on these containers. I have modified   org.fusesource.fabric.agent/org.ops4j.pax.url.mvn.repositories properties with my repository as the first one followed by default repositories. I'm able to create container and deploy application but problem is that it takes 10-15 minutes to provision one container with just 2 applications.

       

      I've created a local repository like below so that all features are downloaded at local repository and if not available then only fabric should go to download from remote repository.

      fabric:profile-edit --pid org.fusesource.fabric.maven/localRepository=/local/0/test/fusefabric/repo default

       

      I can see that apps being downloaded at local repository but it takes lot of time to download as fabric is searching apps in my repository at the end after searching all other default depositories. Below is the content of org.ops4j.pax.url.mvn.repositories when I run profile-display command.

       

       

      Agent Properties :

                org.ops4j.pax.url.mvn.repositories =  http://myrepository/content/groups/apps@snapshots,

                      http://repo1.maven.org/maven2@id=central,

                      http://repo.fusesource.com/nexus/content/groups/public@id=fusepublic,

                      http://repo.fusesource.com/nexus/content/repositories/releases@id=fusereleases,

                      http://repo.fusesource.com/nexus/content/groups/ea@id=fuseearlyaccess,

                      http://repository.springsource.com/maven/bundles/release@id=ebrreleases,

                      http://repository.springsource.com/maven/bundles/external@id=ebrexternal,

                      http://scala-tools.org/repo-releases@id=scala

       

      Any idea why provisioning agent is searching other repositories before searching my own and hence taking ot of time? I remember initially I had added my repository at the end but then later I corrected it to place at the beginning but agent is still searching other way.