<?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">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>net.oneandone.maven.poms</groupId>
    <artifactId>foss-parent</artifactId>
    <version>1.4.8</version>
    <relativePath />
  </parent>

  <name>Pommes</name>
  <description>Database for pom files. You can search it and perform bulk-svn operations.</description>

  <groupId>net.oneandone</groupId>
  <artifactId>pommes</artifactId>
  <version>2.2.0</version>

  <packaging>jar</packaging>

  <properties>
    <wsd.ypid>20084</wsd.ypid>

    <guava.version>14.0.1</guava.version>
    <oneandone.java.source>1.7</oneandone.java.source>
    <oneandone.java.target>1.7</oneandone.java.target>

    <enforcer.skip>true</enforcer.skip>

    <!-- disabled because it complain about comment-only code blocks -->
    <pmd.skip>true</pmd.skip>

    <!-- too picky -->
    <cpd.skip>true</cpd.skip>

    <!-- TODO: fails with Java 8 -->
    <findbugs.skip>true</findbugs.skip>

    <netbeans.hint.jdkPlatform>JDK_1.7</netbeans.hint.jdkPlatform>
    <maven-checkstyle-plugin.suppressionsLocation>${basedir}/src/conf/checkstyle-suppressions.xml</maven-checkstyle-plugin.suppressionsLocation>
    <surefire.forkCount>0</surefire.forkCount>
  </properties>


  <url>https://github.com/mlhartme/pommes</url>

  <scm>
    <url>https://github.com/mlhartme/pommes</url>
    <connection>scm:git:ssh://git@github.com/mlhartme/pommes.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/mlhartme/pommes.git</developerConnection>
    <tag>pommes-2.2.0</tag>
  </scm>

  <developers>
    <developer>
      <name>Michael Hartmeier</name>
      <id>mlhartme</id>
      <url>http://github.com/mlhartme/</url>
      <organization>1 &amp; 1 Internet AG</organization>
      <organizationUrl>https://github.com/1and1</organizationUrl>
      <roles>
        <role>developer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
  </developers>

  <dependencies>
    <dependency>
      <groupId>net.oneandone</groupId>
      <artifactId>sushi</artifactId>
      <version>2.8.17</version>
    </dependency>
    <dependency>
      <groupId>org.tmatesoft.svnkit</groupId>
      <artifactId>svnkit</artifactId>
      <version>1.8.5</version>
    </dependency>
    <dependency>
      <groupId>net.oneandone.maven</groupId>
      <artifactId>embedded</artifactId>
      <version>3.8.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.lucene</groupId>
      <artifactId>lucene-core</artifactId>
      <version>4.9.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.lucene</groupId>
      <artifactId>lucene-queryparser</artifactId>
      <version>4.9.0</version>
    </dependency>

    <!-- TODO: because dependencyManagement excludes it from httpcomponent!? And sets to to provided!? -->
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.3</version>
      <!-- TODO: override 'provided' from dependency management -->
      <scope>runtime</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>net.oneandone.maven.plugins</groupId>
        <artifactId>application</artifactId>
        <version>1.5.1</version>
        <configuration>
          <name>pommes</name>
          <main>net.oneandone.pommes.cli.Main</main>
          <remove>META-INF/pominfo.properties, META-INF/wsd.properties, META-INF/LICENSE, META-INF/LICENSE.txt, META-INF/NOTICE, META-INF/NOTICE.txt, META-INF/DEPENDENCIES, about.html</remove>
          <overwrite>META-INF/sisu/javax.inject.Named, META-INF/services/org.apache.lucene.codecs.PostingsFormat</overwrite>
          <concat>META-INF/services/org.apache.lucene.codecs.PostingsFormat</concat>
          <equal>com/jcraft/jsch/agentproxy/**.*</equal>

          <!-- for upload -->
          <symlink>${env.WSDTOOLS_HOME}/bin/pommes</symlink>
          <target>${env.WSDTOOLS_HOME}/pommes</target>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
     </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>java8</id>
      <activation>
        <jdk>1.8</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <additionalparam>-Xdoclint:syntax</additionalparam>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <reporting>
        <plugins>
          <plugin>
            <!-- javadoc 8 is way too picky ... -->
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <additionalparam>-Xdoclint:syntax</additionalparam>
            </configuration>
          </plugin>
        </plugins>
      </reporting>
    </profile>
  </profiles>
</project>
