I am working on a tool to perform a p2 installation similar to the p2 DirectorApplication. I am having problems, when the URI of the artifact repository points to a site location using the http protocol. The download of the artifacts stops running at some point and the operation status is set to the severity IStatus.CANCEL. (Using the file protocol this error does not occur.)
I can not verify this with debugging because the "abort" does not happen in this mode. I found a piece of code in the SimpleArtifactRepository.getArtifacts where multiple Jobs are started to download the requested artifacts. If I manualy set the numberOfJobs to 1 the "abort" also doesn't happen.
I am not sure what the reason for this could be. I would be satisfied with a possibility to set the maximum number of threads to 1. There is a property, that is evaluated by SimpleArtifactRepository.getMaximumThreads for this use cased: PROP_MAX_THREADS (eclipse.p2.max.threads).
I can't locate the correct place to set this property though. Any hints are very welcome!