I am looking at this project: https://github.com/xtuhcy/gecco
It includes some demo code: https://github.com/xtuhcy/gecco/blob/master/src/test/java/com/geccocrawler/gecco/demo/MyGithub.java
I cloned the repo.
I'm trying to run the demo code but I can't figure out how.
I don't really understand how to use maven.
I managed to install maven and install the dependencies for the project.
mvn verify and mvn test both run without error
I found this article:
http://www.vineetmanohar.com/2009/11/3-ways-to-run-java-main-from-maven/
Which suggests doing something like this:
mvn exec:java -Dexec.mainClass="com.vineetmanohar.module.Main"
But I can't figure how what the value of mainClass should be.
I have tried:
mvn exec:java -Dexec.mainClass="com.geccocrawler.gecco.demo.MyGithub" mvn exec:java -Dexec.mainClass="test.java.com.geccocrawler.gecco.demo.MyGithub" both result in java.lang.ClassNotFoundException
I also tried:
java -cp target/gecco-1.3.1.jar com.geccocrawler.gecco.demo.MyGithub java -cp target/gecco-1.3.1.jar test.java.com.geccocrawler.gecco.demo.MyGithub neither worked