mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
SPIGOT-7638: Library loader does not seem to resolve every dependency
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -65,6 +65,11 @@ class LibraryLoader
|
|||||||
logger.log( Level.INFO, "Downloading {0}", event.getResource().getRepositoryUrl() + event.getResource().getResourceName() );
|
logger.log( Level.INFO, "Downloading {0}", event.getResource().getRepositoryUrl() + event.getResource().getResourceName() );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
// SPIGOT-7638: Add system properties,
|
||||||
|
// since JdkVersionProfileActivator needs 'java.version' when a profile has the 'jdk' element
|
||||||
|
// otherwise it will silently fail and not resolves the dependencies in the affected pom.
|
||||||
|
session.setSystemProperties( System.getProperties() );
|
||||||
session.setReadOnly();
|
session.setReadOnly();
|
||||||
|
|
||||||
this.repositories = repository.newResolutionRepositories( session, Arrays.asList( new RemoteRepository.Builder( "central", "default", "https://repo.maven.apache.org/maven2" ).build() ) );
|
this.repositories = repository.newResolutionRepositories( session, Arrays.asList( new RemoteRepository.Builder( "central", "default", "https://repo.maven.apache.org/maven2" ).build() ) );
|
||||||
|
Reference in New Issue
Block a user