<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.jboss.teiid</groupId>
    <version>9.0.0.Beta1</version>
  </parent>
  
  <modelVersion>4.0.0</modelVersion>
  <artifactId>teiid-odata</artifactId>
  <name>teiid-odata</name>
  <description>Teiid OData 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>odata2</classifier>
                </configuration>
                <executions>
                    <execution>
                        <id>create-assemblies</id>
                        <phase>package</phase>
                        <goals>
                            <goal>war</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <descriptors>
                        <!-- Assembly plugin does not allow multiple DependencySets see MASSEMBLY-577 thus needed to do here-->
                        <descriptor>kits/wildfly-dist.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                  <execution>
                    <id>create-assemblies</id>
                    <phase>package</phase>
                    <goals>
                      <goal>single</goal>
                    </goals>
                  </execution>
                </executions>
            </plugin>              
        </plugins>
    </build>	
  
  <dependencies>

    <dependency>
      <groupId>org.jboss.teiid</groupId>
      <artifactId>teiid-engine</artifactId>
    </dependency>
    
    <dependency>
      <groupId>org.jboss.teiid</groupId>
      <artifactId>teiid-api</artifactId>
    </dependency>
               
    <dependency>
      <groupId>org.jboss.teiid</groupId>
      <artifactId>teiid-client</artifactId>
    </dependency>
    
    <dependency>
      <groupId>org.jboss.teiid</groupId>
      <artifactId>teiid-admin</artifactId>
    </dependency>    
    
    <dependency>
      <groupId>org.jboss.teiid</groupId>
      <artifactId>teiid-runtime</artifactId>
    </dependency>      
    
    <dependency>
      <groupId>org.jboss.teiid</groupId>
      <artifactId>teiid-runtime</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency> 
    
    <dependency>
      <groupId>org.jboss.teiid.connectors</groupId>
      <artifactId>translator-odata</artifactId>
    </dependency>
              
    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jaxrs</artifactId>
    </dependency>
    
    <dependency>
        <groupId>org.jboss.oreva</groupId>
        <artifactId>odata-core</artifactId>
    </dependency>
    
    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
    </dependency>
    
    <dependency>
        <artifactId>common</artifactId>
        <groupId>org.jboss.oreva</groupId>
    </dependency>

    <dependency>
        <groupId>org.jboss.spec.javax.servlet</groupId>
        <artifactId>jboss-servlet-api_3.1_spec</artifactId>
    </dependency>
    
    <dependency>
        <groupId>org.jboss.spec.javax.ws.rs</groupId>
        <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
    </dependency>    
    
    <dependency>
      <groupId>org.jboss.spec.javax.annotation</groupId>
      <artifactId>jboss-annotations-api_1.2_spec</artifactId>
    </dependency>
          
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
    </dependency>

    <dependency>
        <groupId>org.jboss.spec.javax.resource</groupId>
        <artifactId>jboss-connector-api_1.7_spec</artifactId>
    </dependency>

    <dependency>
      <groupId>org.jboss.spec.javax.transaction</groupId>
      <artifactId>jboss-transaction-api_1.2_spec</artifactId>
    </dependency>                  

    <dependency>
      <groupId>org.jboss.teiid</groupId>
      <artifactId>teiid-engine</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>    
    
    <dependency>
      <groupId>org.jboss.teiid</groupId>
      <artifactId>teiid-common-core</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>     
    
    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>tjws</artifactId>
        <scope>test</scope>
    </dependency>
        
  </dependencies>
  
</project>
