Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] maven-aether-provider thread safe question and usage from different JVMs

I tried to add the 2 dependencies as below and got build error:
[ERROR] \Aether_Tesla\src\main\java\com\datasynapse\fabric\util\ManualRepositorySystemFactory.java:[33,14] error: cannot access FileProcessor
[ERROR] \Aether_Tesla\src\main\java\com\datasynapse\fabric\util\ManualRepositorySystemFactory.java:[35,14] error: cannot access SyncContextFactory

import org.eclipse.tesla.aether.concurrency.LockingFileProcessor;
import org.eclipse.tesla.aether.concurrency.LockingSyncContextFactory;
...
...
DefaultServiceLocator locator = MavenRepositorySystemUtils.newServiceLocator();
        locator.addService(RepositoryConnectorFactory.class, BasicRepositoryConnectorFactory.class);
        locator.addService(TransporterFactory.class, FileTransporterFactory.class);
        locator.addService(TransporterFactory.class, HttpTransporterFactory.class);

       //concurrent local repo
       locator.addService( FileProcessor.class, LockingFileProcessor.class ); <== here
       locator.addService( SyncContextFactory.class, LockingSyncContextFactory.class ); <== here




On Mon, Dec 2, 2013 at 2:39 PM, Benjamin Bentmann <bentmann@xxxxxxxxxxxx> wrote:
Bk Lau wrote:

Does that mean that I have to use the whole tesla thingy  instead?.

No.


Is there anyway just to wire the tesla-concurrent-localrepo piece instead
of the whole thing?.

Of course, it's just another library/depenendecy to pull in.


Benjamin

_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aether-users


Back to the top