Gecco | Simply highlight items for your tutorial walkthrough | Learning library
kandi X-RAY | Gecco Summary
kandi X-RAY | Gecco Summary
Simply highlight items for your tutorial walkthrough, written in Swift. Gecco means Moonlight in Japanese.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Gecco
Gecco Key Features
Gecco Examples and Code Snippets
@article{le2020scaling,
title={Scaling tree-based automated machine learning to biomedical big data with a feature set selector},
author={Le, Trang T and Fu, Weixuan and Moore, Jason H},
journal={Bioinformatics},
volume={36},
number={1},
Community Discussions
Trending Discussions on Gecco
QUESTION
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:
...ANSWER
Answered 2019-Nov-10 at 10:28Ugh, you've made everything right, the issue is that the class that you're trying to run is in src/test/java...
and not in src/main/java/
. I'll explain.
Maven is pretty advanced build tool, it differentiates between sources that will reach "production" eventually and the tests that are executed during the build process.
More specifically it provides different classpaths for them, so that for tests for example you'll want to have a testing framework in a classpath and for production its irrelevant.
Tests should be tests and not something with "main" method (tests unlike real classes do not have the main method and are driven by testing framework). This is maven's "by-the-book" approach.
But this project for some reason uses the classes with method main in folder that should contain tests (I admin, I've seen this from time to time in other projects as well).
So you need to run the classs with the "classpath" of tests (otherwise maven won't see this class at all), here is how its done:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Gecco
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page