<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.overlord.sramp</groupId>
    <artifactId>s-ramp-ui</artifactId>
    <version>0.4.0.Final</version>
  </parent>
  <artifactId>s-ramp-ui-war-fuse61</artifactId>
  <packaging>war</packaging>
  <name>S-RAMP UI: Web App (Fuse 6.1)</name>
  
  <dependencies>
    <!-- The base WAR being extended -->
    <dependency>
      <groupId>org.overlord.sramp</groupId>
      <artifactId>s-ramp-ui-war-jetty8</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>

    <!-- Standard servlet dependencies -->
    <dependency>
      <groupId>org.jboss.spec.javax.servlet</groupId>
      <artifactId>jboss-servlet-api_3.0_spec</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.overlord</groupId>
      <artifactId>overlord-commons-osgi</artifactId>
      <scope>provided</scope>
    </dependency>
    
    <!-- Some additional dependencies to include in the WAR -->
    <dependency>
      <groupId>org.jboss.weld.servlet</groupId>
      <artifactId>weld-servlet-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.overlord</groupId>
      <artifactId>overlord-commons-osgi-weld</artifactId>
    </dependency>
    <dependency>
      <groupId>org.overlord</groupId>
      <artifactId>overlord-commons-errai-fuse-support</artifactId>
    </dependency>
  </dependencies>
  
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>regex-property</id>
            <goals>
              <goal>regex-property</goal>
            </goals>
            <configuration>
              <name>project.version.osgi</name>
              <value>${project.version}</value>
              <regex>-SNAPSHOT</regex>
              <replacement>.Snapshot</replacement>
              <failIfNoMatch>false</failIfNoMatch>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <warName>s-ramp-ui-fuse61</warName>
          <overlays>
            <overlay>
              <groupId>${project.groupId}</groupId>
              <artifactId>s-ramp-ui-war-jetty8</artifactId>
              <excludes>
                <exclude>WEB-INF/lib/resteasy-*.jar</exclude>
                <exclude>WEB-INF/lib/httpclient-*.jar</exclude>
                <exclude>WEB-INF/lib/httpcore-*.jar</exclude>
                <exclude>WEB-INF/lib/log4j-*.jar</exclude>
                <exclude>WEB-INF/lib/slf4j-api-*.jar</exclude>
                <exclude>WEB-INF/lib/slf4j-ext-*.jar</exclude>
                <exclude>WEB-INF/lib/slf4j-log4j12-*.jar</exclude>
                <exclude>WEB-INF/lib/cal10n-api-*.jar</exclude>
                <exclude>WEB-INF/lib/overlord-commons-auth-*.jar</exclude>
              </excludes>
            </overlay>
          </overlays>
          <archive>
            <manifestEntries>
              <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
              <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
              <Bundle-Version>${project.version.osgi}</Bundle-Version>
              <Bundle-Name>${project.name}</Bundle-Name>
              <Web-ContextPath>/s-ramp-ui</Web-ContextPath>
              <Webapp-Context>/s-ramp-ui</Webapp-Context>
              <Import-Package>
                javax.servlet,
                javax.servlet.http,
                javax.servlet.jsp,
                javax.security.auth.login,
                javax.xml.parsers,
                javax.xml.bind,
                javax.xml.bind.annotation,
                javax.xml.datatype,
                javax.xml.transform,
                javax.xml.transform.stream,
                javax.xml.namespace,
                javax.xml.xpath,
                javax.ws.rs,
                javax.ws.rs.core,
                javax.ws.rs.ext,
                javax.imageio,
                javax.el,
                javax.imageio.plugins.jpeg,
                javax.net.ssl,
                org.osgi.framework,
                org.osgi.framework.wiring,
                org.xml.sax,
                org.xml.sax.helpers,
                org.w3c.dom,
                org.apache.karaf.jaas.boot.principal,
                javax.security.auth.callback,
                org.slf4j,
                org.slf4j.cal10n,
                org.slf4j.ext,
                org.eclipse.jetty.plus.jaas,
                org.eclipse.jetty.servlet,
                org.eclipse.jetty.server.handler,
                org.apache.http,
                org.apache.http.client,
                org.apache.http.client.methods,
                org.apache.http.impl.client,
                org.apache.http.protocol,
                org.jboss.resteasy.util,
                org.jboss.resteasy.specimpl,
                org.jboss.resteasy.plugins.interceptors,
                org.jboss.resteasy.plugins.interceptors.encoding,
                org.jboss.resteasy.plugins.server.servlet,
                org.jboss.resteasy.plugins.providers,
                org.jboss.resteasy.plugins.providers.jaxb,
                org.jboss.resteasy.plugins.providers.multipart,
                org.jboss.resteasy.plugins.providers.atom.app,
                org.jboss.resteasy.plugins.providers.atom,
                org.jboss.resteasy.client,
                org.jboss.resteasy.client.core.executors,
                org.jboss.resteasy.annotations.providers.multipart,
                org.jboss.resteasy.spi,
                org.overlord.commons.osgi.vfs,
                ch.qos.cal10n,
                org.overlord.commons.auth.util,
                org.overlord.commons.auth.jetty8
              </Import-Package>
              <Bundle-ClassPath>
                .,
                WEB-INF/classes,
                WEB-INF/lib/activation-${version.javax.activation}.jar,
                WEB-INF/lib/aether-api-${version.org.sonatype.aether}.jar,
                WEB-INF/lib/aether-impl-${version.org.sonatype.aether}.jar,
                WEB-INF/lib/aether-spi-${version.org.sonatype.aether}.jar,
                WEB-INF/lib/aether-util-${version.org.sonatype.aether}.jar,
                WEB-INF/lib/aopalliance-1.0.jar,
                WEB-INF/lib/apache-mime4j-0.6.jar,
                WEB-INF/lib/bcel-5.2.jar,
                WEB-INF/lib/cdi-api-${version.javax.enterprise.cdi}.jar,
                WEB-INF/lib/commons-codec-${version.commons-codec}.jar,
                WEB-INF/lib/commons-collections-${version.commons-collections}.jar,
                WEB-INF/lib/commons-compress-1.4.1.jar,
                WEB-INF/lib/commons-configuration-${version.commons-configuration}.jar,
                WEB-INF/lib/commons-fileupload-${version.commons-fileupload}.jar,
                WEB-INF/lib/commons-io-${version.commons-io}.jar,
                WEB-INF/lib/commons-lang-${version.commons-lang}.jar,
                WEB-INF/lib/commons-lang3-${commons.lang3.version}.jar,
                WEB-INF/lib/commons-logging-${version.commons-logging}.jar,
                WEB-INF/lib/commons-logging-api-1.1.jar,
                WEB-INF/lib/dom4j-${version.dom4j}.jar,
                WEB-INF/lib/errai-bus-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-cdi-client-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-cdi-jetty-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-codegen-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-codegen-gwt-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-common-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-config-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-ioc-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-ioc-bus-support-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-marshalling-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-tools-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-ui-${version.org.jboss.errai}.jar,
                WEB-INF/lib/errai-weld-integration-${version.org.jboss.errai}.jar,
                WEB-INF/lib/geronimo-spec-jta-1.0.1B-rc4.jar,
                WEB-INF/lib/guava-${version.com.google.guava}.jar,
                WEB-INF/lib/guice-3.0.jar,
                WEB-INF/lib/hsqldb-1.8.0.7.jar,
                WEB-INF/lib/jackson-core-asl-${version.org.codehaus.jackson}.jar,
                WEB-INF/lib/jackson-mapper-asl-${version.org.codehaus.jackson}.jar,
                WEB-INF/lib/jakarta-regexp-1.4.jar,
                WEB-INF/lib/javassist-${version.org.javassist}.jar,
                WEB-INF/lib/javax.inject-${version.javax.inject}.jar,
                WEB-INF/lib/jaxb-impl-${version.com.sun.xml.bind.jaxb}.jar,
                WEB-INF/lib/jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar,
                WEB-INF/lib/jboss-logging-${version.org.jboss.logging}.jar,
                WEB-INF/lib/jcip-annotations-1.0.jar,
                WEB-INF/lib/jgroups-${version.org.jgroups}.jar,
                WEB-INF/lib/joda-time-${version.joda-time}.jar,
                WEB-INF/lib/jsoup-1.7.1.jar,
                WEB-INF/lib/jsr250-api-1.0.jar,
                WEB-INF/lib/lesscss-1.3.3.jar,
                WEB-INF/lib/mail-${version.javax.mail}.jar,
                WEB-INF/lib/maven-aether-provider-3.0.5.jar,
                WEB-INF/lib/maven-artifact-${version.org.apache.maven}.jar,
                WEB-INF/lib/maven-core-${version.org.apache.maven}.jar,
                WEB-INF/lib/maven-model-${version.org.apache.maven}.jar,
                WEB-INF/lib/maven-model-builder-${version.org.apache.maven}.jar,
                WEB-INF/lib/maven-plugin-api-${version.org.apache.maven}.jar,
                WEB-INF/lib/maven-repository-metadata-${version.org.apache.maven}.jar,
                WEB-INF/lib/maven-settings-${version.org.apache.maven}.jar,
                WEB-INF/lib/maven-settings-builder-${version.org.apache.maven}.jar,
                WEB-INF/lib/mvel2-${version.org.mvel}.jar,
                WEB-INF/lib/netty-4.0.0.Alpha1.errai.r1.jar,
                WEB-INF/lib/org.apache.stanbol.enhancer.engines.htmlextractor-0.10.0.jar,
                WEB-INF/lib/overlord-commons-config-${overlord-commons.version}.jar,
                WEB-INF/lib/overlord-commons-gwt-${overlord-commons.version}.jar,
                WEB-INF/lib/overlord-commons-uiheader-${overlord-commons.version}.jar,
                WEB-INF/lib/plexus-cipher-1.4.jar,
                WEB-INF/lib/plexus-classworlds-2.4.jar,
                WEB-INF/lib/plexus-component-annotations-1.5.5.jar,
                WEB-INF/lib/plexus-interpolation-1.14.jar,
                WEB-INF/lib/plexus-sec-dispatcher-1.3.jar,
                WEB-INF/lib/plexus-utils-3.0.7.jar,
                WEB-INF/lib/rdf.core-0.12-incubating.jar,
                WEB-INF/lib/reflections-${version.org.jboss.errai}.jar,
                WEB-INF/lib/rhino-${version.rhino.js}.jar,
                WEB-INF/lib/s-ramp-api-${project.version}.jar,
                WEB-INF/lib/s-ramp-atom-${project.version}.jar,
                WEB-INF/lib/s-ramp-client-${project.version}.jar,
                WEB-INF/lib/s-ramp-common-${project.version}.jar,
                WEB-INF/lib/s-ramp-integration-java-${project.version}.jar,
                WEB-INF/lib/s-ramp-integration-kie-${project.version}.jar,
                WEB-INF/lib/s-ramp-integration-switchyard-${project.version}.jar,
                WEB-INF/lib/s-ramp-integration-teiid-${project.version}.jar,
                WEB-INF/lib/scannotation-1.0.3.jar,
                WEB-INF/lib/sisu-guice-3.0.3-no_aop.jar,
                WEB-INF/lib/sisu-inject-bean-${version.org.sonatype.sisu}.jar,
                WEB-INF/lib/sisu-inject-plexus-${version.org.sonatype.sisu}.jar,
                WEB-INF/lib/utils-0.1-incubating.jar,
                WEB-INF/lib/weld-api-${version.org.jboss.weld.weld-api}.jar,
                WEB-INF/lib/weld-core-${version.org.jboss.weld.weld}.jar,
                WEB-INF/lib/weld-se-core-${version.org.jboss.weld.weld}.jar,
                WEB-INF/lib/weld-servlet-core-${version.org.jboss.weld.weld}.jar,
                WEB-INF/lib/weld-spi-${version.org.jboss.weld.weld-api}.jar,
                WEB-INF/lib/wymiwyg-commons-core-0.7.6.jar,
                WEB-INF/lib/xz-1.0.jar,
                WEB-INF/lib/overlord-commons-errai-fuse-support-${overlord-commons.version}.jar,
                WEB-INF/lib/overlord-commons-osgi-weld-${overlord-commons.version}.jar
              </Bundle-ClassPath>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>