skadistats / clarity-examples

Example code for clarity
BSD 3-Clause "New" or "Revised" License
113 stars 37 forks source link

Can't run example (missing main class error) #18

Closed GreenIreland closed 8 years ago

GreenIreland commented 8 years ago

Hello! Explain me please what i am doing wrong. I am not java developer (.net) but i want to use your perfect framework parse system. So I stucked at beginning stage after build.

Tech info: Apache Maven 3.3.9 Java version: 1.8.0_71, vendor: Oracle Corporation OS name: "windows 8.1", version: "6.3", arch: "x86", family: "dos"

Got example pom file from : https://github.com/skadistats/clarity-examples/blob/master/pom.xml Ofc didn't modified that.

Run build output image

Run jar output image

I got 2 folders in "target": classes and test-classes. Both are empty.

Just in case... repository folder content is image

Please, help me, what steps i missed ?

spheenik commented 8 years ago

you got to choose the profile you want to build, for example

mvn -P combatlog package

GreenIreland commented 8 years ago

I tried this too. there is no difference unfortunately. Seems, this doesn't work on other profiles too

run dumpbaselines image

spheenik commented 8 years ago

It says "no sources to compile" in your screenshot. It does not suffice to only get the pom.xml. You need to clone the whole project.

To clone: git clone https://github.com/skadistats/clarity-examples.git

or if you prefer, just download and extract https://github.com/skadistats/clarity-examples/archive/master.zip

GreenIreland commented 8 years ago

Thank you! it works now! Can you advice how to configure slf4j.Logger to write file? And .. so, u can close this issue, ty very much

spheenik commented 8 years ago

To change the logging, configure src/main/resources/logback.xml to use a FileAppender. Here is the documentation.

Good luck!