UcasRichard / snakeyaml

Automatically exported from code.google.com/p/snakeyaml
Apache License 2.0
0 stars 0 forks source link

SnakeYAML installation/import errors #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

The Docu just says for installation to put the source file into the
classpath !?

I repacked the snakeyaml folder  contents of SnakeYAML-all-1.5.zip into
Snakeyaml-1.5.zip and imported it in Eclipse with File>Import…>Existing
Projects into Workspace>Select archive file.
I get the fallowing errors:

The project cannot be built until build path errors are resolved SnakeYAML
Unknown Java Problem

Unbound classpath variable:
'M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar'
in project 'SnakeYAML' SnakeYAML Build path Build Path Problem

Unbound classpath variable: 'M2_REPO/junit/junit/3.8.2/junit-3.8.2.jar' in
project 'SnakeYAML' SnakeYAML Build path Build Path Problem

Unbound classpath variable:
'M2_REPO/org/springframework/spring/2.5.6/spring-2.5.6.jar' in project
'SnakeYAML SnakeYAML Build path Build Path Problem

What’s wrong?
It seems to be errors from SnakeYAML and not me or Eclipse!

I am working on WindowsVistaUltimateSP2-32-bit with Eclipse Galileo
Packages Eclipse Classic 3.5.1.

Thanks for help,
Rainer

Original issue reported on code.google.com by TheOnlyRainer@gmail.com on 16 Nov 2009 at 7:41

GoogleCodeExporter commented 9 years ago
Please install Maven.
M2_REPO has to be set:
http://maven.apache.org/guides/mini/guide-ide-eclipse.html

Run:
mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
mvn eclipse:eclipse

SnakeYAML-all-1.5.zip is only given as a reference. If you use Maven you just 
need to
add a dependency to your project.

I have changed the installation doc.

Original comment by aso...@gmail.com on 17 Nov 2009 at 10:57

GoogleCodeExporter commented 9 years ago
Even though SnakeYAML does not have any dependencies the tests in SnakeYAML 
still 
require some libraries as you can see the in your error message.

Original comment by py4fun@gmail.com on 18 Nov 2009 at 1:39