<commit_before><?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>io.hawt</groupId>
    <artifactId>project</artifactId>
    <version>1.5-SNAPSHOT</version>
  </parent>

  <artifactId>website</artifactId>
  <packaging>war</packaging>

  <name>${project.artifactId}</name>
  <description>The hawt.io Website and Documentation</description>

  <properties>
    <site-url>ssh:git@github.com:hawtio/hawtio.git</site-url>
    <jettyPort>8000</jettyPort>

    <!-- lets use the latest greatest! :) -->
    <hawtio-release-version>${project.version}</hawtio-release-version>

    <scala-version>2.9.0</scala-version>
<!--
    TODO lets not use 2.10 scala yet as it seems the 1.6.1 distro of scalate borks the scalate plugin
    Or at least I've not figured out yet how to run it! :)
    Wonder if the maven-scalate-plugin_2.10 needs to be called maven-scalate-plugin?

    <scala-version>2.10.0</scala-version>
    <scala-plugin-version>3.1.2</scala-plugin-version>
    <scalate-version>1.6.1</scalate-version>
-->
    <scala-plugin-version>3.0.2</scala-plugin-version>
    <scalate-version>1.5.3</scalate-version>

    <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
  </properties>

  <dependencies>

    <!--
        <dependency>
          <groupId>javax.servlet</groupId>
          <artifactId>servlet-api</artifactId>
          <scope>provided</scope>
        </dependency>
    -->

    <dependency>
      <groupId>org.fusesource.scalate</groupId>
      <artifactId>scalate-page</artifactId>
<!--
      <artifactId>scalate-page_2.10</artifactId>
-->
      <version>${scalate-version}</version>
    </dependency>


    <!--
        <dependency>
          <groupId>org.fusesource.scalate</groupId>
          <artifactId>scalate-wikitext</artifactId>
          <version>${scalate-version}</version>
        </dependency>

        <dependency>
          <groupId>org.fusesource.scalate</groupId>
          <artifactId>scalate-jruby</artifactId>
          <version>${scalate-version}</version>
        </dependency>

        <dependency>
          <groupId>org.fusesource.scalate</groupId>
          <artifactId>scalate-page</artifactId>
          <version>${scalate-version}</version>
        </dependency>

        <dependency>
          <groupId>org.fusesource.scalamd</groupId>
          <artifactId>scalamd</artifactId>
          <version>${scalamd-version}</version>
        </dependency>
    -->

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>${slf4j-version}</version>
    </dependency>

  </dependencies>

  <build>
    <sourceDirectory>${basedir}/ext</sourceDirectory>

    <plugins>
      <plugin>
        <inherited>true</inherited>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <!-- unpack the web app -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.8</version>
        <executions>
          <execution>
            <id>unpack</id>
            <phase>compile</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>io.hawt</groupId>
                  <artifactId>hawtio-web</artifactId>
                  <version>${hawtio-release-version}</version>
                  <type>war</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>${project.build.directory}/sitegen/app</outputDirectory>
                  <excludes>WEB-INF/**, META-INF/**</excludes>
                </artifactItem>
              </artifactItems>
              <excludes>WEB-INF/**, META-INF/**</excludes>
              <outputDirectory>${project.build.directory}/sitegen/app</outputDirectory>
              <overWriteReleases>false</overWriteReleases>
              <overWriteSnapshots>false</overWriteSnapshots>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!-- lets copy any images for the plugins -->
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <phase>generate-resources</phase>
            <configuration>
              <target>
                <!--
                    TODO iterating over the directories doesn't seem to work

                <ac:for param="file" xmlns:ac="antlib:net.sf.antcontrib">
                  <path>
                    <fileset dir="${basedir}/../hawtio-web/src/main/webapp/app" includes="*"/>
                  </path>
                -->
                <!--
                  TODO this list is created via the command:
                      find src/main/webapp/app -name "img" | grep "/doc/"
                      then removing the prefix and postfix :)
                  -->
                <ac:for list="api,camel,core,forcegraph,jboss,jetty,jmx,junit,quartz,tomcat" param="file" xmlns:ac="antlib:net.sf.antcontrib">
                  <sequential>
                    <echo>Processing plugin @{file}</echo>
                    <mkdir dir="${project.build.directory}/sitegen/plugins/@{file}/app/@{file}"/>
                    <copy todir="${project.build.directory}/sitegen/plugins/@{file}/app/@{file}/doc/img">
                      <fileset dir="${basedir}/../hawtio-web/src/main/webapp/app/@{file}/doc/img">
                        <include name="**/*.*"/>
                      </fileset>
                    </copy>
                  </sequential>
                </ac:for>

                <!-- copy the directives site -->
