<commit_before><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>
  <artifactId>fox-platform-glassfish-ear</artifactId>
  <name>fox platform EE - Glassfish 3.1.x EAR</name>
  <packaging>ear</packaging>

  <parent>
    <groupId>com.camunda.fox.platform</groupId>
    <artifactId>fox-platform-glassfish</artifactId>
    <version>6.0.0-SNAPSHOT</version>
  </parent>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <version>6</version>
          <defaultLibBundleDir>lib</defaultLibBundleDir>
          <applicationName>camunda-fox-platform</applicationName>          
        </configuration>
      </plugin>      
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>com.camunda.fox.engine</groupId>
      <artifactId>fox-engine-cdi</artifactId>
    </dependency>
    <dependency>
      <groupId>com.camunda.fox.platform</groupId>
      <artifactId>fox-platform-deployer</artifactId>
    </dependency>
    <dependency>
      <groupId>com.camunda.fox.platform</groupId>
      <artifactId>fox-platform-service</artifactId>
    </dependency>
    <dependency>
      <groupId>com.camunda.fox.platform</groupId>
      <artifactId>fox-platform-glassfish-service</artifactId>
      <version>${project.version}</version>
      <type>ejb</type>
    </dependency>
       
    <!-- exclude engine from ear -->
    <dependency>
      <groupId>com.camunda.fox.engine</groupId>
      <artifactId>fox-engine</artifactId>
      <scope>provided</scope>
    </dependency>
    <!-- exclude platform api from ear -->
    <dependency><commit_msg>Removing beans.xml from fox-engine-cdi in glassfish distro so we prevent an exception when undeploying the platform.<commit_after><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>
  <artifactId>fox-platform-glassfish-ear</artifactId>
  <name>fox platform EE - Glassfish 3.1.x EAR</name>
  <packaging>ear</packaging>

  <parent>
    <groupId>com.camunda.fox.platform</groupId>
    <artifactId>fox-platform-glassfish</artifactId>
    <version>6.0.0-SNAPSHOT</version>
  </parent>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <version>6</version>
          <defaultLibBundleDir>lib</defaultLibBundleDir>
          <applicationName>camunda-fox-platform</applicationName>          
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <id>remove-beans-xml</id>
            <phase>pre-integration-test</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <target>
                <unzip src="target/fox-platform-glassfish-ear-${project.version}.ear" dest="target/temp-ear" />
                <jar destfile="target/fox-engine-cdi-${project.version}.jar" filesetmanifest="merge">
                  <zipfileset src="target/temp-ear/lib/fox-engine-cdi-${project.version}.jar" excludes="**/beans.xml" />
                </jar>
                <copy todir="target/temp-ear/lib/" overwrite="true">
                  <fileset file="target/fox-engine-cdi-${project.version}.jar" />
                </copy>
                <delete file="target/fox-platform-glassfish-ear-${project.version}.ear" />
                <zip file="target/fox-platform-glassfish-ear-${project.version}.ear">
                  <zipfileset dir="target/temp-ear/"/>
                </zip>
              </target>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>com.camunda.fox.engine</groupId>
      <artifactId>fox-engine-cdi</artifactId>
    </dependency>
    <dependency>
      <groupId>com.camunda.fox.platform</groupId>
      <artifactId>fox-platform-deployer</artifactId>
    </dependency>
    <dependency>
      <groupId>com.camunda.fox.platform</groupId>
      <artifactId>fox-platform-service</artifactId>
    </dependency>
    <dependency>
      <groupId>com.camunda.fox.platform</groupId>
      <artifactId>fox-platform-glassfish-service</artifactId>
      <version>${project.version}</version>
      <type>ejb</type>
    </dependency>
       
    <!-- exclude engine from ear -->
    <dependency>
      <groupId>com.camunda.fox.engine</groupId>
      <artifactId>fox-engine</artifactId>
      <scope>provided</scope>
    </dependency>
    <!-- exclude platform api from ear -->
    <dependency>
{'fraction_non_alphanumeric': 0.15786731503994442, 'fraction_numerical': 0.011462313303230288, 'mean_word_length': 2.48186215235792, 'pattern_counts': {'":': 0, '<': 220, '<?xml version=': 0, '>': 220, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 7}, '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': '1305474', 'n_tokens_mistral': 1938, 'n_tokens_neox': 1738, 'n_words': 207}