diff --git a/.gitignore b/.gitignore index c0dc326c..d7d63fee 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ target *.iml out/ .idea - +.classpath +.project diff --git a/pom.xml b/pom.xml index b277b38c..e8677435 100644 --- a/pom.xml +++ b/pom.xml @@ -154,26 +154,26 @@ UTF-8 - - org.apache.maven.plugins - maven-dependency-plugin - 2.8 - - - copy-dependencies - package - - copy-dependencies - - - ${project.build.directory}/lib - false - false - true - - - - + + + + + + + + + + + + + + + + + + + + org.apache.maven.plugins maven-resources-plugin diff --git a/webmagic-extension/src/main/java/us/codecraft/webmagic/example/MonitorExample.java b/webmagic-extension/src/main/java/us/codecraft/webmagic/example/MonitorExample.java index 55fa0c84..734f0426 100644 --- a/webmagic-extension/src/main/java/us/codecraft/webmagic/example/MonitorExample.java +++ b/webmagic-extension/src/main/java/us/codecraft/webmagic/example/MonitorExample.java @@ -20,6 +20,7 @@ public class MonitorExample { SpiderMonitor.instance().register(oschinaSpider); SpiderMonitor.instance().register(githubSpider); - + oschinaSpider.start(); + githubSpider.start(); } } diff --git a/webmagic-samples/pom.xml b/webmagic-samples/pom.xml index 3868ddad..c4487b0d 100644 --- a/webmagic-samples/pom.xml +++ b/webmagic-samples/pom.xml @@ -34,6 +34,25 @@ true + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/lib + false + false + true + + + + org.apache.maven.plugins maven-jar-plugin diff --git a/webmagic-scripts/pom.xml b/webmagic-scripts/pom.xml index 41c79ea0..48386380 100755 --- a/webmagic-scripts/pom.xml +++ b/webmagic-scripts/pom.xml @@ -44,25 +44,6 @@ - - org.apache.maven.plugins - maven-dependency-plugin - - - copy-dependencies - package - - copy-dependencies - - - ${project.build.directory}/lib - false - false - true - - - - maven-compiler-plugin