Browse Source

fixed build

master
Vyacheslav N. Boyko 4 years ago
parent
commit
4e97bdaf9e
  1. 2
      core/src/main/java/module-info.java
  2. 4
      core/src/main/java/ru/bvn13/imdbspider/spider/api/v1_0/ApiFactory_1_0.java
  3. 2
      core/src/main/java/ru/bvn13/imdbspider/spider/api/v1_0/MovieProcessor_1_0.java
  4. 40
      pom.xml

2
core/src/main/java/module-info.java

@ -1,5 +1,5 @@ @@ -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;

4
core/src/main/java/ru/bvn13/imdbspider/spider/api/v1_0/ApiFactory_1_0.java

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

2
core/src/main/java/ru/bvn13/imdbspider/spider/api/v1_0/MovieProcessor_1_0.java

@ -174,7 +174,7 @@ public class MovieProcessor_1_0 extends AbstractApiProcessor_1_0 { @@ -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

@ -40,6 +40,17 @@ @@ -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 @@ @@ -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>

Loading…
Cancel
Save