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

  <parent>
    <groupId>org.jbpm</groupId>
    <artifactId>jbpm-designer</artifactId>
    <version>6.3.0.Final</version>
  </parent>

  <artifactId>jbpm-designer-api</artifactId>
  <packaging>jar</packaging>

  <name>jBPM Designer - API</name>

  <dependencies>
    <dependency>
      <groupId>org.guvnor</groupId>
      <artifactId>guvnor-services-api</artifactId>
    </dependency>

    <dependency>
      <groupId>org.uberfire</groupId>
      <artifactId>uberfire-api</artifactId>
    </dependency>

    <!-- Errai Core -->
    <dependency>
      <groupId>org.jboss.errai</groupId>
      <artifactId>errai-bus</artifactId>
    </dependency>

    <!-- Errai Common -->
    <dependency>
      <groupId>org.jboss.errai</groupId>
      <artifactId>errai-common</artifactId>
    </dependency>
  </dependencies>



  <build>
    <plugins>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>jar</goal>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
            <groupId>com.google.code.maven-replacer-plugin</groupId>
            <artifactId>replacer</artifactId>
            <configuration>
                <includes>
                    <include>**/DesignerConstants.properties</include>
                    <include>**/DesignerConstants_de.properties</include>
                    <include>**/DesignerConstants_es.properties</include>
                    <include>**/DesignerConstants_fr.properties</include>
                    <include>**/DesignerConstants_ja.properties</include>
                    <include>**/DesignerConstants_pt_BR.properties</include>
                    <include>**/DesignerConstants_zh_CN.properties</include>
                    <include>**/DesignerConstants_ru.properties</include>
                </includes>
                <excludes>
                    <exclude>**/ErraiApp.properties</exclude>
                </excludes>
                <replacements>
                    <replacement>
                        <token>\\\\"</token>
                        <value>"</value>
                    </replacement>
                    <replacement>
                        <token>\\"</token>
                        <value>"</value>
                    </replacement>
                    <replacement>
                        <token>"</token>
                        <value>\\\\"</value>
                    </replacement>
                    <replacement>
                        <token>\\\\'</token>
                        <value>'</value>
                    </replacement>
                    <replacement>
                        <token>\\'</token>
                        <value>'</value>
                    </replacement>
                    <replacement>
                        <token>'</token>
                        <value>\\\\'</value>
                    </replacement>
                    <replacement>
                        <token>'</token>
                        <value>\\'</value>
                    </replacement>
                    <replacement>
                        <token>"</token>
                        <value>\\"</value>
                    </replacement>
                    <replacement>
                        <token>\\\\n</token>
                        <value>\\n</value>
                    </replacement>
                    <replacement>
                        <token>\\n</token>
                        <value>\\\\n</value>
                    </replacement>
                </replacements>
            </configuration>
        </plugin>

    </plugins>

  </build>

</project>
