<?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>org.jibx.config</groupId>
    <artifactId>jibx-ws-mvn</artifactId>
    <version>0.9.1</version>
  </parent>

  <groupId>org.jibx</groupId>
  <artifactId>jibx-ws</artifactId>
  <packaging>bundle</packaging>

  <name>jibx-ws</name>
  <description>JiBX jibx-ws code</description>

  <profiles>
    <profile> 
      <id>sonatype-oss-release</id>
      <build>
      <!-- ***CAREFUL*** This logic moves the source code to the current project, then
      does NOT compile it. This way, the api and source are in the repo. -->
        <plugins>
          <plugin>
            <artifactId>maven-resources-plugin</artifactId>
            <version>2.4.3</version>
            <executions>
          <execution>
            <id>copy-jibxws</id>
            <phase>validate</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${basedir}/src/main/java</outputDirectory>
              <resources>          
                <resource>
                  <directory>/home/don/workspace-jibx/jibx/web-services/jibxws/build/src</directory>
                  <filtering>false</filtering>
                  <includes>
                    <include>org/jibx/ws/**/*.java</include>
                  </includes>
                </resource>
              </resources>              
            </configuration>            
          </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Export-Package>
                org.jibx.ws.*;version=${project.version},
            </Export-Package>
        <Include-Resource>@/home/don/workspace-jibx/jibx/web-services/jibxws/lib/jibx-ws.jar;inline=**</Include-Resource>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.jibx</groupId>
      <artifactId>jibx-run</artifactId>
      <version>1.2.3</version>
    </dependency>
    <dependency> 
      <groupId>org.jibx</groupId> 
      <artifactId>jibx-extras</artifactId> 
      <version>1.2.3</version> 
      <scope>compile</scope> 
    </dependency> 
    <dependency> 
      <groupId>org.jibx</groupId> 
      <artifactId>xbis-jibx</artifactId> 
      <version>1.2.3</version> 
      <scope>compile</scope> 
    </dependency>
    
    <dependency> 
      <groupId>commons-logging</groupId> 
      <artifactId>commons-logging</artifactId> 
      <version>1.1.1</version> 
      <scope>compile</scope> 
    </dependency>
    <dependency> 
      <groupId>javax.servlet</groupId> 
      <artifactId>servlet-api</artifactId> 
      <version>2.4</version> 
      <scope>provided</scope> 
    </dependency> 
    <dependency> 
      <groupId>log4j</groupId> 
      <artifactId>log4j</artifactId> 
      <version>1.2.8</version> 
      <optional>true</optional> 
    </dependency> 
    <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <version>4.5</version> 
      <scope>test</scope> 
    </dependency>
    <dependency>
      <groupId>xmlunit</groupId> 
      <artifactId>xmlunit</artifactId> 
      <version>1.2</version> 
      <scope>test</scope> 
    </dependency> 
    <dependency> 
      <groupId>xpp3</groupId> 
      <artifactId>xpp3</artifactId> 
      <version>1.1.3.4.O</version> 
      <optional>true</optional> 
    </dependency> 
    <dependency> 
      <groupId>org.springframework</groupId> 
      <artifactId>spring-webmvc</artifactId> 
      <version>2.5.6</version> 
      <optional>true</optional> 
    </dependency> 
    <dependency> 
      <groupId>org.springframework</groupId> 
      <artifactId>spring-aop</artifactId> 
      <version>2.5.6</version> 
      <optional>true</optional> 
    </dependency> 
    <dependency> 
      <groupId>cglib</groupId> 
      <artifactId>cglib</artifactId> 
      <version>2.2</version> 
      <optional>true</optional> 
    </dependency> 
</dependencies>

</project>
