fixed build

master
Vyacheslav N. Boyko 2019-01-16 00:54:11 +03:00
parent 2af5a129d8
commit 4e97bdaf9e
4 changed files with 32 additions and 16 deletions

View File

@ -1,5 +1,5 @@
module imdb.spider.core {
//exports ru.bvn13.imdbspider;
exports ru.bvn13.imdbspider;
exports ru.bvn13.imdbspider.imdb;
exports ru.bvn13.imdbspider.spider.tasker;
exports ru.bvn13.imdbspider.exceptions;

View File

@ -217,4 +217,8 @@ public class ApiFactory_1_0 implements ApiFactory {
TaglineProcessor_1_0 getTaglineProcessor() {
return taglineProcessor;
}
TaglineListProcessor_1_0 getTaglineListProcessor() {
return taglineListProcessor;
}
}

View File

@ -174,7 +174,7 @@ public class MovieProcessor_1_0 extends AbstractApiProcessor_1_0 {
if (task.getCssSelectorResult().size() > 0) {
Elements links = task.getCssSelectorResult().first().parent().select("span > a:contains(See more)");
if (links.size() > 0) {
Task newTask = getApiFactory().taskByTaglineListDataType(TaglineListDataType.ELEMENTS)
Task newTask = getApiFactory().getTaglineListProcessor().taskByTaglineListDataType(TaglineListDataType.ELEMENTS)
.setParentTask(task)
.setUrl(String.format("%s%s", ApiFactory_1_0.URL_MAIN, links.first().attr("href")));
task.getNestedTasks().add(newTask);

40
pom.xml
View File

@ -40,6 +40,17 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.23.1-GA</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>3.2.7</version>
</dependency>
</dependencies>
<build>
@ -61,24 +72,25 @@
<configuration>
<release>${java.version}</release>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.2</version>
</dependency>
</dependencies>
<configuration>
<argLine>
--illegal-access=permit
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<argLine>
--illegal-access=permit
</argLine>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>