<project>

 <!-- General information -->

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.staxmate</groupId>
  <artifactId>staxmate</artifactId>
  <packaging>bundle</packaging>
  <version>2.0.0</version>

 <!-- Dependency information -->
 
  <dependencies>

    <!-- Stax API jar is needed; 1.0.1 preferable over vanilla 1.0, since
         it contains one critical bug fix to implementation auto-detection
      -->
    <dependency>
      <groupId>stax</groupId>
      <artifactId>stax-api</artifactId>
      <version>1.0.1</version>
    </dependency>
    <!-- Stax2 API (and matching RI), too, is required, not included,
         We need version 3.x of it to get Typed Access API
      -->
    <dependency>
      <groupId>org.codehaus.woodstox</groupId>
      <artifactId>stax2-api</artifactId>
      <version>[3.0.0,3.1.0)</version>
    </dependency>

    <!-- and for testing, JUnit is needed -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>[4.0.0,5.0.0)</version>
      <scope>test</scope>
    </dependency>

    <!-- Ditto for Woodstox -->
    <dependency>
      <groupId>org.codehaus.woodstox</groupId>
      <artifactId>woodstox-core-asl</artifactId>
      <version>[4.0.1, 4.5.0)</version>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <!-- Also: must specify 1.5 source level, not default -->
  <build>
    <plugins>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>  
          <configuration>
            <source>1.5</source>  
            <target>1.5</target>  
          </configuration>  
        </plugin>
        <plugin><!-- plug-in to attach source bundle in repo -->
          <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>

        <!-- Plus, let's make jars OSGi bundles as well  -->
        <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
<!--version>2.0.0</version-->
          <extensions>true</extensions>
          <configuration>
            <instructions>
              <Bundle-Name>StaxMate</Bundle-Name>
              <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
              <Bundle-Description>StaxMate -- Perfect companion for your stax processor</Bundle-Description>
              <Bundle-Vendor>FasterXML.com</Bundle-Vendor>
              <Import-Package>
javax.xml*,
org.w3c.dom,
org.codehaus.stax2*
</Import-Package>
              <Private-Package>
org.codehaus.staxmate.util
</Private-Package>
              <Export-Package>
org.codehaus.staxmate,
org.codehaus.staxmate.in,
org.codehaus.staxmate.out,
org.codehaus.staxmate.dom
</Export-Package>
            </instructions>
          </configuration>
        </plugin>

        <!-- Need to configure test task, to skip base classes
          -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
<!--
          <version>[2.4.0,)</version>
-->
          <configuration>
            <excludes>
              <exclude>**/Base*.java</exclude>
              <exclude>**/*$*.java</exclude>
            </excludes>
            <includes>
              <include>**/Test*.java</include>
            </includes>
          </configuration>
        </plugin>
        <!-- Also we do want HTML reports as well; will run if
             doing "site", or via explicit "mvn surefire-report:report"
          -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-report-plugin</artifactId>
<!--
          <version>[2.4.2,)</version>
-->
        </plugin>

        <!-- Let's also do code coverage -->
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
            <!-- version>2.0</version -->
        </plugin>

    </plugins>
  </build>

  <name>StaxMate</name>
  <description>
StaxMate is a light-weight framework that adds convenience to streaming XML-processing  without significant additional overhead.
It builds on top of a Stax (JSR-173) compliant XML processors such as Woodstox or Sjsxp (default Stax implementation of JDK 1.6) and offers two basic abstractions: Cursors, which build on XMLStreamReaders and Output objects, which build on XMLStreamWriters.
</description>
 <!-- Contact information -->
  <url>http://staxmate.codehaus.org</url>
  <issueManagement>
    <url>http://jira.codehaus.org/browse/STAXMATE</url>
  </issueManagement>

  <!-- Licensing -->
  <licenses>
    <license>
      <name>BSD</name>
      <url>http://www.opensource.org/licenses/bsd-license.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <organization>
    <name>Codehaus</name>
    <url>http://www.codehaus.org/</url>
  </organization>



  <!-- 20-Feb-2009, tatu: Let's default to Codehaus Maven2
       repository for now, shorter propagation delay
   -->
  <repositories>
    <repository>
      <id>codehaus</id>
      <name>Codehaus</name>
      <layout>default</layout>
      <url>http://repository.codehaus.org</url>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
    </repository>
    <repository>
      <id>maven</id>
      <name>Maven</name>
      <layout>default</layout>
      <url>http://repo1.maven.org/maven2</url>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>daily</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
    </repository>

  </repositories>

  <!-- Let's also try to automate deployments? -->
  <distributionManagement>
    <repository>
      <uniqueVersion>false</uniqueVersion>
      <id>codehaus-release</id>
      <name>Codehaus Maven2 Repository</name>
      <url>dav:https://dav.codehaus.org/repository/staxmate</url>
      <layout>default</layout>
    </repository>
    <snapshotRepository>
      <uniqueVersion>true</uniqueVersion>
      <id>codehaus-snapshot</id>
      <name>Propellors Snapshots</name>
      <url>dav:https://dav.codehaus.org/snapshots.repository/staxmate</url>
      <layout>default</layout>
    </snapshotRepository>
  </distributionManagement>

</project>
