<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>
        <artifactId>teiid-parent</artifactId>
        <groupId>org.teiid</groupId>
        <version>10.0.0.Final</version>
    </parent>
    <groupId>org.teiid</groupId>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>teiid-olingo</artifactId>
    <name>teiid-olingo</name>
    <description>Teiid OData4 Server module</description>
    <packaging>bundle</packaging>
    
    <build>
        <plugins>
            <plugin>   
              <groupId>org.apache.felix</groupId>
              <artifactId>maven-bundle-plugin</artifactId>
              <configuration>
               <instructions>
                <Import-Package>!org.jboss.*,*</Import-Package>
               </instructions>
              </configuration>
            </plugin>      
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestFile>src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
                    </archive>
                    <archiveClasses>true</archiveClasses>
                    <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
                    <primaryArtifact>false</primaryArtifact>
                    <!-- Needed to use classifier to avoid conflicting with top level artifact-->
                    <classifier>odata4</classifier>
                </configuration>
                <executions>
                    <execution>
                        <id>create-assemblies</id>
                        <phase>package</phase>
                        <goals>
                            <goal>war</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>

        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-common-core</artifactId>
        </dependency>
        
        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-engine</artifactId>
        </dependency>

        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-api</artifactId>
        </dependency>

        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-client</artifactId>
        </dependency>

        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-admin</artifactId>
        </dependency>

        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-olingo-patches</artifactId>
        </dependency>
        
        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-olingo-common</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.olingo</groupId>
            <artifactId>odata-server-api</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.olingo</groupId>
            <artifactId>odata-server-core</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.olingo</groupId>
            <artifactId>odata-server-core-ext</artifactId>
        </dependency>
                        
        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-runtime</artifactId>
        </dependency>

        <dependency>
            <groupId>org.jboss.spec.javax.servlet</groupId>
            <artifactId>jboss-servlet-api_3.1_spec</artifactId>
        </dependency>
        
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
                
        <!--  runtime dependencies -->

        <!-- odata-server-core runtime dependencies -->
        <dependency>
            <groupId>com.fasterxml</groupId>
            <artifactId>aalto-xml</artifactId>
        </dependency> 
        
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
        </dependency>
        
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </dependency>
                                
        <!-- aalto-xml runtime dependency -->
		<dependency>
		    <groupId>org.codehaus.woodstox</groupId>
		    <artifactId>stax2-api</artifactId>
		</dependency>

        <!-- Test dependencies -->
        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-engine</artifactId>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-common-core</artifactId>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>javax.servlet-api</artifactId>                
                </exclusion>
            </exclusions>            
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-servlet</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-http</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-client</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <artifactId>translator-loopback</artifactId>
            <groupId>org.teiid.connectors</groupId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <artifactId>translator-jdbc</artifactId>
            <groupId>org.teiid.connectors</groupId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-metadata</artifactId>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>org.jboss.spec.javax.transaction</groupId>
          <artifactId>jboss-transaction-api_1.2_spec</artifactId>
          <scope>test</scope>
        </dependency>        
        <dependency>
            <groupId>org.jboss.spec.javax.resource</groupId>
            <artifactId>jboss-connector-api_1.7_spec</artifactId>
            <scope>test</scope>
        </dependency>        
        <dependency>
            <groupId>org.teiid</groupId>
            <artifactId>teiid-runtime</artifactId>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
    </dependencies>

</project>