<!--
                <mkdir dir="${project.build.directory}/sitegen/directives"/>
                <copy todir="${project.build.directory}/sitegen/directives">
                  <fileset dir="${basedir}/../hawtio-directives/target/hawtio-directives-${project.version}">
                    <include name="**/*.*"/>
                  </fileset>
                </copy>
-->

                <!-- copy the api docs -->
                <mkdir dir="${project.build.directory}/sitegen/ts-api"/>
                <copy todir="${project.build.directory}/sitegen/ts-api">
                  <fileset dir="${basedir}/../hawtio-api-docs/target/hawtio-api-docs-${project.version}">
                    <include name="**/*.*"/>
                  </fileset>
                </copy>

              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>ant-contrib</groupId>
            <artifactId>ant-contrib</artifactId>
            <version>1.0b3</version>
            <exclusions>
              <exclusion>
                <groupId>ant</groupId>
                <artifactId>ant</artifactId>
              </exclusion>
            </exclusions>
          </dependency>
          <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant-nodeps</artifactId>
            <version>1.8.1</version>
          </dependency>
        </dependencies>
      </plugin>

      <plugin>
        <groupId>net.alchim31.maven</groupId><commit_msg>disble api-docs as they dont work are disable by default<commit_after><?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>io.hawt</groupId>
    <artifactId>project</artifactId>
    <version>1.5-SNAPSHOT</version>
  </parent>

  <artifactId>website</artifactId>
  <packaging>war</packaging>

  <name>${project.artifactId}</name>
  <description>The hawt.io Website and Documentation</description>

  <properties>
    <site-url>ssh:git@github.com:hawtio/hawtio.git</site-url>
    <jettyPort>8000</jettyPort>

    <!-- lets use the latest greatest! :) -->
    <hawtio-release-version>${project.version}</hawtio-release-version>

    <scala-version>2.9.0</scala-version>
<!--
    TODO lets not use 2.10 scala yet as it seems the 1.6.1 distro of scalate borks the scalate plugin
    Or at least I've not figured out yet how to run it! :)
    Wonder if the maven-scalate-plugin_2.10 needs to be called maven-scalate-plugin?

    <scala-version>2.10.0</scala-version>
    <scala-plugin-version>3.1.2</scala-plugin-version>
    <scalate-version>1.6.1</scalate-version>
-->
    <scala-plugin-version>3.0.2</scala-plugin-version>
    <scalate-version>1.5.3</scalate-version>

    <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
  </properties>

  <dependencies>

    <!--
        <dependency>
          <groupId>javax.servlet</groupId>
          <artifactId>servlet-api</artifactId>
          <scope>provided</scope>
        </dependency>
    -->

    <dependency>
      <groupId>org.fusesource.scalate</groupId>
      <artifactId>scalate-page</artifactId>
<!--
      <artifactId>scalate-page_2.10</artifactId>
