Closed ggiavelli closed 5 years ago
DKPro Core tries to download models if it doesn't find them on the classpath already.
This can be circumvented in two ways:
dkpro.model.repository.offline
to true
What I don't get is why your installation tries to download the model from Maven Central - DKPro Core should be configured such that it only tries the UKP Maven Repo which is hard-coded in ResourceObjectProviderBase
.
thanks. I added the missing item to my pom. apparently there are 3 model dependencies for nlp4j. I will def turn off autoloading so I can confirm it works on my local windows build. thanks so much for the assist. that will def help me!
took my working code to unix and I got a SSL CERT issue. I'm a bit confused why is it remotely fetching this jar file I must have an error in the pom file. I may not have noticed the fetch somehow on windows where I did the development.
So I need to download this jar as a system file in my POM so it wont try to make a repository fetch?
de.tudarmstadt.ukp.dkpro.core.nlp4j-model-tagger-en-default/20160802.0/de.tudarmstadt.ukp.dkpro.core.nlp4j-model-tagger-en-default-20160802.0.jar
sun.security.validator.ValidatorException: PKIX path building failed
15:28:38.425 [http-nio-8080-exec-8] ERROR de.tudarmstadt.ukp.dkpro.core.api.resources.ResourceObjectProviderBase - Server access error at url https://repo1.maven.org/maven2/de/tudarmstadt/ukp/dkpro/core/de.tudarmstadt.ukp.dkpro.core.nlp4j-model-tagger-en-default/20160802.0/de.tudarmstadt.ukp.dkpro.core.nlp4j-model-tagger-en-default-20160802.0.pom (javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) 15:28:38.501 [http-nio-8080-exec-8] ERROR de.tudarmstadt.ukp.dkpro.core.api.resources.ResourceObjectProviderBase - Server access error at url https://repo1.maven.org/maven2/de/tudarmstadt/ukp/dkpro/core/de.tudarmstadt.ukp.dkpro.core.nlp4j-model-tagger-en-default/20160802.0/de.tudarmstadt.ukp.dkpro.core.nlp4j-model-tagger-en-default-20160802.0.jar