VaadinEditorDevelopersGuide » History » Revision 10
« Previous |
Revision 10/36
(diff)
| Next »
Patrick Plitzner, 09/26/2016 02:35 PM
Taxonomic Editor for Vaadin Developers Guide¶
This page contains all information related to developing the CDM Editor based on Vaadin.
See also: https://dev.e-taxonomy.eu/redmine/projects/edit/wiki/VaadinNotes
- Table of contents
- Taxonomic Editor for Vaadin Developers Guide
Getting started¶
Install maven 3 (if not yet done)
Download the project from ssh://git@dev.e-taxonomy.eu/var/git/cdm-vaadin.git (browse via https://dev.e-taxonomy.eu/gitweb/cdm-vaadin.git)
run mvn install
run mvn eclipse:eclipse
goto Eclipse IDE and import the project
Install Eclipse Jetty plugin (current version 3.9.0). Do not use the outdated plugin run-jetty-run!
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>
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
- Context Path: /cdm-vaadin
- HTTP/HTTPS port: 8080
Launch the jetty launcher
Goto to Browser and browse to
Updated by Patrick Plitzner over 7 years ago · 10 revisions