<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</artifactId>
    <version>0.4.0.Final</version>
  </parent>
  <artifactId>s-ramp-server-fuse61</artifactId>
  <packaging>war</packaging>
  <name>S-RAMP Server (Fuse 6.1)</name>

  <dependencies>
    <!-- The base WAR being extended -->
    <dependency>
      <groupId>org.overlord.sramp</groupId>
      <artifactId>s-ramp-server-jetty8</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </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>
          <overlays>
            <overlay>
              <groupId>${project.groupId}</groupId>
              <artifactId>s-ramp-server-jetty8</artifactId>
              <excludes>
                <exclude>WEB-INF/lib/*.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-server</Web-ContextPath>
              <Webapp-Context>/s-ramp-server</Webapp-Context>
              <Import-Package>
                javax.servlet.http,
                javax.servlet,
                org.overlord.sramp.repository.jcr.modeshape.filters,
                org.w3._2002._07.owl_,
                org.w3._1999._02._22_rdf_syntax_ns_,
                org.slf4j,
                org.overlord.sramp.repository.query,
                org.overlord.sramp.repository.jcr.modeshape,
                org.overlord.sramp.repository.errors,
                org.overlord.sramp.repository.audit,
                org.overlord.sramp.repository,
                org.overlord.sramp.common.visitors,
                org.overlord.sramp.common.ontology,
                org.overlord.sramp.common.i18n,
                org.overlord.sramp.common.audit,
                org.overlord.sramp.common,
                org.overlord.sramp.atom.visitors,
                org.overlord.sramp.atom.providers,
                org.overlord.sramp.atom.mappers,
                org.overlord.sramp.atom.err,
                org.overlord.sramp.atom.client,
                org.overlord.sramp.atom.beans,
                org.overlord.sramp.atom.archive,
                org.overlord.sramp.atom,
                org.oasis_open.docs.s_ramp.ns.s_ramp_v1,
                org.jboss.resteasy.util,
                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.annotations.providers.multipart,
                org.jboss.downloads.overlord.sramp._2013.auditing,
                org.apache.tika,
                org.apache.commons.io,
                javax.xml.transform.stream,
                javax.xml.namespace,
                javax.xml.datatype,
                javax.xml.bind,
                javax.ws.rs.core,
                javax.ws.rs,
                org.jboss.resteasy.logging.impl,
                javax.xml.transform,
                com.sun.xml.bind.v2.model.core,
                org.overlord.sramp.atom.services.brms.packages,
                org.overlord.sramp.atom.services.brms.assets,
                org.overlord.sramp.atom.services.brms,
                org.modeshape.jcr,
                org.infinispan.configuration.parsing,
                org.infinispan.configuration.as,
                org.eclipse.jetty.plus.jaas,
                org.eclipse.jetty.server.handler,
                org.eclipse.jetty.servlet,
                org.eclipse.jetty.security,
                org.eclipse.jetty.jndi,
                org.overlord.commons.auth.jetty8,
                org.apache.karaf.jaas.boot.principal
              </Import-Package>
              <Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
