Skip to content

Commit

Permalink
Merge branch 'master' of github.com:neo4j/spatial
Browse files Browse the repository at this point in the history
Conflicts:
	pom.xml
  • Loading branch information
amorgner committed May 6, 2013
2 parents b3497ac + b2f9716 commit fe195d1
Show file tree
Hide file tree
Showing 10 changed files with 360 additions and 60 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Makefile for the Embedded Neo4j Python bindings documentation.
#

# Project Configuration
project_name = manual
language = en

# Minimal setup
target = target
build_dir = $(CURDIR)/$(target)
config_dir = $(CURDIR)/docs/conf
tools_dir = $(build_dir)/tools
make_dir = $(tools_dir)/make

include $(make_dir)/context-manual.make

27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

Neo4j Spatial is a library facilitating the import, storage and querying of spatial data in the [Neo4j open source graph database](http://neo4j.org/).

![Open Street Map](https://raw.github.com/neo4j/spatial/master/src/docs/dev/images/one-street.png "Open Street Map")
This projects manual is deployed as part of the local build as the [Neo4j Spatial Manual](http://neo4j.github.io/spatial)

![Open Street Map](https://raw.github.com/neo4j/spatial/master/src/docs/images/one-street.png "Open Street Map")


Some key features include:
Expand Down Expand Up @@ -117,6 +119,29 @@ Tested with: GeoServer 2.1.1
mvn clean install
~~~


### Building and deploying the docs###

Add your Github credentials in your `~/.m2/settings.xml`

~~~xml
<settings>
<servers>
<server>
<id>github</id>
<username>[email protected]</username>
<password>secret</password>
</server>
</servers>
</settings>
~~~

now do

~~~bash
mvn clean install site -Pneo-docs-build -
~~~

### Deployment into Geoserver ###

* unzip the `target/xxxx-server-plugin.zip` and the Neo4j libraries from your Neo4j download under `$NEO4J_HOME/lib` into `$GEOSERVER_HOME/webapps/geoserver/WEB-INF/lib`
Expand Down
255 changes: 215 additions & 40 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<properties>
<neo4j.version>1.9.RC2</neo4j.version>
<neo4j.java.version>1.6</neo4j.java.version>
<neo4j.graphcollections.version>0.5</neo4j.graphcollections.version>
<geotools.version>8.4</geotools.version>
<spatial.test.osm.version>20100819</spatial.test.osm.version>
Expand All @@ -11,6 +12,7 @@
<blueprints.version>1.2</blueprints.version>
<gremlin.version>1.5</gremlin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<github.global.server>github</github.global.server>
</properties>

<parent>
Expand Down Expand Up @@ -41,6 +43,29 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/filtered-test-sources</outputDirectory>
<resources>
<resource>
<directory>${basedir}/target/filtered-test-sources</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
Expand Down Expand Up @@ -94,35 +119,6 @@
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[2.1,)</versionRange>
<goals>
<goal>copy-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<developers>
<developer>
Expand Down Expand Up @@ -430,19 +426,198 @@
<enabled>true</enabled>
</releases>
</repository>
<!-- <repository>
<id>tinkerpop-snapshot-repository</id>
<name>Tinkerpop snapshot repo</name>
<url>http://tinkerpop.com/maven2</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>-->
</repositories>
<profiles>
<profile>
<id>neo-docs-build</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>docsBuild</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.neo4j.build.plugins</groupId>
<artifactId>neo4j-doctools</artifactId>
<version>13-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-doctools</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<type>jar</type>
<includeArtifactIds>neo4j-doctools</includeArtifactIds>
<outputDirectory>${docs.tools}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-docs</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/src</outputDirectory>
<resources>
<resource>
<directory>src/docs</directory>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-test-sources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/test-sources/${project.artifactId}-test-sources-jar
</outputDirectory>
<resources>
<resource>
<directory>src/test/java</directory>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-configuration</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/conf</outputDirectory>
<resources>
<resource>
<directory>src/docs/conf</directory>
</resource>
</resources>
</configuration>
</execution>

<execution>
<id>filter-asciidoc-files</id>
<phase>post-integration-test</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/docs-filtered</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/docs</directory>
<filtering>true</filtering>
</resource>
</resources>

</configuration>
</execution>
<execution>
<id>copy-filtered-asciidoc-files-back</id>
<phase>post-integration-test</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/docs</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/docs-filtered</directory>
<filtering>false</filtering>
</resource>
</resources>

</configuration>
</execution>
<execution>
<id>copy-generated-files</id>
<phase>post-integration-test</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/src/dev</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/docs</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>execute-asciidoc</id>
<phase>verify</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>make</executable>
<arguments>
<argument>init</argument>
<argument>preview</argument>
<argument>VERSION=${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.8-SNAPSHOT</version>
<configuration>
<message>Creating site for ${project.version}</message>
<outputDirectory>target/html5</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<docs.tools>${project.build.directory}/tools</docs.tools>
<attach-docs-phase>none</attach-docs-phase>
</properties>
</profile>
<profile>
<id>test-default</id>
<activation>
Expand Down
5 changes: 5 additions & 0 deletions src/docs/conf/asciidoc.local.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[attributes]
imagesdir=images
iconsdir=images/icons
imagestargetdir=target/src/images
fontsdir=target/tools/bin/fonts
1 change: 1 addition & 0 deletions src/docs/conf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${project.version}
Loading

0 comments on commit fe195d1

Please sign in to comment.