*/
package org.argeo.slc.aether.spring;
-import org.eclipse.aether.repository.Authentication;
import org.eclipse.aether.repository.RemoteRepository;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.FactoryBean;
private String password;
public Object getObject() throws Exception {
+ RemoteRepository remoteRepository = new RemoteRepository.Builder(
+ id != null ? id : beanName, type, url).build();
// FIXME Adapt to changes in Aether
-// RemoteRepository remoteRepository = new RemoteRepository(
-// id != null ? id : beanName, type, url);
-// if (username != null) {
-// Authentication authentication = new Authentication(username,
-// password);
-// remoteRepository.setAuthentication(authentication);
-// }
+ // if (username != null) {
+ // Authentication authentication = new Authentication(username,
+ // password);
+ // remoteRepository.setAuthentication(authentication);
+ // }
return null;
}