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

  <groupId>com.signavio</groupId>
  <artifactId>signavio-core-components</artifactId>
  <version>1.0</version>
  <packaging>jar</packaging>

  <name>signavio-core-components</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <repositories>
    <repository>
	  <id>JBoss.com</id>
	  <url>http://repository.jboss.com/maven2/</url>
	  <releases>
	    <enabled>true</enabled>
	  </releases>
	  <snapshots>
		  <enabled>true</enabled>
	  </snapshots>
	</repository>
  </repositories>

  <build>
    <plugins>
     
      <plugin>
		<artifactId>maven-compiler-plugin</artifactId>
		<configuration>
          <source>1.5</source>
          <target>1.5</target>
		  <showDeprecation>true</showDeprecation>
	      <showWarnings>true</showWarnings>
		  <optimize>true</optimize>
		</configuration>
	  </plugin>
	   
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.5</version>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>src/diagram/java</source>
                <source>src/syntaxchecker/java</source>
                <source>src/bpmn2_0/java</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <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>
    </plugins>
    <resources>
      <resource>
        <targetPath>META-INF/validation/xsd</targetPath>
        <filtering>false</filtering>
        <directory>src/bpmn2_0/java/de/hpi/bpmn2_0/validation/xsd</directory>
        <includes>
          <include>**/*.xsd</include>
        </includes>
      </resource>
    </resources>
  </build>

  <dependencies>
  	<dependency>
	  <groupId>org.json</groupId>
	  <artifactId>json</artifactId>
	  <version>20090211</version>
	</dependency>
	<!-- required for src/external/bpmn2_0 and src/external/syntaxchecker -->
	<dependency>
      <groupId>javax.xml</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-impl</artifactId>
      <version>2.1.7</version>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-xjc</artifactId>
      <version>2.1.7</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
