<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <parent>
    <groupId>org.neo4j</groupId>
    <artifactId>parent-central</artifactId>
    <version>8</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.neo4j</groupId>
  <artifactId>neo4j-remote-graphdb</artifactId>
  <version>0.8-1.2</version>
  <name>Neo4j - Remote Graph Database</name>
  <description>Remote Graph Database is a tool for introspecting a running Neo4j Graph Database instance from a different process.</description>
  <url>http://components.neo4j.org/${project.artifactId}/${project.version}</url>

  <scm>
    <connection>scm:svn:https://svn.neo4j.org/components/remote-graphdb/tags/0.8-1.2</connection>
    <developerConnection>scm:svn:https://svn.neo4j.org/components/remote-graphdb/tags/0.8-1.2</developerConnection>
    <url>scm:svn:https://svn.neo4j.org/components/remote-graphdb/tags/0.8-1.2</url>
  </scm>

  <properties>
    <bundle.namespace>org.neo4j.remote</bundle.namespace>
    <short-name>remote-graphdb</short-name>
    <agent-main>org.neo4j.remote.Agent</agent-main>
  </properties>
 
  <packaging>bundle</packaging>

  <issueManagement>
    <system>Trac</system>
    <url>https://trac.neo4j.org/query?status=assigned&amp;status=new&amp;status=reopened&amp;component=${short-name}</url>
  </issueManagement>

  <developers>
    <developer>
      <id>tobias</id>
      <name>Tobias Ivarsson</name>
      <email>tobias.ivarsson [at] neotechnology.com</email>
      <timezone>+1</timezone>
      <roles>
        <role>Developer</role>
      </roles>
    </developer>
  </developers>

  <dependencies>
    <dependency>
      <groupId>org.neo4j</groupId>
      <artifactId>neo4j-kernel</artifactId>
      <version>1.2-1.2</version>
    </dependency>
    <dependency>
      <groupId>org.neo4j</groupId>
      <artifactId>neo4j-index</artifactId>
      <version>1.2-1.2</version>
    </dependency>
    <dependency>
      <groupId>com.google.protobuf</groupId>
      <artifactId>protobuf-java</artifactId>
      <version>2.3.0</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <mainClass>${agent-main}</mainClass>
              <packageName>${bundle.namespace}</packageName>
            </manifest>
            <manifestEntries>
              <url>http://neo4j.org</url>
              <Agent-Class>${agent-main}</Agent-Class>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>idlj-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <compiler>idlj</compiler>
          <sources>
            <source>
              <packagePrefixes>
                <packagePrefix>
                  <type>remote_neo4j</type>
                  <prefix>org.neo4j.remote.impl.corba</prefix>
                </packagePrefix>
              </packagePrefixes>
              <compatible>false</compatible>
              <emitStubs>true</emitStubs>
              <emitSkeletons>true</emitSkeletons>
            </source>
          </sources>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-sources</id>
            <phase>generate-sources</phase>
            <configuration>
              <tasks>
                <mkdir dir="target/generated-sources/protobuf" />
                <exec executable="bin/protoc">
                  <arg value="--java_out=target/generated-sources/protobuf" />
                  <arg value="src/main/protobuf/RemoteNeo.proto" />
                </exec>
              </tasks>
              <sourceRoot>target/generated-sources/protobuf</sourceRoot>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.mycila.maven-license-plugin</groupId>
        <artifactId>maven-license-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <!-- exclude broken inspect API from JavaDoc until fixed -->
          <excludePackageNames>org.neo4j.remote.inspect:*.impl.*</excludePackageNames>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  <distributionManagement>
    <site>
      <id>neo4j-site</id>
      <url>scpexe://components.neo4j.org/home/neo/components/${project.artifactId}/${project.version}</url>
    </site>
  </distributionManagement>

</project>