-->
      <version>${scalate-version}</version>
    </dependency>


    <!--
        <dependency>
          <groupId>org.fusesource.scalate</groupId>
          <artifactId>scalate-wikitext</artifactId>
          <version>${scalate-version}</version>
        </dependency>

        <dependency>
          <groupId>org.fusesource.scalate</groupId>
          <artifactId>scalate-jruby</artifactId>
          <version>${scalate-version}</version>
        </dependency>

        <dependency>
          <groupId>org.fusesource.scalate</groupId>
          <artifactId>scalate-page</artifactId>
          <version>${scalate-version}</version>
        </dependency>

        <dependency>
          <groupId>org.fusesource.scalamd</groupId>
          <artifactId>scalamd</artifactId>
          <version>${scalamd-version}</version>
        </dependency>
    -->

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>${slf4j-version}</version>
    </dependency>

  </dependencies>

  <build>
    <sourceDirectory>${basedir}/ext</sourceDirectory>

    <plugins>
      <plugin>
        <inherited>true</inherited>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <!-- unpack the web app -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.8</version>
        <executions>
          <execution>
            <id>unpack</id>
            <phase>compile</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>io.hawt</groupId>
                  <artifactId>hawtio-web</artifactId>
                  <version>${hawtio-release-version}</version>
                  <type>war</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>${project.build.directory}/sitegen/app</outputDirectory>
                  <excludes>WEB-INF/**, META-INF/**</excludes>
                </artifactItem>
              </artifactItems>
              <excludes>WEB-INF/**, META-INF/**</excludes>
              <outputDirectory>${project.build.directory}/sitegen/app</outputDirectory>
              <overWriteReleases>false</overWriteReleases>
              <overWriteSnapshots>false</overWriteSnapshots>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!-- lets copy any images for the plugins -->
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <phase>generate-resources</phase>
            <configuration>
              <target>
                <!--
                    TODO iterating over the directories doesn't seem to work

                <ac:for param="file" xmlns:ac="antlib:net.sf.antcontrib">
                  <path>
                    <fileset dir="${basedir}/../hawtio-web/src/main/webapp/app" includes="*"/>
                  </path>
                -->
                <!--
                  TODO this list is created via the command:
                      find src/main/webapp/app -name "img" | grep "/doc/"
                      then removing the prefix and postfix :)
                  -->
                <ac:for list="api,camel,core,forcegraph,jboss,jetty,jmx,junit,quartz,tomcat" param="file" xmlns:ac="antlib:net.sf.antcontrib">
                  <sequential>
                    <echo>Processing plugin @{file}</echo>
                    <mkdir dir="${project.build.directory}/sitegen/plugins/@{file}/app/@{file}"/>
                    <copy todir="${project.build.directory}/sitegen/plugins/@{file}/app/@{file}/doc/img">
                      <fileset dir="${basedir}/../hawtio-web/src/main/webapp/app/@{file}/doc/img">
                        <include name="**/*.*"/>
                      </fileset>
                    </copy>
                  </sequential>
                </ac:for>

                <!-- copy the directives site -->
<!--
                <mkdir dir="${project.build.directory}/sitegen/directives"/>
                <copy todir="${project.build.directory}/sitegen/directives">
                  <fileset dir="${basedir}/../hawtio-directives/target/hawtio-directives-${project.version}">
                    <include name="**/*.*"/>
                  </fileset>
                </copy>
-->

                <!-- copy the api docs -->
<!--                
                <mkdir dir="${project.build.directory}/sitegen/ts-api"/>
                <copy todir="${project.build.directory}/sitegen/ts-api">
                  <fileset dir="${basedir}/../hawtio-api-docs/target/hawtio-api-docs-${project.version}">
                    <include name="**/*.*"/>
                  </fileset>
                </copy>
-->
              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>ant-contrib</groupId>
            <artifactId>ant-contrib</artifactId>
            <version>1.0b3</version>
            <exclusions>
              <exclusion>
                <groupId>ant</groupId>
                <artifactId>ant</artifactId>
              </exclusion>
            </exclusions>
          </dependency>
          <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant-nodeps</artifactId>
            <version>1.8.1</version>
          </dependency>
        </dependencies>
      </plugin>

      <plugin>
        <groupId>net.alchim31.maven</groupId>
{'fraction_non_alphanumeric': 0.152810717261714, 'fraction_numerical': 0.009486571373629895, 'mean_word_length': 1.787066809574848, 'pattern_counts': {'":': 0, '<': 522, '<?xml version=': 2, '>': 522, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7271621', 'n_tokens_mistral': 4934, 'n_tokens_neox': 4388, 'n_words': 602}