Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public abstract class AbstractModelLoaderTest {

private static final Logger logger = LoggerFactory.getLogger(AbstractModelLoaderTest.class);

private static final String BASE_URL_MODELS_V15 = "https://opennlp.sourceforge.net/models-1.5/";
private static final String BASE_URL_MODELS_V183 = "https://dlcdn.apache.org/opennlp/models/langdetect/1.8.3/";
private static final String BASE_URL_MODELS_V15 = System.getProperty("opennlp.model.v15.base.url", "https://opennlp.sourceforge.net/models-1.5/");
private static final String BASE_URL_MODELS_V183 = System.getProperty("opennlp.model.v183.base.url", "https://dlcdn.apache.org/opennlp/models/langdetect/1.8.3/");
protected static final Path OPENNLP_DIR = Paths.get(System.getProperty("OPENNLP_DOWNLOAD_HOME",
System.getProperty("user.home"))).resolve(".opennlp");
protected static final String VER = "1.3-2.5.4";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public abstract class AbstractModelLoaderTest {

private static final Logger logger = LoggerFactory.getLogger(AbstractModelLoaderTest.class);

private static final String BASE_URL_MODELS_V15 = "https://opennlp.sourceforge.net/models-1.5/";
private static final String BASE_URL_MODELS_V183 = "https://dlcdn.apache.org/opennlp/models/langdetect/1.8.3/";
private static final String BASE_URL_MODELS_V15 = System.getProperty("opennlp.model.v15.base.url", "https://opennlp.sourceforge.net/models-1.5/");
private static final String BASE_URL_MODELS_V183 = System.getProperty("opennlp.model.v183.base.url", "https://dlcdn.apache.org/opennlp/models/langdetect/1.8.3/");
protected static final Path OPENNLP_DIR = Paths.get(System.getProperty("OPENNLP_DOWNLOAD_HOME",
System.getProperty("user.home"))).resolve(".opennlp");
protected static final String VER = "1.2-2.5.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ abstract class AbstractIT extends AbstractUimaTest {

protected static final String BIN = ".bin";

private static final String BASE_URL_MODELS_V15 = "https://opennlp.sourceforge.net/models-1.5/";

private static final String BASE_URL_MODELS_V15 = System.getProperty("opennlp.model.v15.base.url", "https://opennlp.sourceforge.net/models-1.5/");
@BeforeAll
public static void initEnv() throws IOException {
// ensure referenced UD models are present in download home
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ abstract class AbstractNameFinderTest {
protected static final Path OPENNLP_DIR = Paths.get(System.getProperty("OPENNLP_DOWNLOAD_HOME",
System.getProperty("user.home"))).resolve(".opennlp");

private static final String BASE_URL_MODELS_V15 = "https://opennlp.sourceforge.net/models-1.5/";
private static final String BASE_URL_MODELS_V15 = System.getProperty("opennlp.model.v15.base.url", "https://opennlp.sourceforge.net/models-1.5/");

protected static boolean hasOtherAsOutcome(TokenNameFinderModel nameFinderModel) {
SequenceClassificationModel model = nameFinderModel.getNameFinderSequenceModel();
Expand Down
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx2048m -Dorg.slf4j.simpleLogger.defaultLogLevel=off</argLine>
<argLine>-Xmx2048m -Dorg.slf4j.simpleLogger.defaultLogLevel=off -Dopennlp.model.v15.base.url="${opennlp.model.v15.base.url}"</argLine>
<forkCount>${opennlp.forkCount}</forkCount>
<failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
<excludes>
Expand All @@ -364,7 +364,7 @@
</execution>
</executions>
<configuration>
<argLine>-DOPENNLP_DOWNLOAD_HOME=${opennlp.download.home}</argLine>
<argLine>-DOPENNLP_DOWNLOAD_HOME=${opennlp.download.home} -Dopennlp.model.v15.base.url="${opennlp.model.v15.base.url}"</argLine>
<excludes>
<exclude>**/*Test.java</exclude>
</excludes>
Expand Down Expand Up @@ -667,6 +667,7 @@
<id>ci</id>
<properties>
<opennlp.download.home>${project.build.directory}</opennlp.download.home>
<opennlp.model.v15.base.url>https://nightlies.apache.org/opennlp/models-1.5/</opennlp.model.v15.base.url>
</properties>
</profile>

Expand Down