Skip to content
Freifunk API Query Client
Java
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dm4-freifunk-api
LICENSE
README.md

README.md

query.api.freifunk.net

Freifunk API Query Client

Development setup

  1. Install dependencies

Java JDK 1.7, Maven 3

  1. Build DeepaMehta
git clone git://github.com/jri/deepamehta.git
cd deepamehta
mvn install -P all
  1. Setup for Hot-Deployment

Complete Instructions: https://trac.deepamehta.de/wiki/PluginDevelopmentGuide

In DeepaMehta's pom.xml: add the plugin's target directory (here: /home/mt/query/query.api.freifunk.net/dm4-ffapi-import/target) to the felix.fileinstall.dir property's CDATA section. Important: don't forget to append a comma to the previous line:

<project>
    ...
    <felix.fileinstall.dir>
        <![CDATA[
            ${project.basedir}/modules/dm4-core/target,
            ${project.basedir}/modules/dm4-webservice/target,
            ${project.basedir}/modules/dm4-webclient/target,
            ...
            ${project.basedir}/modules/dm4-storage-neo4j/target,
            /home/mt/query/query.api.freifunk.net/dm4-freifunk-api/target
        ]]>
    </felix.fileinstall.dir>
    ...
</project>

Now start DeepaMehta. In the directory deepamehta (where you've build):

mvn pax:run 

In the Plugin directory (here: /home/mt/query/query.api.freifunk.net/dm4-freifunk-api run:

mvn clean package

The package should now appear in DeepaMehta

[~/query/query.api.freifunk.net/dm4-ffapi-import]$ mvn clean package                       *[master] 
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Freifunk API Data 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ffapi-import ---
[INFO] Deleting /home/mt/query/query.api.freifunk.net/dm4-ffapi-import/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ffapi-import ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ffapi-import ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/mt/query/query.api.freifunk.net/dm4-ffapi-import/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ffapi-import ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/mt/query/query.api.freifunk.net/dm4-ffapi-import/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ffapi-import ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ ffapi-import ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ ffapi-import ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.779s
[INFO] Finished at: Thu Jul 24 21:27:46 CEST 2014
[INFO] Final Memory: 19M/155M
[INFO] ------------------------------------------------------------------------
[~/query/query.api.freifunk.net/dm4-ffapi-import]$                                         *[master]

Eclipse

(tested with Eclipse Luna J2EE edition)

New Project -> Check out Maven Projects from SCM

SCM URL: (git): git://github.com/glycoknob/query.api.freifunk.net

If git is not available install the "SCM URL Install m2e Team provider" for maven git suppor via the link in the interface

This should create a new Eclipse project that uses maven and egit.

Source & JavaDoc for DeepaMehta

To add source and JavaDoc for DeepaMehta...

...do the same as before, but use instead the DeepaMehta repository:

SCM URL: (git): git://github.com/jri/deepamehta.git
You can’t perform that action at this time.