Setting up Eclipse - 2.1.0

Hi guys,

It’s nice to find this place.

I am a freelance financial risk management consultant (and aspiring entrepreneur) for insurance companies in Asia Pacific (based in Hong Kong) and I’d like to build a cloud-based analytics platform to help clients with ALM issues particularly around strategic asset allocation. I recently learned about OpenGamma and I really like what I see.

I currently have some very basic foundations around analytics and data visualisation set up and running on Amazon Web Services and I’m moving into some market risk modelling. I’m new to web app development, but am encouraged that I’m on the right track because my development environment is similar to yours:

  • Apache Tomcat 7
  • Eclipse Java EE IDE for Web Developers
  • Version: Luna Service Release 1 (4.4.1)
  • Apache Maven 3.1
  • Spring MVC
  • Model
    • Apache Commons Math
    • Coherent (my package)
    • (Hopefully) OpenGamma
  • View
    • JSP/Servlets
    • d3.js (for data visualisation)

My OpenGamma installation difficulties may be because I am already using a “bloated” version of Eclipse (not to mention I am new to pretty much all the technologies listed above). I hope you might be able to help.

I am attempting to follow the instructions found here:

I start at Step 2 because I already have Eclipse.

#2. Start Eclipse

  • Start Eclipse, ensuring that you have a brand new workspace
  • Note that the OpenGamma Platform source code must NOT be located inside your Eclipse workspace

I didn’t have a new workspace, so I created one by going to File -> Switch Workspace -> Other…

Now I’m using og-workspace.

#3. Install the Eclipse preferences

  • Go to “File -> Import”
  • Select the “General -> Preferences” option
  • In the popup, click the “Browse…” button
  • Choose the file OG-Platform/eclipse/install/OpenGamma-Eclipse-Preferences.epf
  • Click “Finish”

Done. No noticeable issues so far.

#4. Install the Eclipse plugins

  • Go to “Help -> Install new software…”
  • Click the ‘Add…’ button in the top right
  • Type ‘OpenGamma Eclipse plugins update site’ into the Name: field
  • Type http ://eclipse.opengamma.com/updatesite into the Location: field (Note: Added a space after “http” so it doesn’t render as a link here)
  • Click ‘OK’
  • You should now see a selection of plug-ins available. Click ‘Select All’.
  • Click “Next” and accept any warnings
  • Restart Eclipse if requested to do so

I get some warnings:

Your original request has been modified.
"m2e - Maven Integration for Eclipse" will be ignored because a newer version is already installed. 
"m2e - slf4j over logback logging (Optional)" will be ignored because a newer version is already installed. 
Cannot complete the install because of a conflicting dependency.
Software being installed: Checkstyle configuration plugin for M2Eclipse 1.0.0.201307131355 (com.basistech.m2e.code.quality.checkstyle.feature.feature.group 1.0.0.201307131355)
Software currently installed: Eclipse IDE for Java EE Developers 4.4.1.20140925-1820 (epp.package.jee 4.4.1.20140925-1820)
Only one of the following can be installed at once: 
Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.core 1.4.0.20130601-0317)
Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033)
Maven Integration for Eclipse 1.3.1.20130219-1424 (org.eclipse.m2e.core 1.3.1.20130219-1424)
Cannot satisfy dependency:
From: M2Eclipse Project Configurator for Eclipse Checkstyle 1.0.0.201307131355 (com.basistech.m2e.code.quality.checkstyle 1.0.0.201307131355)
To: bundle org.eclipse.m2e.core [1.0.0,1.5.0)
Cannot satisfy dependency:
From: Checkstyle configuration plugin for M2Eclipse 1.0.0.201307131355 (com.basistech.m2e.code.quality.checkstyle.feature.feature.group 1.0.0.201307131355)
To: com.basistech.m2e.code.quality.checkstyle [1.0.0.201307131355]
Cannot satisfy dependency:
From: Eclipse IDE for Java EE Developers 4.4.1.20140925-1820 (epp.package.jee 4.4.1.20140925-1820)
To: org.eclipse.epp.package.jee.feature.feature.group [4.4.1.20140925-1820]
Cannot satisfy dependency:
From: EPP Java EE IDE Feature 4.4.1.20140925-1820 (org.eclipse.epp.package.jee.feature.feature.group 4.4.1.20140925-1820)
To: org.eclipse.m2e.wtp.jpa.feature.feature.group 0.0.0
Cannot satisfy dependency:
From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.0.20140606-0033 (org.eclipse.m2e.feature.feature.group 1.5.0.20140606-0033)
To: org.eclipse.m2e.core [1.5.0.20140606-0033]
Cannot satisfy dependency:
From: m2e-wtp - JPA configurator for WTP (Optional) 1.1.0.e43-20140611-1648 (org.eclipse.m2e.wtp.jpa.feature.feature.group 1.1.0.e43-20140611-1648)
To: org.eclipse.m2e.feature.feature.group 1.5.0

Now that I examine this (the first time, I merrily brushed passed this), I suspect the issues are indeed because I already have a bloated version of Eclipse installed. However, this is the version AWS recommends for building my web app and I’d like to stick with it if possible.

Can you think of some workarounds?

I don’t think I need the full functionality of OpenGamma. I could use just the asset models and maybe curves for the time being.

Any help would be appreciated. Thanks!

Best wishes,
Eric

FYI. I had some success adding OpenGamma to my project.

Taking a clue from:

I added the following to my current project’s pom.xml:

    <dependency>
        <groupId>com.opengamma.platform</groupId>
        <artifactId>og-client</artifactId>
        <version>2.1.0</version>
    </dependency>

It seems to have loaded the dependencies. Now the fun begins :smile:

The error messages are simply complaining about conflicting versions of Eclipse plugins around m2e and checkstyle. You will need m2e (but it seems you have a later version anyway). The checkstyle plugin is necessary only if contributing code back to OpenGamma. If you feel you want to install it, you’ll need to serach the web to find a later/compatible version of m2e checkstyle.

1 Like