text: <?xml version="1.0" encoding="UTF-8"?>
  <!--
      Licensed to the Apache Software Foundation (ASF) under one
      or more contributor license agreements.  See the NOTICE file
      distributed with this work for additional information
      regarding copyright ownership.  The ASF licenses this file
      to you under the Apache License, Version 2.0 (the
      "License"); you may not use this file except in compliance
      with the License.  You may obtain a copy of the License at
      
       http://www.apache.org/licenses/LICENSE-2.0
      
      Unless required by applicable law or agreed to in writing,
      software distributed under the License is distributed on an
      "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
      KIND, either express or implied.  See the License for the
      specific language governing permissions and limitations
      under the License.
  -->
  <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>
      <artifactId>brooklyn-rest-server</artifactId>
      <packaging>jar</packaging>
      <name>Brooklyn REST Server</name>
      <description>
          Brooklyn REST Endpoint
      </description>
  
      <parent>
          <groupId>org.apache.brooklyn</groupId>
          <artifactId>brooklyn-parent</artifactId>
          <version>0.9.0-SNAPSHOT</version><!-- BROOKLYN_VERSION -->
          <relativePath>../../parent/pom.xml</relativePath>
      </parent>
  
      <dependencies>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-rest-api</artifactId>
              <version>${project.version}</version>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-core</artifactId>
              <version>${project.version}</version>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-camp</artifactId>
              <version>${project.version}</version>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn.camp</groupId>
              <artifactId>camp-base</artifactId>
              <version>${project.version}</version>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-api</artifactId>
              <version>${project.version}</version>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-utils-common</artifactId>
              <version>${project.version}</version>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-software-base</artifactId>
              <version>${project.version}</version>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-utils-rest-swagger</artifactId>
              <version>${project.version}</version>
          </dependency>
  
          <dependency>
              <groupId>org.yaml</groupId>
              <artifactId>snakeyaml</artifactId>
          </dependency>
          <dependency>
              <groupId>org.reflections</groupId>
              <artifactId>reflections</artifactId>
          </dependency>
          <dependency>
              <groupId>com.google.guava</groupId>
              <artifactId>guava</artifactId>
          </dependency>
          <dependency>
              <groupId>com.google.code.findbugs</groupId>
              <artifactId>jsr305</artifactId>
          </dependency>
          <dependency>
              <groupId>javax.ws.rs</groupId>
              <artifactId>jsr311-api</artifactId>
          </dependency>
          <dependency>
              <groupId>org.slf4j</groupId>
              <artifactId>slf4j-api</artifactId>
          </dependency>
          <dependency>
              <groupId>com.sun.jersey</groupId>
              <artifactId>jersey-json</artifactId>
              <exclusions>
                  <exclusion>
                      <groupId>com.sun.xml.bind</groupId>
                      <artifactId>jaxb-impl</artifactId>
                  </exclusion>
              </exclusions>
          </dependency>
          <dependency>
              <groupId>com.sun.jersey</groupId>
              <artifactId>jersey-core</artifactId>
          </dependency>
          <dependency>
              <groupId>com.sun.jersey</groupId>
              <artifactId>jersey-server</artifactId>
          </dependency>
          <dependency>
              <groupId>com.sun.jersey</groupId>
              <artifactId>jersey-servlet</artifactId>
          </dependency>
          <dependency>
              <groupId>org.eclipse.jetty</groupId>
              <artifactId>jetty-webapp</artifactId>
          </dependency>
          <dependency>
              <groupId>org.eclipse.jetty</groupId>
              <artifactId>jetty-server</artifactId>
          </dependency>
          <dependency>
              <groupId>org.eclipse.jetty</groupId>
              <artifactId>jetty-servlet</artifactId>
          </dependency>
          <dependency>
              <groupId>org.codehaus.jackson</groupId>
              <artifactId>jackson-core-asl</artifactId>
          </dependency>
          <dependency>
              <groupId>org.codehaus.jackson</groupId>
              <artifactId>jackson-mapper-asl</artifactId>
          </dependency>
          <dependency>
              <groupId>org.codehaus.jackson</groupId>
              <artifactId>jackson-jaxrs</artifactId>
          </dependency>
          <dependency>
              <groupId>org.codehaus.jackson</groupId>
              <artifactId>jackson-xc</artifactId>
          </dependency>
          
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-test-support</artifactId>
              <version>${project.version}</version>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-policy</artifactId>
              <version>${project.version}</version>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-core</artifactId>
              <version>${project.version}</version>
              <classifier>tests</classifier>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-software-base</artifactId>
              <version>${project.version}</version>
              <classifier>tests</classifier>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-rest-api</artifactId>
              <version>${project.version}</version>
              <classifier>tests</classifier>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-locations-jclouds</artifactId>
              <version>${project.version}</version>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>org.hamcrest</groupId>
              <artifactId>hamcrest-all</artifactId>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>com.sun.jersey</groupId>
              <artifactId>jersey-client</artifactId>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>org.testng</groupId>
              <artifactId>testng</artifactId>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>com.sun.jersey.jersey-test-framework</groupId>
              <artifactId>jersey-test-framework-inmemory</artifactId>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>com.sun.jersey.jersey-test-framework</groupId>
              <artifactId>jersey-test-framework-grizzly2</artifactId>
          </dependency>
          <dependency>
              <groupId>org.apache.brooklyn</groupId>
              <artifactId>brooklyn-rt-osgi</artifactId>
              <version>${project.version}</version>
              <classifier>tests</classifier>
              <scope>test</scope>
          </dependency>
      </dependencies>
  
      <build>
          <resources>
              <resource>
                  <directory>${basedir}/src/main/resources</directory>
                  <!-- Required to set values in build-metadata.properties -->
                  <filtering>true</filtering>
              </resource>
              <resource>
                  <directory>${basedir}/src/main/webapp</directory>
              </resource>
          </resources>
          <plugins>
  
              <plugin>
                  <groupId>org.apache.felix</groupId>
                  <artifactId>maven-bundle-plugin</artifactId>
                  <extensions>true</extensions>
                  <!-- configure plugin to generate MANIFEST.MF
                       adapted from http://blog.knowhowlab.org/2010/06/osgi-tutorial-from-project-structure-to.html -->
                  <executions>
                      <execution>
                          <id>bundle-manifest</id>
                          <phase>process-classes</phase>
                          <goals>
                              <goal>manifest</goal>
                          </goals>
                      </execution>
                  </executions>
                  <configuration>
                      <supportedProjectTypes>
                          <supportedProjectType>jar</supportedProjectType>
                      </supportedProjectTypes>
                      <instructions>
                          <Import-Package>
                              com.sun.jersey.spi.container.servlet;version="[1.18.1,2.0)",
                              *
                          </Import-Package>
                          <Export-Package>org.apache.brooklyn.*</Export-Package>
                          <Web-ContextPath>/</Web-ContextPath>
                          <_wab>src/main/webapp</_wab>
                      </instructions>
                  </configuration>
              </plugin>
  
  
  <!-- if you want to build a WAR, full or skinny:
              <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-war-plugin</artifactId>
                  <version>${maven-war-plugin.version}</version>
                  <executions>
                      <execution>
                          <id>make-skinny-war</id>
                          <phase>install</phase>
                          <goals>
                              <goal>war</goal>
                          </goals>
                          <configuration>
                              <classifier>skinny</classifier>
                              <packagingExcludes>WEB-INF/lib/*.jar,WEB-INF/classes/**/*.class</packagingExcludes>
                          </configuration>
                      </execution>
                      <execution>
                          <id>make-full-war</id>
                          <phase>install</phase>
                          <goals>
                              <goal>war</goal>
                          </goals>
                          <configuration>
                              <classifier>full</classifier>
                          </configuration>
                      </execution>
                  </executions>
              </plugin>
  -->
  
          </plugins>
      </build>
  </project>
  