<?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">
  <parent>
    <artifactId>tools.vitruv.dsls.reactions</artifactId>
    <groupId>tools.vitruv</groupId>
    <version>3.2.2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>tools.vitruv.dsls.reactions.ide</artifactId>
  <name>Vitruv Reactions IDE</name>
  <description>IDE integration with LSP server</description>
  <build>
    <resources>
      <resource>
        <directory>${project.build.directory}/generated-sources/xtext-java</directory>
      </resource>
    </resources>
    <finalName>${project.artifactId}</finalName>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>add-src-gen</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>src-gen/xtext</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.eclipse.xtend</groupId>
        <artifactId>xtend-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>**/*.java</exclude>
                    <exclude>META-INF/INDEX.LIST</exclude>
                    <exclude>META-INF/*.SF</exclude>
                    <exclude>META-INF/*.DSA</exclude>
                    <exclude>META-INF/*.RSA</exclude>
                    <exclude>.options</exclude>
                    <exclude>.api_description</exclude>
                    <exclude>*.profile</exclude>
                    <exclude>*.html</exclude>
                    <exclude>about.*</exclude>
                    <exclude>about_files/*</exclude>
                    <exclude>plugin.xml</exclude>
                    <exclude>systembundle.properties</exclude>
                    <exclude>profile.list</exclude>
                    <exclude>**/*._trace</exclude>
                    <exclude>**/*.g</exclude>
                    <exclude>**/*.mwe2</exclude>
                    <exclude>**/*.xtext</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <transformers>
            <transformer>
              <mainClass>org.eclipse.xtext.ide.server.ServerLauncher</mainClass>
            </transformer>
            <transformer>
              <resource>plugin.properties</resource>
            </transformer>
            <transformer />
          </transformers>
          <minimizeJar>false</minimizeJar>
          <shadedArtifactAttached>false</shadedArtifactAttached>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
