<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>
       <groupId>io.github.jpcasas.ibm.plugin.pom</groupId>
       <artifactId>ibm-pom-parent</artifactId>
       <version>1.0.2</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>io.github.jpcasas.ibm.plugin.pom</groupId>
   <artifactId>ibm-pom-stlib</artifactId>
   <packaging>pom</packaging>

   <name>ibm-parent-stlib</name>
   <description>Parent POM For ACE standard libs</description>
   <url>https://github.com/jpcasas/ibm-projects-poms.git</url>

   <properties>
       <ibm.plugin.version>1.0.0</ibm.plugin.version>
   </properties>
   
   <build>
       <finalName>${project.artifactId}</finalName>
       <pluginManagement>
           <plugins>
               <plugin>
                   <artifactId>maven-dependency-plugin</artifactId>
                   <version>3.1.2</version>
                   <executions>
                       <execution>
                           <id>copy-dependencies</id>
                           <phase>process-resources</phase>
                           <goals>
                               <goal>copy-dependencies</goal>
                           </goals>
                           <configuration>
                               <outputDirectory>${project.build.directory}</outputDirectory>
                               <stripVersion>true</stripVersion>
                               <stripClassifier>true</stripClassifier>
                               <excludeTransitive>true</excludeTransitive>
                               <excludeArtifactIds>junit,citrus-core,citrus-java-dsl,citrus-http,jcl-over-slf4j,slf4j-log4j12,commons-logging</excludeArtifactIds>
                           </configuration>
                       </execution>
                       <execution>
                           <id>unpack</id>
                           <phase>process-resources</phase>
                           <goals>
                               <goal>unpack-dependencies</goal>
                           </goals>
                           <configuration>
                               <outputDirectory>${project.build.directory}</outputDirectory>
                               <stripVersion>true</stripVersion>
                               <stripClassifier>true</stripClassifier>
                               <excludeTransitive>true</excludeTransitive>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>
               <plugin>
                   <artifactId>maven-assembly-plugin</artifactId>
                   <version>3.3.0</version>
                   <dependencies>
                       <dependency>
                           <groupId>io.github.jpcasas.ibm.plugin.assemblies</groupId>
                           <artifactId>ibm-integration-assemblies</artifactId>
                           <version>1.0.0</version>
                       </dependency>
                   </dependencies>
                   <executions>
                       <execution>
                           <id>copy-project</id>
                           <phase>process-resources</phase>
                           <goals>
                               <goal>single</goal>
                           </goals>
                           <configuration>
                               <appendAssemblyId>false</appendAssemblyId>
                               <descriptorRefs>
                                   <descriptorRef>acep</descriptorRef>
                               </descriptorRefs>
                           </configuration>
                       </execution>
                       <execution>
                           <id>make-assembly</id>
                           <phase>prepare-package</phase>
                           <goals>
                               <goal>single</goal>
                           </goals>
                           <configuration>
                               <appendAssemblyId>false</appendAssemblyId>
                               <descriptorRefs>
                                   <descriptorRef>ace</descriptorRef>
                               </descriptorRefs>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>
               <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-jar</id>
                        <phase>none</phase>
                        <configuration>
                            <finalName>unwanted</finalName>
                            <classifier>unwanted</classifier>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
               <plugin>
                   <groupId>io.github.jpcasas.ibm.plugin</groupId>
                   <artifactId>ibm-maven-plugin</artifactId>
                   <version>${ibm.plugin.version}</version>
                   <executions>
                       <execution>
                           <id>create-bar</id>
                           <phase>compile</phase>
                           <goals>
                               <goal>ace-bar</goal>
                           </goals>
                       </execution>
                   </executions>
               </plugin>
           </plugins>
       </pluginManagement>
       <resources>
           <resource>
               <directory>resources</directory>
           </resource>
       </resources>
   </build>

</project>