<commit_before><?xml version="1.0"?>
<!--

    Copyright (C) 2011 Red Hat, Inc. (<EMAIL>)

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.commonjava.indy</groupId>
    <artifactId>indy-koji</artifactId>
    <version>0.99.4-SNAPSHOT</version>
  </parent>
  <artifactId>indy-koji-common</artifactId>
  <name>Indy :: Add-Ons :: Koji Integration :: Common</name>

  <properties>
    <dbImage>postgres:9.4</dbImage>
    <hubImage>docker.io/buildchimp/koji-dojo-hub</hubImage>

    <dbWaitFor>database system is ready to accept connections</dbWaitFor>
    <hubWaitFor>Starting HTTPd</hubWaitFor>

    <dockerProvider>local</dockerProvider>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-api</artifactId>
    </dependency>
    <dependency>
    	<groupId>org.commonjava.indy</groupId>
    	<artifactId>indy-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-db-memory</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-filer-default</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-subsys-http</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-subsys-groovy</artifactId>
    </dependency>
    <dependency>
    	<groupId>junit</groupId>
    	<artifactId>junit</artifactId>
    	<scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.commonjava.util</groupId>
      <artifactId>jhttpc</artifactId>
    </dependency>

    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcprov-jdk15on</artifactId>
    </dependency>
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcpkix-jdk15on</artifactId>
    </dependency>

    <dependency>
      <groupId>org.commonjava.rwx</groupId>
      <artifactId>rwx-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.rwx</groupId>
      <artifactId>rwx-http</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.rwx</groupId>
      <artifactId>rwx-bindings</artifactId>
    </dependency>

    <dependency>
      <groupId>com.redhat.red.build</groupId>
      <artifactId>kojiji</artifactId>
    </dependency>

    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-koji-model-java</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-test-fixtures-core</artifactId>
    </dependency>
  </dependencies>
  
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <!-- See: https://github.com/wouterd/docker-maven-plugin -->
          <groupId>net.wouterdanes.docker</groupId>
          <artifactId>docker-maven-plugin</artifactId>
          <version>4.1.0</version>
          <executions>
            <execution>
              <id>start-IT-containers</id>
              <goals>
                <goal>start-containers</goal>
              </goals>
              <phase>pre-integration-test</phase>
              <configuration>
                <!-- <forceCleanup>false</forceCleanup> -->
                <providerName>${dockerProvider}</providerName>
                <containers>
                  <container>
                    <id>koji-db</id>
                    <image>${dbImage}</image>
                    <env>
                      <POSTGRES_DB>koji</POSTGRES_DB>
                      <POSTGRES_USER>koji</POSTGRES_USER>
                      <POSTGRES_PASSWORD><PASSWORD></POSTGRES_PASSWORD>
                    </env>
                    <waitForStartup>${dbWaitFor}</waitForStartup>
                  </container>
                  <container>
                    <id>koji-hub</id>
                    <image>${hubImage}</image>
                    <waitForStartup>${hubWaitFor}</waitForStartup>
                    <links>
                      <link>
                        <containerId>koji-db</containerId>
                        <containerAlias>koji-db</containerAlias>
                      </link>
                    </links>
                  </container>
                </containers>
              </configuration>
            </execution>
            <execution>
              <id>stop-IT-containers</id>
              <goals>
                <goal>stop-containers</goal>
              </goals>
              <phase>post-integration-test</phase>
              <configuration>
                <logs>${project.build.directory}/docker-logs</logs>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.8</version>
          <executions>
            <execution>
              <id>record-docker-properties</id>
              <goals>
                <goal>run</goal>
              </goals>
              <phase>pre-integration-test</phase>
              <configuration>
                <target>
                  <!--suppress MavenModelInspection -->
                  <echo file="${project.build.directory}/docker.properties">
                    <![CDATA[
docker.containers.koji-hub.ports.80/tcp.host=${docker.containers.koji-hub.ports.80/tcp.host}
docker.containers.koji-hub.ports.443/tcp.host=${docker.containers.koji-hub.ports.443/tcp.host}
docker.containers.koji-hub.ports.80/tcp.port=${docker.containers.koji-hub.ports.80/tcp.port}
docker.containers.koji-hub.ports.443/tcp.port=${docker.containers.koji-hub.ports.443/tcp.port}

#javax.net.debug=ssl:handshake:verbose
]]>
                  </echo>
                </target>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-failsafe-plugin</artifactId>
          <version>2.19</version>
          <executions>
            <execution>
              <id>functional-tests</id>
              <goals>
                <goal>integration-test</goal>
                <goal>verify</goal>
              </goals>
              <configuration>
                <includes>
                  <include>**/*IT.java</include>
                </includes>
                <forkCount>1C</forkCount>
                <redirectTestOutputToFile>true</redirectTestOutputToFile>
                <systemPropertiesFile>${project.build.directory}/docker.properties</systemPropertiesFile>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <id>confset</id>
            <goals>
              <goal>single</goal>
            </goals>
            <phase>package</phase>
            <configuration>
              <descriptorRefs>
                <descriptorRef>confset</descriptorRef>
                <descriptorRef>uiset</descriptorRef>
              </descriptorRefs>
            </configuration><commit_msg>remove uiset assembly from koji-common module.<commit_after><?xml version="1.0"?>
<!--

    Copyright (C) 2011 Red Hat, Inc. (<EMAIL>)

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.commonjava.indy</groupId>
    <artifactId>indy-koji</artifactId>
    <version>0.99.4-SNAPSHOT</version>
  </parent>
  <artifactId>indy-koji-common</artifactId>
  <name>Indy :: Add-Ons :: Koji Integration :: Common</name>

  <properties>
    <dbImage>postgres:9.4</dbImage>
    <hubImage>docker.io/buildchimp/koji-dojo-hub</hubImage>

    <dbWaitFor>database system is ready to accept connections</dbWaitFor>
    <hubWaitFor>Starting HTTPd</hubWaitFor>

    <dockerProvider>local</dockerProvider>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-api</artifactId>
    </dependency>
    <dependency>
    	<groupId>org.commonjava.indy</groupId>
    	<artifactId>indy-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-db-memory</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-filer-default</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-subsys-http</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-subsys-groovy</artifactId>
    </dependency>
    <dependency>
    	<groupId>junit</groupId>
    	<artifactId>junit</artifactId>
    	<scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.commonjava.util</groupId>
      <artifactId>jhttpc</artifactId>
    </dependency>

    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcprov-jdk15on</artifactId>
    </dependency>
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcpkix-jdk15on</artifactId>
    </dependency>

    <dependency>
      <groupId>org.commonjava.rwx</groupId>
      <artifactId>rwx-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.rwx</groupId>
      <artifactId>rwx-http</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.rwx</groupId>
      <artifactId>rwx-bindings</artifactId>
    </dependency>

    <dependency>
      <groupId>com.redhat.red.build</groupId>
      <artifactId>kojiji</artifactId>
    </dependency>

    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-koji-model-java</artifactId>
    </dependency>
    <dependency>
      <groupId>org.commonjava.indy</groupId>
      <artifactId>indy-test-fixtures-core</artifactId>
    </dependency>
  </dependencies>
  
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <!-- See: https://github.com/wouterd/docker-maven-plugin -->
          <groupId>net.wouterdanes.docker</groupId>
          <artifactId>docker-maven-plugin</artifactId>
          <version>4.1.0</version>
          <executions>
            <execution>
              <id>start-IT-containers</id>
              <goals>
                <goal>start-containers</goal>
              </goals>
              <phase>pre-integration-test</phase>
              <configuration>
                <!-- <forceCleanup>false</forceCleanup> -->
                <providerName>${dockerProvider}</providerName>
                <containers>
                  <container>
                    <id>koji-db</id>
                    <image>${dbImage}</image>
                    <env>
                      <POSTGRES_DB>koji</POSTGRES_DB>
                      <POSTGRES_USER>koji</POSTGRES_USER>
                      <POSTGRES_PASSWORD><PASSWORD></POSTGRES_PASSWORD>
                    </env>
                    <waitForStartup>${dbWaitFor}</waitForStartup>
                  </container>
                  <container>
                    <id>koji-hub</id>
                    <image>${hubImage}</image>
                    <waitForStartup>${hubWaitFor}</waitForStartup>
                    <links>
                      <link>
                        <containerId>koji-db</containerId>
                        <containerAlias>koji-db</containerAlias>
                      </link>
                    </links>
                  </container>
                </containers>
              </configuration>
            </execution>
            <execution>
              <id>stop-IT-containers</id>
              <goals>
                <goal>stop-containers</goal>
              </goals>
              <phase>post-integration-test</phase>
              <configuration>
                <logs>${project.build.directory}/docker-logs</logs>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.8</version>
          <executions>
            <execution>
              <id>record-docker-properties</id>
              <goals>
                <goal>run</goal>
              </goals>
              <phase>pre-integration-test</phase>
              <configuration>
                <target>
                  <!--suppress MavenModelInspection -->
                  <echo file="${project.build.directory}/docker.properties">
                    <![CDATA[
docker.containers.koji-hub.ports.80/tcp.host=${docker.containers.koji-hub.ports.80/tcp.host}
docker.containers.koji-hub.ports.443/tcp.host=${docker.containers.koji-hub.ports.443/tcp.host}
docker.containers.koji-hub.ports.80/tcp.port=${docker.containers.koji-hub.ports.80/tcp.port}
docker.containers.koji-hub.ports.443/tcp.port=${docker.containers.koji-hub.ports.443/tcp.port}

#javax.net.debug=ssl:handshake:verbose
]]>
                  </echo>
                </target>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-failsafe-plugin</artifactId>
          <version>2.19</version>
          <executions>
            <execution>
              <id>functional-tests</id>
              <goals>
                <goal>integration-test</goal>
                <goal>verify</goal>
              </goals>
              <configuration>
                <includes>
                  <include>**/*IT.java</include>
                </includes>
                <forkCount>1C</forkCount>
                <redirectTestOutputToFile>true</redirectTestOutputToFile>
                <systemPropertiesFile>${project.build.directory}/docker.properties</systemPropertiesFile>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <id>confset</id>
            <goals>
              <goal>single</goal>
            </goals>
            <phase>package</phase>
            <configuration>
              <descriptorRefs>
                <descriptorRef>confset</descriptorRef>
                <!-- <descriptorRef>uiset</descriptorRef> -->
              </descriptorRefs>
            </configuration>
{'fraction_non_alphanumeric': 0.13410843073862222, 'fraction_numerical': 0.00820691370305894, 'mean_word_length': 1.9192377495462796, 'pattern_counts': {'":': 0, '<': 588, '<?xml version=': 2, '>': 588, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, 'pii_count': 0, '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': '5493689', 'n_tokens_mistral': 5140, 'n_tokens_neox': 4496, 'n_words': 622}