Giter Site home page Giter Site logo

xianghang07 / openemm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ronoaldo/openemm

0.0 1.0 0.0 33.19 MB

This repository is no longer mantained. Please consider it as an exercise to use Maven as part of a non-maven codebase. Use upstream software releases from Agnitas https://www.agnitas.de/

License: Other

CSS 2.37% JavaScript 33.72% C 6.03% Shell 0.43% Objective-C 4.75% C++ 0.03% Python 2.90% PHP 0.49% Java 47.17% ColdFusion 1.18% Perl 0.34% ASP 0.41% Lasso 0.19%

openemm's Introduction

OpenEMM

This is a fork of the OpenEMM project (http://www.openemm.org).

The main goal of this fork is to allow the project to be built from source, following the best practices from both Maven project layout standard, and the Debian/RPM packaging specifications.

Proposals

  1. Use Maven as build tool, since most of the source code is Java. This will ease the process of building the project from source. Also, the maven lifecycle management will help with running unit and integration tests, as well as generate Deb and RPM packages as a build artifact.

  2. Add deb/rpm packaging, probably after the build from Maven complete, to avoid hard-coded paths and make the instalation and setup easier.

Developing with Eclipse

Builds from Maven are available as an experimental feature from the ''maven'' branch (or ''mvn'' bookmark). You can clone the repository, and import the project into Eclipse by issuing the following commands:

hg clone https://bitbucket.org/ronoaldo/openemm
cd openemm
hg up -C maven
mvn eclipse:eclipse

This will generate Eclipse project files for each project, and configure the workspace to allow running openemm and openemm-ws as a Dynamic Web Project under Tomcat.

If you work with Git, you can also checkout the sources from Github:

git clone https://github.com/ronoaldo/openemm.git

Running the development server

To make testing and running a local copy of OpenEMM easier, we have setup some development server support. In order to run the server from your maven project, follow those steps:

  1. Setup a database locally. You need a MySQL server, with the openemm database created. Reffer to the OpenEMM Admin Guide for details on what files you must load.
  2. Configure openemm/etc/dev.propertes. See openemm/etc/dev.properties.sample as a starting point.
  3. Run the script openemm/src/main/scripts/devserver to launch the local server. Alternatively, you can run it by calling mvn pre-integration-test

To stop the server hit CTRL+C from the shell.

Currently only the OpenEMM front-end server is launched from this script. You must start the backend manually.

To start the WebServices app, run the following from the project root:

mvn clean install
mvn -pl openemm-ws clean tomcat6:run

The default port used by both applications is 9090.

Dependencies

To build a distribution zip, you may need to install some dependencies, and build with maven:

sudo apt-get install libxml2-dev libmilter-dev maven
mvn clean package

This will generate the binary zipball at distribution/target. The binary zipball contains itself the project webapps as war files to be easily deployed on Tomcat, and a zip file containing the backend code, that you can extract into /home/openemm as recomended by the upstream developers.

This procedure is still being tested, but as the build with maven reproduces the same procedures executed by the ant build file, everithing should work fine.

openemm's People

Contributors

ronoaldo avatar antonmelser avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.