5.2.1 Preparing Eclipse environment


5.2.1        Preparing Eclipse environment

There are many possibilities for generating X-Road data service Java code based on WSDL. Here, we use Apache CXF and Maven components. First, we have to set up Maven in the Eclipse IDE, which we do with Eclipse Marketplace.

An example of generating via CXF:

https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/wsdl_first

  1.  We install the Maven environment:

  • Start Eclipse and select from the menu: Help -> Eclipse Marketplace...

  • Enter into the search bar: “Maven

  • Click: “Go

  • A lot of Maven plugins should appear as a result. For example, select “Maven Tycho Utilities”, click on “Install”.

  • In the next window, check that all the check boxes of the desired elements have been ticked.

Select: “Confirm


  • Select: “I accept the terms of the license agreement
  • Select: “Finish

  • Eclipse will start installing the components. After installation, Eclipse will notify about the need to restart the environment. Let it restart itself. Otherwise, recently installed functions will not be usable.


Before creating a project, check whether JDK 1.8 and Tomcat 8 have been set up in the environment and add if something is missing.

  • Open Window > Preferences > Java >Installed JREs.

  • Make sure that JDK 1.8 is selected.

  • If it is not, select Add > Directory and select the right catalogue in the file system and select “Finish”. Make sure that it is active.


  • Open Window > Preferences > Sever > Runtime Environments.

  • Make sure that Tomcat 8 is selected.

  • If it is not, select Add > Browse and select the right catalogue in the file system and select “Finish”. Make sure that it is active.




Viimati muudetud: esmaspäev, 23. oktoober 2017, 16.20