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 { module imdb.spider.core {
//exports ru.bvn13.imdbspider; exports ru.bvn13.imdbspider;
exports ru.bvn13.imdbspider.imdb; exports ru.bvn13.imdbspider.imdb;
exports ru.bvn13.imdbspider.spider.tasker; exports ru.bvn13.imdbspider.spider.tasker;
exports ru.bvn13.imdbspider.exceptions; exports ru.bvn13.imdbspider.exceptions;

View File

@ -217,4 +217,8 @@ public class ApiFactory_1_0 implements ApiFactory {
TaglineProcessor_1_0 getTaglineProcessor() { TaglineProcessor_1_0 getTaglineProcessor() {
return taglineProcessor; 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) { if (task.getCssSelectorResult().size() > 0) {
Elements links = task.getCssSelectorResult().first().parent().select("span > a:contains(See more)"); Elements links = task.getCssSelectorResult().first().parent().select("span > a:contains(See more)");
if (links.size() > 0) { if (links.size() > 0) {
Task newTask = getApiFactory().taskByTaglineListDataType(TaglineListDataType.ELEMENTS) Task newTask = getApiFactory().getTaglineListProcessor().taskByTaglineListDataType(TaglineListDataType.ELEMENTS)
.setParentTask(task) .setParentTask(task)
.setUrl(String.format("%s%s", ApiFactory_1_0.URL_MAIN, links.first().attr("href"))); .setUrl(String.format("%s%s", ApiFactory_1_0.URL_MAIN, links.first().attr("href")));
task.getNestedTasks().add(newTask); task.getNestedTasks().add(newTask);

40
pom.xml
View File

@ -40,6 +40,17 @@
<scope>test</scope> <scope>test</scope>
</dependency> </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> </dependencies>
<build> <build>
@ -61,24 +72,25 @@
<configuration> <configuration>
<release>${java.version}</release> <release>${java.version}</release>
</configuration> </configuration>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.2</version>
</dependency>
</dependencies>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version> <version>2.22.1</version>
<dependencies> <configuration>
<dependency> <argLine>
<groupId>org.ow2.asm</groupId> --illegal-access=permit
<artifactId>asm</artifactId> </argLine>
<version>6.2</version> </configuration>
</dependency> </plugin>
</dependencies> <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>
<plugin> <plugin>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>