Skip to content

Commit 01e14fb

Browse files
committed
重新分了模块,并添加了readme
1 parent 3621458 commit 01e14fb

File tree

18 files changed

+87
-50
lines changed

18 files changed

+87
-50
lines changed

cockroach-annotation/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cockroach-core
2+
3+
cockroach 核心部分,主要包含了核心的爬虫代码,包括: 队列、http客户端、解析器 等等

cockroach-annotation/cockroach-annotation.iml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3-
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="false">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
44
<output url="file://$MODULE_DIR$/target/classes" />
55
<output-test url="file://$MODULE_DIR$/target/test-classes" />
66
<content url="file://$MODULE_DIR$">
77
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
88
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9-
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
109
<excludeFolder url="file://$MODULE_DIR$/target" />
1110
</content>
1211
<orderEntry type="inheritedJdk" />
@@ -23,7 +22,6 @@
2322
<orderEntry type="library" name="Maven: org.jsoup:jsoup:1.11.2" level="project" />
2423
<orderEntry type="library" name="Maven: cn.wanghaomiao:JsoupXpath:0.3.2" level="project" />
2524
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.3.2" level="project" />
26-
<orderEntry type="module" module-name="cockroach-common" />
2725
<orderEntry type="library" name="Maven: log4j:log4j:1.2.17" level="project" />
2826
</component>
2927
</module>

cockroach-common/cockroach-common.iml

Lines changed: 0 additions & 16 deletions
This file was deleted.

cockroach-common/pom.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

cockroach-core/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cockroach-annotation
2+
3+
cockroach 注解部分,主要实现了注解的定义以及注解的解析

cockroach-core/cockroach-core.iml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3-
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="false">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
44
<output url="file://$MODULE_DIR$/target/classes" />
55
<output-test url="file://$MODULE_DIR$/target/test-classes" />
66
<content url="file://$MODULE_DIR$">
77
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
88
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9-
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
109
<excludeFolder url="file://$MODULE_DIR$/target" />
1110
</content>
1211
<orderEntry type="inheritedJdk" />
@@ -22,7 +21,6 @@
2221
<orderEntry type="library" name="Maven: org.jsoup:jsoup:1.11.2" level="project" />
2322
<orderEntry type="library" name="Maven: cn.wanghaomiao:JsoupXpath:0.3.2" level="project" />
2423
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.3.2" level="project" />
25-
<orderEntry type="module" module-name="cockroach-common" />
2624
<orderEntry type="library" name="Maven: log4j:log4j:1.2.17" level="project" />
2725
</component>
2826
</module>

cockroach-core/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636
<artifactId>JsoupXpath</artifactId>
3737
<version>0.3.2</version>
3838
</dependency>
39-
<dependency>
40-
<groupId>com.github.zhangyingwei</groupId>
41-
<artifactId>cockroach-common</artifactId>
42-
<version>1.0.5.03-Beta</version>
43-
</dependency>
4439
</dependencies>
4540

4641
</project>

cockroach-common/src/main/java/com/zhangyingwei/cockroach/exception/HttpException.java renamed to cockroach-core/src/main/java/com/zhangyingwei/cockroach/common/exception/HttpException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.zhangyingwei.cockroach.exception;
1+
package com.zhangyingwei.cockroach.common.exception;
22

33
import com.zhangyingwei.cockroach.common.utils.CockroachUtils;
44

cockroach-core/src/main/java/com/zhangyingwei/cockroach/executer/response/TaskResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import cn.wanghaomiao.xpath.exception.XpathSyntaxErrorException;
44
import cn.wanghaomiao.xpath.model.JXDocument;
5-
import com.zhangyingwei.cockroach.exception.HttpException;
5+
import com.zhangyingwei.cockroach.common.exception.HttpException;
66
import com.zhangyingwei.cockroach.executer.task.Task;
77
import com.zhangyingwei.cockroach.queue.CockroachQueue;
88
import com.zhangyingwei.cockroach.common.utils.CockroachUtils;

0 commit comments

Comments
 (0)