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

  <parent>
    <groupId>fr.ifremer.adagio</groupId>
    <artifactId>adagio</artifactId>
    <version>3.8.6.3</version>
  </parent>

  <artifactId>adagio-core-allegro</artifactId>
  <name>SIH-Adagio :: Core for Allegro</name>
  <url>http://www.ifremer.fr/sih-adagio/adagio-core-allegro</url>

  <scm>
<connection>
      scm:svn:https://forge.ifremer.fr/svn/sih-adagio/tags/adagio-3.8.6.3/core-allegro
    </connection>
    <url>https://forge.ifremer.fr/svn/sih-adagio/tags/adagio-3.8.6.3/core-allegro</url>
    <developerConnection>
      scm:svn:https://forge.ifremer.fr/svn/sih-adagio/tags/adagio-3.8.6.3/core-allegro
    </developerConnection>
  </scm>

  <properties>

    <!-- default env : -->
	<env>allegro</env>
	<jdbc.url>jdbc:hsqldb:file:${project.basedir}/src/test/db/allegro</jdbc.url>
	<jdbc.driver.jar>${settings.localRepository}/hsqldb/hsqldb/${jdbc.hsqldb.version}/hsqldb-${jdbc.hsqldb.version}.jar</jdbc.driver.jar>
	<jdbc.username>sa</jdbc.username>
	<jdbc.password />
	<jdbc.driver>org.hsqldb.jdbcDriver</jdbc.driver>
	<jdbc.schema>PUBLIC</jdbc.schema>
	<hibernate.dialect>org.hibernate.dialect.HSQLDialect</hibernate.dialect>
	<hibernate.jdbcBatchSize>15</hibernate.jdbcBatchSize>
	<dbunit.dtd.jdbc.schema>${jdbc.schema}</dbunit.dtd.jdbc.schema>
	<dbunit.connectionClass>org.dbunit.ext.hsqldb.HsqldbConnection</dbunit.connectionClass>
	<dbunit.supportBatchStatement>true</dbunit.supportBatchStatement>	

    <!-- Completer eventuellement le contenu de la balise suivante avec des noms de cartouches andromda separes par des virgules
       Exemple : <andromda.filter>java</andromda.filter>
       Ou bien utiliser l'option -Dandromda.filter=... a l'execution de la commande mvn install
   -->
    <andromda.filter />
    
    <core-shared.java.generated.dir>${project.build.directory}/trash/java</core-shared.java.generated.dir>

    <!-- Name of a VM properties that hold the directory to store cache files -->
    <ehcache.disk.store.dir>ehcache.disk.store.dir</ehcache.disk.store.dir>

    <!-- default model is 'allegro-classes' -->
    <model.dir>${pom.basedir}/../mda/src/main/uml/allegro</model.dir>
    <model.uri>file:${model.dir}/allegro-classes.uml</model.uri>
    
    <!-- i18n configuration -->
    <i18n.bundleOutputName>adagio-core-allegro-i18n</i18n.bundleOutputName>
	<i18n.generateCsvFile>true</i18n.generateCsvFile>
	<i18n.bundleCsvFile>
		${maven.gen.dir}/resources/META-INF/${i18n.bundleOutputName}.csv
	</i18n.bundleCsvFile>
	<config.i18nBundleName>${i18n.bundleOutputName}</config.i18nBundleName>
  
	<maven.jar.main.class>
		fr.ifremer.adagio.core.RunAllegroCore
	</maven.jar.main.class>
	
  </properties>

  <dependencies>

    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>adagio-core-shared</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>adagio-synchro</artifactId>
      <version>${project.version}</version>
    </dependency>
    
    <dependency>
      <groupId>hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <scope>runtime</scope>
    </dependency>    
    <dependency>
	  <groupId>com.oracle</groupId>
  	  <artifactId>ojdbc7</artifactId>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>

    <!-- Spring -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-tx</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jdbc</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-orm</artifactId>
    </dependency>
    
    <!-- Commons -->
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
    </dependency>
	<dependency>
	  <groupId>org.apache.commons</groupId>
	  <artifactId>commons-collections4</artifactId>
	</dependency>
	<dependency>
	  <groupId>commons-collections</groupId>
	  <artifactId>commons-collections</artifactId>
	</dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
    </dependency>
    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
    </dependency>
	
	<!-- Nuiton-* -->
    <dependency>
	  <groupId>org.nuiton</groupId>
	  <artifactId>nuiton-config</artifactId>
    </dependency>   
    <dependency>
      <groupId>org.nuiton</groupId>
      <artifactId>nuiton-utils</artifactId>
    </dependency>             
    <dependency>
      <groupId>org.nuiton.i18n</groupId>
      <artifactId>nuiton-i18n</artifactId>
    </dependency>             

    <!-- Guava -->
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
    </dependency>

    <!-- Hibernate -->
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-core</artifactId>
    </dependency>
	<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-ehcache</artifactId>    
    </dependency>
    <dependency>
	  <groupId>org.jboss.logging</groupId>
	  <artifactId>jboss-logging</artifactId>
    </dependency>
	<dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-spatial</artifactId>
      <scope>compile</scope>
	  <optional>true</optional>
    </dependency>
	<dependency>
      <groupId>com.vividsolutions</groupId>
      <artifactId>jts</artifactId>
      <scope>compile</scope>
	  <optional>true</optional>
    </dependency>

    <!-- Unit testing -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jmock</groupId>
      <artifactId>jmock</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jmock</groupId>
      <artifactId>jmock-junit4</artifactId>
    </dependency>
  </dependencies>
  
  <build>

    <resources>
      <resource>
        <directory>src/main/filtered-resources</directory>
        <filtering>true</filtering>
        <includes>
          <include>*.config</include>
          <include>*.properties</include>
        </includes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>
      <resource>
        <directory>target/generated-sources/java</directory>
		<excludes>
          <exclude>hibernate.cfg.xml</exclude>
        </excludes>        
      </resource>
      <resource>
        <directory>target/generated-sources/hibernate</directory>
        <filtering>true</filtering>
		<excludes>
          <exclude>hibernate.properties</exclude>
        </excludes>        
        <includes>
          <!-- Add hibernate.cfg, to be able to apply liquibase schema diff -->
          <include>hibernate.cfg.xml</include>
        </includes>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
        <filtering>true</filtering>
      </testResource>
    </testResources>

    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <useUniqueVersions>false</useUniqueVersions>
              <addClasspath>true</addClasspath>
              <classpathPrefix>./lib/</classpathPrefix>
			</manifest>
		  </archive>
		</configuration>
	  </plugin>
	  
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>target/generated-sources/java</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>

      
      <plugin>
        <groupId>org.nuiton.i18n</groupId>
        <artifactId>i18n-maven-plugin</artifactId>
        
        <executions>
          <execution>
            <id>scan-sources</id>
            <configuration>
              <entries>
                <entry>
                  <specificGoal>parserValidation</specificGoal>
                  <basedir>${maven.src.dir}/main/java/</basedir>
                  <includes>
                    <param>**/**-validation.xml</param>
                  </includes>
                </entry>
                <entry>
                  <basedir>${maven.gen.dir}/java/</basedir>
                </entry>
              </entries>
            </configuration>
            <goals>
              <goal>parserJava</goal>
              <goal>parserValidation</goal>
              <goal>gen</goal>
            </goals>
          </execution>
          <execution>
            <id>make-bundle</id>
            <goals>
              <goal>bundle</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
	  
      <plugin>
		<artifactId>maven-enforcer-plugin</artifactId>
		<executions>
		  <execution>
			<id>check-database-properties</id>
			<goals>
			  <goal>enforce</goal>
			</goals>
			<phase>initialize</phase>
			<configuration>
			  <rules>
				<requireProperty>
				  <property>env</property>
				  <message>You must set the 'env' property (allegro)!</message>
				  <regex>allegro</regex>
                  <regexMessage>You must set 'env' property with one of this values: allegro</regexMessage>
				</requireProperty>
				<requireProperty>
				  <property>hibernate.dialect</property>
				  <message>You must set a hibernate.dialect property!</message>
				</requireProperty>
			  </rules>
			  <ignoreCache>true</ignoreCache>
			  <failFast>true</failFast>
			  <fail>true</fail>
			</configuration>
		  </execution>
		</executions>
	  </plugin>
		  
      <plugin>
          <groupId>org.reflections</groupId>
          <artifactId>reflections-maven</artifactId>
          <executions>
            <execution>
              <goals>
                <goal>reflections</goal>
              </goals>
              <phase>process-classes</phase>
              <configuration>
                <scanners>SubTypesScanner</scanners>
                <includeExclude>+fr\.ifremer\.adagio\.core\.dao\..*</includeExclude>                
              </configuration>
            </execution>
          </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>

    <profile>
      <id>dev</id>
      <properties>
		<!-- use a local server database -->
        <jdbc.url>jdbc:hsqldb:hsql://localhost/allegro</jdbc.url>
      </properties>
    </profile>
	
	<!-- To run code formatter at release time -->
    <profile>
      <id>formatter</id>
	  <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>

      <build>
        <plugins>
          <plugin>
			<groupId>com.googlecode.maven-java-formatter-plugin</groupId>
			<artifactId>maven-java-formatter-plugin</artifactId>
			<executions>
			  <execution>
				<id>Java formatter</id>
				<phase>process-sources</phase>
				<goals>
				  <goal>format</goal>
				</goals>
			  </execution>
			</executions>
		  </plugin>
	    </plugins>
      </build>
	</profile>
	
    <!-- To run some reports at release time -->
    <profile>
      <id>reporting</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>

      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <dependencies> 
            <!-- FIXME-BL : should not need this, because of parent pom -->
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
              </dependency>
              <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${slf4j.version}</version>
              </dependency>
              <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>log4j-over-slf4j</artifactId>
                <version>${slf4j.version}</version>
              </dependency> 
            </dependencies>
            <executions>
              <execution>
                <id>hbm2doc</id>
                <phase>pre-site</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                <target>
                    <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask">
                      <classpath refid="maven.plugin.classpath" />
                    </taskdef>
                    <echo>${project.build.outputDirectory}</echo>
                    <hibernatetool destdir="${project.reporting.outputDirectory}/hibernate">
                      <classpath>
                        <path location="${java.generated.dir}" />
                        <path location="${project.build.outputDirectory}" />
                      </classpath>
                      <configuration configurationfile="${hibernate.generated.cfg.path}" />
                      <hbm2doc />
                    </hibernatetool>
                  </target>
                </configuration>
              </execution>
             </executions>
           </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>linux-fix-hbm-files</id>
      <activation>
        <os>
          <family>linux</family>
        </os>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>exec-maven-plugin</artifactId>
            <groupId>org.codehaus.mojo</groupId>
            <inherited>false</inherited>
            <executions>
              <execution>
                <phase>process-sources</phase>
                <id>Fix Hibernate mapping for Linux OS</id>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <skip>${andromda.run.skip}</skip>
                  <executable>${project.basedir}/src/main/scripts/replaceEmptyTags.sh</executable>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- To generate files using andromda -->
    <profile>
      <id>andromda</id>
      <activation>
        <property>
          <name>andromda.run.skip</name>
          <value>!true</value>
        </property>
      </activation>

      <build>
        <plugins>

          <!-- AndroMDA generation -->
          <plugin>
            <groupId>org.andromda.maven.plugins</groupId>
            <artifactId>andromda-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>Generate source files from the UML model</id>
                <phase>generate-sources</phase>
                <goals>
                  <goal>run</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>Prepare AndroMDA config files</id>
                <phase>initialize</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target>
                    <taskdef resource="net/sf/antcontrib/antlib.xml">
                      <classpath refid="maven.plugin.classpath" />
                    </taskdef>
					<ant antfile="${pom.basedir}/../mda/src/main/ant/andromda.xml" target="prepare-config-files" inheritRefs="true" />                               
                  </target>
                </configuration>
              </execution>
              <execution>
                <id>Patch AndroMDA generated files</id>
                <phase>process-sources</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target>
				    <taskdef resource="net/sf/antcontrib/antlib.xml">
	                  <classpath refid="maven.plugin.classpath" />
	                </taskdef>   
	                <!-- Do not allow formula (will be transform in simple column) -->
	                <property name="andromda.formula.enable" value="false" />
	                
	                <echo level="info">Patch result hbm.xml files (because hibernateMergeMappings could not delete all extra tags.)</echo>
					<ant antfile="${basedir}/../mda/src/main/ant/andromda.xml" target="patch-hbm-files" inheritRefs="true" />

                	<echo level="info">Remove redundant generated files (*DaoImpl.java)</echo>
					<ant antfile="${basedir}/../mda/src/main/ant/andromda.xml" target="remove-redundant-files" inheritRefs="true" />

                	<echo level="info">Generate Hibernate configuration files: hibernate.cfg.xml and hibernate.properties</echo>
					<ant antfile="${basedir}/../mda/src/main/ant/hibernate.xml" target="generate-hibernate-cfg" inheritRefs="true" />                               
					<delete file="${java.generated.dir}/hibernate.cfg.xml" failonerror="false" />

                	<echo level="info">Rename ehcache.xml to ehcache-failsafe.xml</echo>
					<move file="${java.generated.dir}/ehcache.xml" tofile="${java.generated.dir}/ehcache-failsafe.xml" failOnError="false" />
          
                    <echo level="info">Remove unused persistence.xml</echo>
                    <delete file="${java.generated.dir}/META-INF/persistence.xml" failonerror="false" />
				  </target>                               
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- To use some extra sql plugins (liquidbase or andromdapp) -->
    <profile>
      <id>sql</id>
	  <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
	  
      <build>
        <resources>
          <resource>
            <directory>${project.build.directory}/generated-sources/hibernate</directory>
            <includes>
              <include>**/*</include>
            </includes>
          </resource>
        </resources>

        <plugins>
          <plugin>
            <groupId>org.liquibase</groupId>
            <artifactId>liquibase-maven-plugin</artifactId>
            <configuration>
              <changeLogFile>${project.basedir}/src/main/resources/fr/ifremer/adagio/core/db/changelog/db-changelog-master.xml</changeLogFile>
              <diffChangeLogFile>${project.build.directory}/db-changelog-${project.version}.xml</diffChangeLogFile>
              <driver>${jdbc.driver}</driver>
              <url>${jdbc.url}</url>
              <username>${jdbc.username}</username>
              <password>${jdbc.password}</password>
              <referenceUrl>hibernate:classic:hibernate.cfg.xml</referenceUrl>
              <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
              <verbose>true</verbose>
              <logging>info</logging>
            </configuration>
          </plugin>

          <!-- Generate SQL script, to create or update schema -->
          <plugin>
            <groupId>org.andromda.maven.plugins</groupId>
            <artifactId>andromdapp-maven-plugin</artifactId>
            <dependencies>
              <dependency>
                <groupId>hsqldb</groupId>
                <artifactId>hsqldb</artifactId>
                <version>${jdbc.hsqldb.version}</version>
              </dependency>
            </dependencies>
            <executions>
              <execution>
                <goals>
                  <goal>schema</goal>
                </goals>
				<phase>prepare-package</phase>
              </execution>
            </executions>
            <configuration>
              <tasks>${schema.tasks}</tasks>
              <jdbcDriver>${jdbc.driver}</jdbcDriver>
              <jdbcDriverJar>${jdbc.driver.jar}</jdbcDriverJar>
              <jdbcConnectionUrl>${jdbc.url}</jdbcConnectionUrl>
              <jdbcUsername>${jdbc.username}</jdbcUsername>
              <jdbcPassword>${jdbc.password}</jdbcPassword>
              <executeScripts>false</executeScripts>
              <properties>
                <property>
                  <name>mappingsLocation</name>
                  <value>${java.generated.dir}</value>
                </property>
                <property>
                  <name>mappingFileExtension</name>
                  <value>hbm.xml</value>
                </property>
                <property>
                  <name>createOutputPath</name>
                  <value>${db.generated.dir}/create-tables.sql</value>
                </property>
                <property>
                  <name>dropOutputPath</name>
                  <value>${db.generated.dir}/drop-tables.sql</value>
                </property>
                <property>
                  <name>outputPath</name>
                  <value>${db.generated.dir}</value>
                </property>
              </properties>
            </configuration>
          </plugin>

        </plugins>
      </build>
    </profile>

    <!-- reporting: generation of model documentation -->
    <profile>
      <id>magicdraw</id>
	  <activation>
        <property>
          <name>performFullRelease</name>
          <value>true</value>
        </property>
      </activation>
      
      <properties>
        <model.mdzip.dir>${basedir}/../mda/src/main/mdzip/allegro</model.mdzip.dir>
        <model.mdzip.file>${model.mdzip.dir}/allegro-classes.mdzip</model.mdzip.file>
        <report.basedir>${basedir}/../mda/src/main/reports</report.basedir>
        <report.data.name>allegro</report.data.name>
		<!-- If 'magicdraw.home' not set, ${env.MD_HOME} will be used-->
        <magicdraw.home>C:/dev/adagio/lgs/magicdraw-17.0.4</magicdraw.home>
		<!-- only need for Unix OS -->
        <magicdraw.display />
 		<magicdraw.reports.list>Data Dictionary Ifremer|..|allegro-pim.rtf,Data Dictionary Ifremer|..|allegro-ddl.rtf,Web Publisher 2.0|html_2.0|index.html,Web Publisher (Simple HTML)|html|index.html,Model Simple Output|.|allegro-pim.txt</magicdraw.reports.list>
		<openoffice.server.port>8100</openoffice.server.port>
     </properties>
      
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <inherited>false</inherited>
            <executions>
              <execution>
                <id>generate model documentation</id>
                <phase>pre-site</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <target unless="magicdraw.report.skip">
				    <taskdef resource="net/sf/antcontrib/antlib.xml">
                      <classpath refid="maven.plugin.classpath" />
                    </taskdef>   
					<property name="outputDirectory" value="${project.reporting.outputDirectory}" />
					<ant antfile="${project.basedir}/../mda/src/main/ant/magicdraw.xml" target="generate-reports" inheritRefs="true" />
					
					<!-- FIXME : automatic PDF conversion not need for RTF reports, because report files must be fix manually   
					ant antfile="${project.basedir}/../mda/src/main/ant/openoffice.xml" target="start-server" inheritRefs="true" /> -->
                  </target>
                </configuration>
              </execution>
            </executions>
          </plugin>
		  
		  <!-- FIXME : automatic PDF conversion not need for RTF reports, because report files must still be fix manually
		  <plugin>
			<groupId>com.artofsolving</groupId>
			<artifactId>jodconverter-maven-plugin</artifactId>
			<version>2.2.1</version>	
			<configuration>
			   <sourceDirectory>${project.reporting.outputDirectory}/..</sourceDirectory>
			   <outputDirectory>${project.reporting.outputDirectory}</outputDirectory>
			   <include>*.rtf</include>
			   <outputFormat>pdf</outputFormat>
			   <port>${openoffice.server.port}</port>
			 </configuration>
			 <executions>
			   <execution>
				 <id>convert RTF reports to PDF</id>
				 <phase>site</phase>
				 <goals>
				   <goal>convert</goal>
				 </goals>				 
			   </execution>
			 </executions>
		  </plugin -->
        </plugins>      
      </build>
    </profile>
    
    <profile>
      <id>default-bundle</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <defaultGoal>package</defaultGoal>
        <plugins>
		  <plugin>
	        <artifactId>maven-dependency-plugin</artifactId>
	        <executions>
	          <execution>
	            <id>copy-dependencies</id>
	            <goals>
	              <goal>copy-dependencies</goal>
	            </goals>
	            <phase>prepare-package</phase>
	            <configuration>
	              <overWriteReleases>false</overWriteReleases>
	              <overWriteSnapshots>true</overWriteSnapshots>
	              <overWriteIfNewer>true</overWriteIfNewer>
	              <outputDirectory>${project.build.directory}/lib</outputDirectory>
	              <silent>true</silent>
	              <includeScope>runtime</includeScope>
	              <excludeScope>test</excludeScope>
	            </configuration>
	          </execution>
	        </executions>
	      </plugin>
	      
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>assembly-standalone</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <attach>true</attach>
                  <descriptors>
                    <descriptor>
                      src/main/assembly/standalone.xml
                    </descriptor>
                    <descriptor>
                      src/main/assembly/i18n.xml
                    </descriptor>
                    <descriptor>
                      src/main/assembly/help.xml
                    </descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>