Error while importing project to Eclipse

I am seeing the following variable in each and every project in prjects directory while trying to start eclipse after enabling auto build.
What is the way out ?

Error while resolving the ivy instance for ivy.xml in ‘OG Maths’:
Unrecognized variables in the Ivy settings file {workspace_loc:OG Platform/common/ivysettings.xml} Error while resolving the ivy instance for ivy.xml in 'OG Maths': Unrecognized variables in the Ivy settings file {workspace_loc:OG Platform/common/ivysettings.xml}

Have you imported the OG-Platform project after the projects in OG-Platform/projects as detailed in step 5 here? It looks like Eclipse can’t see it.

Yes that was done by me.
Also when i tried to retry step 5 , i got this error message - “Some projects cannot be imported because they already exist in the workspace”

Am seeing this error also when eclipse tries to build workspace
Errors occurred during the build.
Errors running builder ‘Checkstyle Builder’ on project ‘OG Util’.
Could not find /OG Util/OG Platform/common/checkstyle-lax.xml
Could not find /OG Util/OG Platform/common/checkstyle-lax.xml
Could not find /OG Util/OG Platform/common/checkstyle-lax.xml
Could not find /OG Util/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Maths’.
Could not find /OG Maths/OG Platform/common/checkstyle-lax.xml
Could not find /OG Maths/OG Platform/common/checkstyle-lax.xml
Could not find /OG Maths/OG Platform/common/checkstyle-lax.xml
Could not find /OG Maths/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Security’.
Could not find /OG Security/OG Platform/common/checkstyle-lax.xml
Could not find /OG Security/OG Platform/common/checkstyle-lax.xml
Could not find /OG Security/OG Platform/common/checkstyle-lax.xml
Could not find /OG Security/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG LiveData’.
Could not find /OG LiveData/OG Platform/common/checkstyle-lax.xml
Could not find /OG LiveData/OG Platform/common/checkstyle-lax.xml
Could not find /OG LiveData/OG Platform/common/checkstyle-lax.xml
Could not find /OG LiveData/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Core’.
Could not find /OG Core/OG Platform/common/checkstyle-lax.xml
Could not find /OG Core/OG Platform/common/checkstyle-lax.xml
Could not find /OG Core/OG Platform/common/checkstyle-lax.xml
Could not find /OG Core/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Engine’.
Could not find /OG Engine/OG Platform/common/checkstyle-lax.xml
Could not find /OG Engine/OG Platform/common/checkstyle-lax.xml
Could not find /OG Engine/OG Platform/common/checkstyle-lax.xml
Could not find /OG Engine/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Master’.
Could not find /OG Master/OG Platform/common/checkstyle-lax.xml
Could not find /OG Master/OG Platform/common/checkstyle-lax.xml
Could not find /OG Master/OG Platform/common/checkstyle-lax.xml
Could not find /OG Master/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Financial’.
Could not find /OG Financial/OG Platform/common/checkstyle-lax.xml
Could not find /OG Financial/OG Platform/common/checkstyle-lax.xml
Could not find /OG Financial/OG Platform/common/checkstyle-lax.xml
Could not find /OG Financial/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Analytics’.
Could not find /OG Analytics/OG Platform/common/checkstyle-lax.xml
Could not find /OG Analytics/OG Platform/common/checkstyle-lax.xml
Could not find /OG Analytics/OG Platform/common/checkstyle-lax.xml
Could not find /OG Analytics/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Language’.
Could not find /OG Language/OG Platform/common/checkstyle-lax.xml
Could not find /OG Language/OG Platform/common/checkstyle-lax.xml
Could not find /OG Language/OG Platform/common/checkstyle-lax.xml
Could not find /OG Language/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Master DB’.
Could not find /OG Master DB/OG Platform/common/checkstyle-lax.xml
Could not find /OG Master DB/OG Platform/common/checkstyle-lax.xml
Could not find /OG Master DB/OG Platform/common/checkstyle-lax.xml
Could not find /OG Master DB/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Web’.
Could not find /OG Web/OG Platform/common/checkstyle-lax.xml
Could not find /OG Web/OG Platform/common/checkstyle-lax.xml
Could not find /OG Web/OG Platform/common/checkstyle-lax.xml
Could not find /OG Web/OG Platform/common/checkstyle-lax.xml
Errors running builder ‘Checkstyle Builder’ on project ‘OG Examples’.
Could not find /OG Examples/OG Platform/common/checkstyle-lax.xml
Could not find /OG Examples/OG Platform/common/checkstyle-lax.xml
Could not find /OG Examples/OG Platform/common/checkstyle-lax.xml
Could not find /OG Examples/OG Platform/common/checkstyle-lax.xml

