Skip to content

How to build Elbfisch V3.1 sample applications using Maven

Bernd Schuster edited this page Aug 17, 2020 · 1 revision
  • Elbfisch V3.1 and its further components are available via Maven repository now.

You can learn here:

  • how to download Elbfisch sample programs and get them easily to work using central Maven repository

HINT: A brief description of more elbfisch features you can find here

HINT: A brief lecture you can find here

Prerequisites:

  • java version "1.8.0_101" or later installed on your development machine. Check by
>java -version
  • Apache Maven 3.6.3 or later installed on your development machine. For installation of Maven check here

  • A Development IDE of your choice which has possibility to use Github and Maven Build Management Tool

Steps:

  • There is just one third party dependency 'naturalcli' to be installed to your local maven repository as this can't be received fully automatically:
    • Download naturalcli-1.2.3.jar from Sourceforge repository into a directory of your choice on your machine.
    • Install it to your local maven repository:
mvn install:install-file -Dfile=path-to-downloaded-jar-file -DgroupId=naturalcli -DartifactId=naturalcli -Dversion="1.2.3" -Dpackaging=jar

We have uploaded several sample projects to github. So you can download them from there and the rest will be done automatically by Maven. We will show you the download annd build process as it is done with Eclipse IDE. (There are ore descriptions on how to get a github project with other IDE's on the net, ,too).

Here is a list of examples you can download from Github:

The following steps to download the sample and build it, can be done with each listed sample, just change the github url.

  1. Go to Github (using one of the links above) and copy the Git repositories URL into clipboard.

Copy Github URL

    • Open Eclipse IDE and go to File -> Import...
    • Select Projekt from Git and click Next.

Copy Github URL

3.Select Clone URI and cxlick Next

Copy Github URL

  1. Now insert the copied URI of the Github repository and click Next. You do not need to enter any authentication data Copy repository URI
  2. Now select the master branch and click Next.

Select branch

6.Then enter the location where the project should be saved locally and click Next.

Enter local destination

7.Set option Import as general project and click**Next**.

Maven loaded dependency

  1. Name the local Eclipse project and click Finish

Name project

9 After finishing the import right-click the project and select Configure -> Convert to Maven Project

Convert to maven

Maven will now load all the necessary dependencies. This may take a little moment. After that you can build and execute the sample.

Here you are ! Elbfisch sammple is ready to swim with maven.

Follow "diverse tutorials" concerning Java FX, OPC UA, the Elbfisch console, the VIOSS (versatile IO sub system) used to interface Modbus/TCP, Siemens S7 12xx,15xx, Beckhoff ADS, OPC UA counterparts.

Home

Clone this wiki locally