<?xml version="1.0" encoding="UTF-8"?>
<!-- =======================================================================
        Maven Project Configuration File

        This is used for compiling the VisAD library from the sources at:
        ftp://ftp.ssec.wisc.edu/pub/visad-2.0/visad_src.jar

        Note that this project is not strictly a child of edu.ucar NetCDF
        projects. However we use that parent since we are deploying VisAD
        for NetCDF purpose, and we want to ensure consistent versioning
        and build configuration.
     ======================================================================= -->
  <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>edu.ucar</groupId>
    <artifactId>netcdf-parent</artifactId>
    <version>4.2u1</version>
  </parent>


  <!-- ===========================================================
           Module Description

           We use the "LAST UPDATED" file content as the version
           number: ftp://ftp.ssec.wisc.edu/pub/visad-2.0/DATE
       =========================================================== -->
  <groupId>edu.wisc</groupId>
  <artifactId>visad</artifactId>
  <packaging>jar</packaging>
  <version>${visad.version}</version>
  <name>VisAD</name>
  <description>
    VisAD is a Java component library for interactive and collaborative visualization and analysis
    of numerical data. The name VisAD is an acronym for "Visualization for Algorithm Development.
  </description>
  <url>http://www.ssec.wisc.edu/~billh/visad.html</url>

  <licenses>
    <license>
      <name>Lesser General Public License (LGPL)</name>
      <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>


  <!-- ===========================================================
           Developers and Contributors
       =========================================================== -->
  <developers>
    <developer>
      <name>Bill Hibbard</name>
      <organization>Space Science and Engineering Center</organization>
      <organizationUrl>http://www.ssec.wisc.edu/</organizationUrl>
      <roles>
        <role>Java Developper</role>
      </roles>
    </developer>
  </developers>


  <!-- ===========================================================
           Dependencies
       =========================================================== -->
  <dependencies>
    <dependency>
      <groupId>gnu-regexp</groupId>
      <artifactId>gnu-regexp</artifactId>
    </dependency>

<!-- We should include the following dependency and add the HTTPClient directory on
     the exclusion list in the build configuration below. Unfortunately VisAD seems
     to use a slightly different version than the one available on Maven repository.

    <dependency>
      <groupId>HTTPClient</groupId>
      <artifactId>HTTPClient</artifactId>
      <version>0.3-3</version>
    </dependency>
-->
  </dependencies>


  <!-- ===========================================================
           Build configuration

           This configuration merges the content of the common/src
           directory with unidataCommon, then exclude JCIP.
       =========================================================== -->
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>Jama/**</exclude> <!-- Apparently not used. -->
            <exclude>examples/**</exclude>
            <exclude>gnu/**</exclude>  <!-- Provided by the gnu-regexp dependency. -->
            <exclude>**/test/**</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
    <resources>
      <resource>
        <directory>src</directory>
        <includes>
          <include>**/*.jhf</include>
          <include>**/*.gif</include>
          <include>loci/**/*.txt</include>
        </includes>
      </resource>
    </resources>
  </build>

</project>
