<?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>

  <artifactId>services.environment</artifactId>
  <packaging>jar</packaging>
  <name>Multi-language service environment</name>
  <description>Multi-language service environment for the oktoflow platform to generate services upon.</description>

  <parent>
     <groupId>de.iip-ecosphere.platform</groupId>
     <artifactId>platformDependencies</artifactId>
     <version>0.7.1-SNAPSHOT</version>
     <relativePath/>
  </parent>
  
  <properties>
    <python-test.skip>true</python-test.skip> <!-- called here through Java/jUnit -->
  </properties>

  <dependencies>
    <dependency>
      <groupId>de.iip-ecosphere.platform</groupId>
      <artifactId>tools.lib</artifactId>
     <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>de.iip-ecosphere.platform</groupId>
      <artifactId>support.aas</artifactId>
      <version>${project.version}</version>
    </dependency>  
    <dependency>
     <groupId>de.iip-ecosphere.platform</groupId>
     <artifactId>support.iip-aas</artifactId>
     <version>${project.version}</version>
    </dependency>
    <dependency>
     <groupId>de.iip-ecosphere.platform</groupId>
     <artifactId>connectors</artifactId>
     <version>${project.version}</version>
    </dependency>
     <!--<dependency>
      <groupId>org.glassfish.jersey.core</groupId>
      <artifactId>jersey-client</artifactId>
     </dependency>-->
    <!--<dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpclient</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-pool2</artifactId>
    </dependency>-->
    <dependency> <!-- transitive from commons-pool2 -->
      <groupId>org.apache.commons</groupId>
      <artifactId>com.springsource.org.apache.commons.logging</artifactId>
      <version>1.1.1</version>
    </dependency>

    <dependency>
     <groupId>de.iip-ecosphere.platform</groupId>
     <artifactId>connectors</artifactId>
     <version>${project.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>de.iip-ecosphere.platform</groupId>
      <artifactId>support.aas</artifactId>
      <version>${project.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>  
    <dependency>
      <groupId>de.iip-ecosphere.platform</groupId>
      <artifactId>transport</artifactId>
      <version>${project.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>de.iip-ecosphere.platform</groupId>
      <artifactId>support</artifactId>
      <version>${project.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>de.iip-ecosphere.platform</groupId>
      <artifactId>transport.amqp</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.googlecode.json-simple</groupId>
      <artifactId>json-simple</artifactId>
      <version>${com.googlecode.json-simple.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <artifactId>support.websocket-websocket</artifactId>
      <groupId>de.iip-ecosphere.platform</groupId>
      <scope>test</scope>
      <version>${project.version}</version>
    </dependency>     
    <dependency>
      <artifactId>support.processInfo-oshi</artifactId>
      <groupId>de.iip-ecosphere.platform</groupId>
      <scope>test</scope>
      <version>${project.version}</version>
    </dependency>     
    <dependency>
      <artifactId>support.metrics-micrometer</artifactId>
      <groupId>de.iip-ecosphere.platform</groupId>
      <scope>test</scope>
      <version>${project.version}</version>
    </dependency>  
    <dependency>
      <artifactId>support.bytecode-bytebuddy</artifactId>
      <groupId>de.iip-ecosphere.platform</groupId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>    
    <dependency>
      <artifactId>support.http-apache</artifactId>
      <groupId>de.iip-ecosphere.platform</groupId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>    
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  
  <build>
    <plugins>
      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>3.2.0</version>
          <executions>
              <execution>
                  <id>copy-dependencies</id>
                  <goals>
                      <goal>copy-dependencies</goal>
                  </goals>
                  <phase>package</phase>
                  <configuration>
                      <prependGroupId>true</prependGroupId>
                      <outputDirectory>${project.build.directory}/jars</outputDirectory>
                      <overWriteReleases>false</overWriteReleases>
                      <overWriteSnapshots>true</overWriteSnapshots>
                      <overWriteIfNewer>true</overWriteIfNewer>
                      <!-- sync exclusions with build-classpath -->
                  </configuration>
              </execution>
          </executions>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-assembly-plugin</artifactId>
         <version>3.1.1</version>
         <executions>
             <execution>
                 <id>python</id>
                 <phase>package</phase>
                 <goals>
                     <goal>single</goal>
                 </goals>
                 <configuration>
                     <descriptors>
                         <descriptor>src/main/assembly/python.xml</descriptor>
                     </descriptors>
                     <outputDirectory>${project.build.directory}</outputDirectory>
                     <attach>true</attach>
                 </configuration>
              </execution>
         </executions>
        </plugin>
        
        <!-- future: overriding platformDependencies, tests work differently in here -->
         <plugin>
            <groupId>de.iip-ecosphere.platform</groupId>
            <artifactId>maven-python</artifactId>
            <version>${project.version}</version>
            <executions>
                <execution>
                    <id>compile</id>
                    <goals>
                        <goal>compile-python</goal>
                    </goals>
                    <configuration>
                        <failOnError>true</failOnError>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        
        <plugin>
            <groupId>de.iip-ecosphere.platform</groupId>
            <artifactId>dependency-plugin</artifactId>
            <version>${iip.version}</version>
            <executions>
                <execution>
                    <id>okto plugins</id>
                    <goals>
                        <goal>unpack-plugins</goal>
                    </goals>
                    <phase>test-compile</phase>
                    <configuration>
                        <plugins>
                            <plugin>
                                <artifactId>support.aas.basyx2</artifactId>
                            </plugin>
                            <plugin>
                                <artifactId>support.aas.basyx2.server</artifactId>
                            </plugin>
                            <plugin>
                                <artifactId>support.aas.basyx</artifactId>
                            </plugin>
                            <plugin>
                                <artifactId>test.amqp.qpid</artifactId>
                            </plugin>
                            <plugin>
                                <artifactId>support.rest-spark</artifactId>
                            </plugin>
                            <plugin>
                                <artifactId>support.yaml-snakeyaml</artifactId>
                            </plugin>
                            <plugin>
                                <artifactId>support.json-jackson</artifactId>
                            </plugin>
                            <plugin>
                                <artifactId>support.commons-apache</artifactId>
                            </plugin>
                            <plugin>
                                <artifactId>support.metrics-micrometer</artifactId>
                            </plugin>
                        </plugins>
                        <version>${iip.version}</version>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        
    </plugins>
  </build>

</project>