VaadinEditorDevelopersGuide » History » Revision 15
« Previous |
Revision 15/36
(diff)
| Next »
Andreas Kohlbecker, 11/08/2016 10:47 AM
Taxonomic Editor for Vaadin Developers Guide¶
This page contains all information related to developing the CDM Editor based on Vaadin.
See also the VaadinNotes
- Table of contents
- Taxonomic Editor for Vaadin Developers Guide
Getting started¶
Development Environment Setup¶
Requirements¶
- Eclipse IDE: This guide assumes that you are using the Eclipse IDE. For installing and setting up eclipse, please see EclipsePreferencesforTeams
- Maven 3: Install maven either via your packagemanegment or download it from Maven
- Install the Eclipse Jetty Integration plugin (current version 3.9.0). Using the outdated run-jetty-run plugin (http://run-jetty-run.googlecode.com) is not recommended. If you need to use the RunJettyRun plugin for some reasonm make sure you are using version 9.0.0+ which is available via the nightly update site - http://run-jetty-run.googlecode.com/svn/trunk/updatesite-nightly. The reason for the specific version of Jetty is due to the dependency on Servlet 3.0+ API which is used in the project.
- Vaadin Plugin for Eclipse: For details on this plugin see section 2.4.2 from the Book of Vaadin. This plugin provides tools for compiling widgetsets, creating Vaadin specific objects and designing components using the included Vaadin Visual Designer.
Setup¶
Get the cdm-vaadin project source code with
git clone git@dev.e-taxonomy.eu/var/git/cdm-vaadin.git
and build the project with
mvn clean install
A. If you have the m2e eclipse plugin installed: Import the project via File->Import->Maven/Existing Maven Projects ...
B. Otherwise you need to run mvn eclipse:eclipse
and import the project into Eclipse as File->Import->General/Existing Projects into Workspace ...
Now you need to create the configuration files for the data sources:
- In {home}/.cdmlibrary folder create a file cdmlib-remote.properties (if not yet exists) with an entry to a datasource e.g. cdm.datasource=testDataSource
- In the same folder copy/create a datasources.xml with the according datasource (testDataSource) in it:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<bean id="testDataSource" lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
<property name="user" value="user"/>
<property name="password" value="password"/>
<property name="jdbcUrl" value="jdbc:mysql://localhost/testDataSource?autoReconnect=true&autoReconnectForPools=true&"/>
</bean>
</beans>
Import the cdm-vaadin jetty launch configuration in Eclipse by selecting File->Import->Launch Configurations and choosing the cdm-vaadin.launch file in the ide/eclipse directory.
- Goto to run configurations in eclipse, search for cdm-vaadin (Jetty Webapp) run configuration. If you cannot find a launch configuration you have to create one:
- Right-click on Jetty-Webapp->New
- Project: Select the vaadin project
- WebApp folder: src/main/webapp
- HTTP/HTTPS port: 8080
Launch the jetty launcher
Goto to Browser and browse to
Updated by Andreas Kohlbecker over 7 years ago · 15 revisions