|
59 | 59 | */ |
60 | 60 | final class AetherFactories { |
61 | 61 |
|
| 62 | + static final String BASIC_REPOSITORY_CONNECTOR_FACTORY_FQN = "org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory"; |
| 63 | + |
| 64 | + static final String FILE_TRANSPORTER_FACTORY_FQN = "org.eclipse.aether.transport.file.FileTransporterFactory"; |
| 65 | + |
| 66 | + static final String HTTP_TRANSPORTER_FACTORY_FQN = "org.eclipse.aether.transport.http.HttpTransporterFactory"; |
| 67 | + |
62 | 68 | private static final Log log = LogFactory.getLog(AetherFactories.class); |
63 | 69 |
|
64 | 70 | private static final String MAVEN_LOCAL_REPOSITORY_LOCATION = "maven.repo.local"; |
@@ -134,14 +140,11 @@ public void serviceCreationFailed(Class<?> type, Class<?> impl, Throwable except |
134 | 140 |
|
135 | 141 | // Try to register connector + transporters reflectively, but do not hard-link |
136 | 142 | // them. |
137 | | - registerIfPresent(locator, "org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory", |
138 | | - RepositoryConnectorFactory.class); |
| 143 | + registerIfPresent(locator, BASIC_REPOSITORY_CONNECTOR_FACTORY_FQN, RepositoryConnectorFactory.class); |
139 | 144 |
|
140 | | - registerIfPresent(locator, "org.eclipse.aether.transport.file.FileTransporterFactory", |
141 | | - TransporterFactory.class); |
| 145 | + registerIfPresent(locator, FILE_TRANSPORTER_FACTORY_FQN, TransporterFactory.class); |
142 | 146 |
|
143 | | - registerIfPresent(locator, "org.eclipse.aether.transport.http.HttpTransporterFanewRepositorySystemctory", |
144 | | - TransporterFactory.class); |
| 147 | + registerIfPresent(locator, HTTP_TRANSPORTER_FACTORY_FQN, TransporterFactory.class); |
145 | 148 |
|
146 | 149 | RepositorySystem system = locator.getService(RepositorySystem.class); |
147 | 150 |
|
|
0 commit comments