<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>com.iona.fuse</groupId>
    <artifactId>fuse-console-parent</artifactId>
    <version>1.0.0-fuse-SNAPSHOT</version>
  </parent>-->

  <groupId>org.fusesource</groupId>
  <artifactId>fuse-web-console</artifactId>
  <version>1.0</version>
  <!--<packaging>war</packaging>-->
  <packaging>jar</packaging>

  <name>FUSE Web Console</name>

  <description>FUSE Web Console</description>

  <properties>
    <!--<activemq-version>5.1.0.0-fuse</activemq-version>-->
    <activemq-version>5.3.0.1-fuse</activemq-version>
    <xbean-version>3.1.0.3-fuse</xbean-version>
    <releases-repo-id>open.iona.m2</releases-repo-id>
    <releases-repo-name>IONA Open Source Community Release Repository</releases-repo-name>
    <releases-repo-url>http://repo.open.iona.com/maven2</releases-repo-url>
    <snapshots-repo-id>open.iona.m2-snapshot</snapshots-repo-id>
    <snapshots-repo-name>IONA Open Source Community Snapshot Repository</snapshots-repo-name>
    <snapshots-repo-url>http://repo.open.iona.com/maven2-snapshot</snapshots-repo-url>

    <release-repo-url>scpexe://repo.fusesource.com/www/repo.fusesource.com/maven2</release-repo-url>
    <snapshot-repo-url>scpexe://repo.fusesource.com/www/repo.fusesource.com/maven2-snapshot</snapshot-repo-url>

    <m1-repo-url>scpexe://repo.open.iona.com/www/repo.open.iona.com/maven1</m1-repo-url>
    <site-repo-url>scpexe:disabled</site-repo-url>
  </properties>

  <url>http://open.iona.com/products/fuse-console/</url>

  <organization>
    <name>FuseSource</name>
    <url>http://fusesource.com</url>
  </organization>

  <licenses>
    <license>
      <name>GNU AFFERO GENERAL PUBLIC LICENSE (AGPL) Version 3.0</name>
      <url>http://www.fsf.org/licensing/licenses/agpl.html</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  
  <scm>
    <connection>scm:svn:https://projects.open.iona.com/projects/svn/iona/console/tags/fuse-web-console-1.0</connection>
    <developerConnection>scm:svn:https://projects.open.iona.com/projects/svn/iona/console/tags/fuse-web-console-1.0</developerConnection>
    <url>https://projects.open.iona.com/projects/svn/iona/console/tags/fuse-web-console-1.0</url>
  </scm>

  <repositories>
    <!-- Default repository -->
    <repository>
      <id>central</id>
      <name>Default maven repo</name>
      <url>http://repo1.maven.org/maven2</url>
    </repository>
    <!-- ServiceMix repo -->
    <repository>
      <id>servicemix</id>
      <name>ServiceMix Repository</name>
      <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
    </repository>
    <!-- Spring Milestone repo -->
    <repository>
      <id>spring-milestone</id>
      <name>Spring Milestone Repository</name>
      <url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
    </repository>

    <!--
        <repository>
          <id>gwt-maven</id>
          <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
        </repository>
        <repository>
          <id>gwtforge</id>
          <url>http://gwtforge.com/maven-repository/trunk/</url>
        </repository>
    -->
    <repository>
      <id>${releases-repo-id}</id>
      <url>${releases-repo-url}</url>
    </repository>
    <repository>
      <id>${snapshots-repo-id}</id>
      <url>${snapshots-repo-url}</url>
    </repository>
    <repository>
      <id>local</id>
      <url>file://repo</url>
    </repository>
    <!--
        <repository>
          <id>openqa.org</id>
          <name>Openqa Release Repository</name>
          <url>http://archiva.openqa.org/repository/releases</url>
          <layout>default</layout>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <releases>
            <enabled>true</enabled>
          </releases>
        </repository>
        <repository>
          <id>openqa.org</id>
          <name>Openqa Snapshot Repository</name>
          <url>http://archiva.openqa.org/repository/snapshots</url>
          <layout>default</layout>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>daily</updatePolicy>
            <checksumPolicy>ignore</checksumPolicy>
          </snapshots>
          <releases>
            <enabled>false</enabled>
          </releases>
        </repository>
    -->
  </repositories>

  <!--
    <pluginRepositories>
      <pluginRepository>
        <id>gwtforge</id>
        <url>http://gwtforge.com/maven-repository/trunk/</url>
      </pluginRepository>
      <pluginRepository>
        <id>gwt-maven</id>
        <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
      </pluginRepository>
    </pluginRepositories>
  -->

  <!--
  <repositories>
    <repository>
      <id>gwt-maven</id>
      <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>gwt-maven</id>
      <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
    </pluginRepository>
  </pluginRepositories>-->
  <!--
  <repositories>
    <repository>
      <id>Codehaus Snapshots</id>
      <url>http://snapshots.repository.codehaus.org/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>Codehaus Snapshots</id>
      <url>http://snapshots.repository.codehaus.org/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>-->


  <distributionManagement>
    <repository>
      <id>${releases-repo-id}</id>
      <name>${releases-repo-name}</name>
      <url>${release-repo-url}</url>
      <uniqueVersion>false</uniqueVersion>
    </repository>
    <snapshotRepository>
      <id>${snapshots-repo-id}</id>
      <name>${snapshots-repo-name}</name>
      <url>${snapshot-repo-url}</url>
      <uniqueVersion>false</uniqueVersion>
    </snapshotRepository>
  </distributionManagement>

  <dependencies>
    <!-- only required for GWTCompiler -->
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-dev</artifactId>
      <version>1.5.1</version>
      <classifier>linux</classifier>
    </dependency>

    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-servlet</artifactId>
      <version>1.5.1</version>
      <!--<version>1.5-snapshot</version>-->
    </dependency>


    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging-api</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.14</version>
    </dependency>


    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <!--<version>1.5.0-rc1</version>-->
      <!--<version>1.5-snapshot</version>-->
      <version>1.5.1</version>
    </dependency>

    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring</artifactId>
      <version>2.5.5</version>
    </dependency>

    <dependency>
      <groupId>org.apache.activemq</groupId>
      <artifactId>activemq-core</artifactId>
      <version>${activemq-version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.activemq</groupId>
      <artifactId>activemq-web</artifactId>
      <version>${activemq-version}</version>
    </dependency>


    <dependency>
      <groupId>com.google.gwt.incubator</groupId>
      <artifactId>gwt-incubator</artifactId>
      <version>1.4</version>
    </dependency>

    <dependency>
      <groupId>com.google.gwt-google-apis</groupId>
      <artifactId>gwt-visualization</artifactId>
      <version>1.0.1-fuse</version>
    </dependency>


    <dependency>
      <groupId>com.google.gwt-diagrams</groupId>
      <artifactId>gwt-diagrams</artifactId>
      <version>0.1</version>
    </dependency>

    <dependency>
      <groupId>com.google.gwt-diagrams</groupId>
      <artifactId>gwt-dragdrop</artifactId>
      <version>1.2.6</version>
    </dependency>

<!--
    <dependency>
      <groupId>com.netthreads.gwt</groupId>
      <artifactId>jsviz</artifactId>
      <version>0.0.2-patch</version>
    </dependency>
-->

    <!--
        <dependency>
          <groupId>org.apache.tapestry</groupId>
          <artifactId>tapestry-framework</artifactId>
          <version>4.1.5</version>
          <scope>provided</scope>
        </dependency>
    -->

    <!--
        <dependency>
          <groupId>com.googlecode.gwtx</groupId>
          <artifactId>GWTx</artifactId>
          <version>20070110</version>
        </dependency>
    -->

    <!-- testing -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>

    <!--
        <dependency>
          <groupId>org.apache.xbean</groupId>
          <artifactId>xbean-spring</artifactId>
          <version>3.1.0.2-fuse</version>
          <scope>test</scope>
          <exclusions>
            <exclusion>
              <groupId>qdox</groupId>
              <artifactId>qdox</artifactId>
            </exclusion>
          </exclusions>
        </dependency>
    -->

    <dependency>
      <groupId>org.apache.activemq</groupId>
      <artifactId>activemq-camel</artifactId>
      <version>${activemq-version}</version>
      <scope>test</scope>
    </dependency>
    <!-- TODO we can remove this dependency later? -->
    <dependency>
      <groupId>org.apache.activemq</groupId>
      <artifactId>activemq-pool</artifactId>
      <version>${activemq-version}</version>
      <scope>test</scope>
    </dependency>


    <dependency>
      <groupId>com.iona.fuse.osgi</groupId>
      <artifactId>com.iona.fuse.osgi</artifactId>
      <version>1.0</version>
    </dependency>

    <dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.osgi.core</artifactId>
      <version>1.0.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.osgi.compendium</artifactId>
      <version>1.0.0</version>
    </dependency>

    <!--
            <dependency>
                <groupId>org.openqa.selenium.client-drivers</groupId>
                <artifactId>selenium-java-client-driver</artifactId>
                <version>1.0-beta-1</version>
                <scope>test</scope>
            </dependency>
    -->
  </dependencies>


  <build>
    <!--<finalName>fuse-console</finalName>-->
    <sourceDirectory>src</sourceDirectory>
    <!-- included for GWTCompiler -->
    <resources>
      <resource>
        <directory>src</directory>
        <includes>
          <include>**/*.css</include>
          <include>**/*.gif</include>
          <include>**/*.html</include>
          <include>**/*.java</include>
          <include>**/*.jpg</include>
          <include>**/*.png</include>
          <include>**/*.properties</include>
          <include>**/*.xml</include>
        </includes>
      </resource>
    </resources>
    <testSourceDirectory>test</testSourceDirectory>
    <testResources>
      <testResource>
        <directory>test</directory>
        <includes>
          <include>**/*.xml</include>
          <include>*.log</include>
        </includes>
      </testResource>
      <!-- included for GWTCompiler -->
      <testResource>
        <directory>src</directory>
        <includes>
          <include>**/*.css</include>
          <include>**/*.gif</include>
          <include>**/*.html</include>
          <include>**/*.java</include>
          <include>**/*.jpg</include>
          <include>**/*.png</include>
          <include>**/*.properties</include>
          <include>**/*.xml</include>
        </includes>
      </testResource>
    </testResources>
    <!--
        <resources>
          <resource>
            <directory>src/webapp</directory>
          </resource>
        </resources>
    -->

    <plugins>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.0</version>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <forkMode>pertest</forkMode>
          <excludes>
            <exclude>**/LoggingServiceTest.*</exclude>
          </excludes>
        </configuration>
      </plugin>


      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <!-- TODO can't find another phase that works thats called after test but before package -->
            <!--<phase>process-test-classes</phase>-->
            <phase>package</phase>
            <goals>
              <goal>exec</goal>
            </goals>
          </execution>
        </executions>

        <dependencies>
        </dependencies>

        <configuration>
          <executable>java</executable>
          <classpathScope>test</classpathScope>
          <!--<mainClass>com.google.gwt.dev.GWTCompiler</mainClass>-->
          <includePluginDependencies>true</includePluginDependencies>
          <includeProjectDependencies>true</includeProjectDependencies>

          <arguments>
            <argument>-Xmx512m</argument>
            <argument>-classpath</argument>
            <classpath />
            <argument>com.google.gwt.dev.GWTCompiler</argument>
            <argument>-gen</argument>
            <argument>target/gwt-gen</argument>
            <argument>-out</argument>
            <argument>target/www</argument>
            <argument>-logLevel</argument>
            <argument>INFO</argument>
            <argument>org.fusesource.web.console.FuseConsole</argument>
          </arguments>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <!--<version>2.1</version>-->
        <executions>
          <execution>
            <id>war</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
            <configuration>
              <descriptors>
                <descriptor>descriptors/war.xml</descriptor>
              </descriptors>
              <!--<archiveBaseDirectory>/</archiveBaseDirectory>-->
              <classifier>war</classifier>
              <finalName>${pom.artifactId}-${pom.version}</finalName>
              <!--<appendAssemblyId>false</appendAssemblyId>-->
            </configuration>
          </execution>

        </executions>
      </plugin>
      <!--
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.1-alpha-2</version>
    <configuration>
      <webXml>webapp/WEB-INF/web.xml</webXml>
      -->
      <!-- WEB-INF/lib/*.jar,WEB-INF/lib, -->
      <!--
                <packagingExcludes>
                  WEB-INF/classes/**/*.java,
                  WEB-INF/classes/org/fusesource/web/console/client/activemq/**/*,
                  WEB-INF/classes/org/fusesource/web/console/client/camel/**/*,
                  WEB-INF/classes/org/fusesource/web/console/client/jmx/**/*,
                  WEB-INF/classes/org/fusesource/web/console/client/util/**/*,
                  WEB-INF/classes/org/fusesource/web/console/client/*,
                  WEB-INF/classes/org/fusesource/web/console/public/**/*,
                  WEB-INF/classes/org/fusesource/web/console/public,
                  WEB-INF/classes/org/fusesource/web/console/*.gwt.xml,
                  .gwt-tmp/**/*,.gwt-tmp</packagingExcludes>

                <warSourceDirectory>webapp</warSourceDirectory>
                <webResources>
                  <resource>
                    <directory>target/www</directory>
                  </resource>
                </webResources>
              </configuration>
            </plugin>
      -->

      <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.12rc1</version>
        <configuration>
          <webApp>${basedir}/target/${pom.artifactId}-${pom.version}-war.war</webApp>
          <!--<webAppSourceDirectory>${basedir}/target/${pom.artifactId}-fuse-console</webAppSourceDirectory>-->
          <!--
                    <webAppSourceDirectory>${basedir}/target/${pom.artifactId}-${pom.version}</webAppSourceDirectory>
                    <webXml>${basedir}/target/${pom.artifactId}-${pom.version}/WEB-INF/web.xml</webXml>
          -->

          <systemProperties>
            <systemProperty>
              <name>com.sun.management.jmxremote</name>
              <value />
            </systemProperty>
          </systemProperties>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring</artifactId>
            <version>2.5.5</version>
          </dependency>

          <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-core</artifactId>
            <version>${activemq-version}</version>
          </dependency>
          <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-web</artifactId>
            <version>${activemq-version}</version>
            <exclusions>
              <exclusion>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-util</artifactId>
              </exclusion>
            </exclusions>
          </dependency>
          <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-camel</artifactId>
            <version>${activemq-version}</version>
          </dependency>
          <!-- TODO we can remove this dependency later? -->
          <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-pool</artifactId>
            <version>${activemq-version}</version>
          </dependency>
          <dependency>
            <groupId>org.apache.xbean</groupId>
            <artifactId>xbean-spring</artifactId>
            <version>${xbean-version}</version>
            <exclusions>
              <exclusion>
                <groupId>qdox</groupId>
                <artifactId>qdox</artifactId>
              </exclusion>
            </exclusions>
          </dependency>
          <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.14</version>
            <!--<version>1.2.16-dev-fuse</version>-->
            <!--<scope>test</scope>-->
          </dependency>
          <!-- TODO add logging stuff for jetty... -->
        </dependencies>
      </plugin>

      <!--
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>selenium-maven-plugin</artifactId>
              <executions>
                <execution>
                  <phase>pre-integration-test</phase>
                  <goals>
                    <goal>start-server</goal>
                  </goals>
                  <configuration>
                    <background>true</background>
                    <logOutput>true</logOutput>
                  </configuration>
                </execution>
              </executions>
            </plugin>
      -->


      <!--
      <plugin>
        <groupId>gwtforge.gwtplugin</groupId>
        <artifactId>gwtforge.gwtplugin</artifactId>
        <version>1.5-dev-27-01-2008</version>

        --><!--Associate the plugin to the maven compile phase--><!--
        <executions>
          <execution>
            <phase>compile</phase>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>

        <configuration>
          --><!-- The plugin will discover the modules by itself --><!--
          --><!-- Define here the target compilation directory --><!--
          <out>.</out>
          --><!--  Define here the log level of the gwt compiler --><!--
          --><!--  Could be : INFO , ERROR , WARN , SPAM --><!--
          <loglevel>ALL</loglevel>

          --><!-- OPTIONAL JVM OPTIONS --><!--
          --><!-- See http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.0./Heap/Size/7Coutline --><!--
          --><!--  Define the java heap size --><!--
          <initialheapsize>500m</initialheapsize>
          --><!--  Define the maximum java heap size  --><!--
          <maximumheapsize>500m</maximumheapsize>
          --><!-- Define the heap size for young generation --><!--
          <younggenerationheapsize>250m</younggenerationheapsize>
        </configuration>
      </plugin>-->


      <!--

<plugin>
<groupId>com.totsp.gwt</groupId>
<artifactId>maven-googlewebtoolkit2-plugin</artifactId>
<configuration>
  <logLevel>INFO</logLevel>
  <runTarget>org.fusesource.web.console.FuseConsole/index.html</runTarget>
  <compileTargets>
    <compileTarget>org.fusesource.web.console.FuseConsole</compileTarget>
  </compileTargets>
  <webXml>webapp/WEB-INF/web.xml</webXml>
</configuration>
<executions>
  <execution>
    <goals>
      -->
      <!--<goal>mergewebxml</goal>-->
      <!--
                    <goal>compile</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
      -->

      <!--
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>gwt-maven-plugin</artifactId>
              <version>1.0-SNAPSHOT</version>
              <executions>
                <execution>
                  <configuration>
                    <module>org.fusesource.web.console.FuseConsole</module>
                  </configuration>
                  <goals>
                    <goal>compile</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
      -->

    </plugins>
  </build>

</project>