Do you actually see a project called ‘OG Platform’ in your Package Explorer?

Yes i do actually see a OG-Platform project.
ScreenShot - http://twitpic.com/8f3qsn

I’m not actually sure what’s causing this. I know I’ve seen it before, but I can’t remember what causes it. I’d suggest starting with a completely blank workspace and starting the import again double-checking each step.

I’ve sent your error dump out to the team, but no one has come up with any ideas so far. Let me know if you’re still stuck and I’ll see what I can work out.

If you do want me to look further can you give me some indications of your setup - e.g. OS (looks like Linux from your screenshot), RAM, exact version of eclipse, etc?

OS - Ubuntu 11.04
RAM - 4 GB
Eclipse - Indigo

Anyway let me try importing the whole thing once more.

I am pretty sure this has something to with the folder name of the root project in workspace.
Its OG-Platform as the name of the folder in workspace and its “OG Platform” in some of the ivy files.

After tweaking ivy-load.launch (changed “OG Platofrm” to “OG-Platform”)
am seeing this now -
Error while resolving the ivy instance for ivy.xml in ‘OG Financial’:
The ivy settings file ‘file:/home/vineeth/workspace/OG-Platform/common/ivysettings.xml’ could not be parsed: failed to load settings from file:/home/vineeth/workspace/OG-Platform/common/ivysettings.xml: problem in config file: failed to load settings from file:/home/vineeth/workspace/OG-Platform/common/ivysettings-shared.xml: io problem while parsing config file: /home/vineeth/workspace/OG-Platform/common/ivy.shared.default.root (No such file or directory)
Error while resolving the ivy instance for ivy.xml in ‘OG Financial’:
The ivy settings file ‘file:/home/vineeth/workspace/OG-Platform/common/ivysettings.xml’ could not be parsed: failed to load settings from file:/home/vineeth/workspace/OG-Platform/common/ivysettings.xml: problem in config file: failed to load settings from file:/home/vineeth/workspace/OG-Platform/common/ivysettings-shared.xml: io problem while parsing config file: /home/vineeth/workspace/OG-Platform/common/ivy.shared.default.root (No such file or directory)

In ./common/ivysettings-shared.xml
there is this - " "
But then such a file is not to be seen anywhere

I, too, was having “Unrecognized variables in the Ivy settings file” issues.

My hack to allow it to work was to extract ivysettings-local.xml and ivysettings-default-chain.xml from ivy.jar to some location on my filesystem (I chose ~/.ivy2). Then, I replaced ${ivy.default.settings.dir} in OG-Platform/common/ivysettings.xml with that location. I also explicitly set the default cache directory. This approach seems to work for both Eclipse and ant.

It seems that the ivy-load.launch approach is not allowing the variables (${ivy.shared.default.root}) to be respected. I don’t know if you’ll be successful if you continue that approach.

Also, to resolve the checkstyle-lax.xml issues, I modified each .checkstyle file in each project to change the local-check-config location from “/OG Platform/common/checkstyle-lax.xml” to “…/OG-Platform/common/checkstyle-lax.xml”.

Hopefully there’s a much better solution in the pipeline. :slight_smile:

There is one last thing to do.
change
/instance/org.apache.ivyde.eclipse/ivy_conf_path={workspace_loc\\:OG Platform/common/ivysettings.xml} to /instance/org.apache.ivyde.eclipse/ivy_conf_path={workspace_loc\:OG-Platform/common/ivysettings.xml}

in OG-Platform/common/OpenGamma-Eclipse-Preferences.epf

With this my project started working

Ahh, I finally remember where i’ve seen this before. I’m pretty sure this happens only if you put the OG-Platform download inside the workspace folder. Is that where you put it?

When this happened before I put a note after step 2 on the instructions. I’ll look into whether I can apply your tweaks to stop that being an issue for others. Thanks for your patience and for persevering!

Jim

Yes , i use the git plugin to directly download the sources to workspace directory. From there import it.