<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>
  <groupId>org.xmlizer</groupId>
  <artifactId>XMLizer-Xmlz-Compiler</artifactId>
  <packaging>jar</packaging>
  <version>0.1-SNAPSHOT</version>
  <name>XMLizer-Xmlz-Compiler</name>
  <url>http://maven.apache.org</url>


      <!-- ********************************************* -->
    <!-- *********** Maven Environment : profiles **** -->
    <!-- ********************************************* -->
    <!-- use mvn -Pprofilename to use them for example -->

  <profiles>

    <!-- do not execute tests (generaly a bad idea...) -->
    <profile>
      <id>notests</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <properties>
        <maven.test.skip>true</maven.test.skip>
      </properties>
    </profile>
    <!-- do not build reports (speedup site generation in dev)  -->
    <profile>
      <id>noreports</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <properties>
        <maven.reports.generate>false</maven.reports.generate>
      </properties>
    </profile>

</profiles>


    <!-- ********************************************* -->
    <!-- ****************** Build settings *********** -->
    <!-- ********************************************* -->

  <build>
        <plugins>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>

            <!-- creation jar javadoc-->
             <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                  <show>private</show>
                  <nohelp>true</nohelp>
                 </configuration>
           <executions>
                <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                </execution>
            </executions>

                <version>2.6.1</version>
              </plugin>

            <!-- creation du jar -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                  <archive>
                    <manifest>
                      <addClasspath>true</addClasspath>
                      <mainClass>org.xmlizer.xmlzcompiler.App</mainClass>
                    </manifest>
                  </archive>
                </configuration>
            </plugin>

            <!-- creation du jar de source -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>attach-sources</id>
                            <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>


            <!-- creation du jar complet -->
             <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                  <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                  </descriptorRefs>

                  <archive>
                    <manifest>
                      <addClasspath>true</addClasspath>
                      <mainClass>org.xmlizer.xmlzcompiler.App</mainClass>
                    </manifest>
                  </archive>
                </configuration>

                <executions>
                  <execution>
                    <phase>package</phase>
                    <goals>
                      <goal>single</goal>
                    </goals>
                  </execution>
                </executions>
                </plugin>
        </plugins>
 </build>

    <!-- ********************************************* -->
    <!-- *********** Distribution settings *********** -->
    <!-- ********************************************* -->

    <distributionManagement>

      <repository>
          <uniqueVersion>false</uniqueVersion>
          <id>xmlizer-repo</id>
          <name>Repository</name>
          <url>scp://ssh.tuxfamily.org/home/xmlizerprj/xmlizerprj-repository/</url>
          <layout>default</layout>
      </repository>
      
    </distributionManagement>


    <!-- ******************************************** -->
    <!-- *********** Dependencies ******************* -->
    <!-- ******************************************** !-->


  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.xerial.maven</groupId>
        <artifactId>maven-antlr-plugin</artifactId>
        <version>1.3</version>
    </dependency>

  </dependencies>
</project>
