| <?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> |
| <packaging>bundle</packaging> |
| |
| <artifactId>brooklyn-utils-rest-swagger</artifactId> |
| <name>Brooklyn REST Swagger Apidoc Utilities</name> |
| |
| <description> |
| Swagger REST API utility classes and methods developed for Brooklyn but not dependendent on Brooklyn |
| </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> |
| |
| <!-- ATTN: this moves jersey-server from 1.7 to 1.12 --> |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-servlet</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>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-utils-common</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.brooklyn</groupId> |
| <artifactId>brooklyn-test-support</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.swagger</groupId> |
| <artifactId>swagger-core</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>io.swagger</groupId> |
| <artifactId>swagger-jaxrs</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-client</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>javax.servlet-api</artifactId> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <!-- <plugin> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <artifactSet> |
| <includes> |
| <include>io.swagger:swagger-core</include> |
| <include>io.swagger:swagger-jaxrs</include> |
| </includes> |
| </artifactSet> |
| <finalName>${project.artifactId}-${project.version}-with-swagger</finalName> |
| <outputFile>${project.build.directory}/${project.artifactId}-shaded-${project.version}.jar</outputFile> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin>--> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <supportedProjectTypes> |
| <supportedProjectType>jar</supportedProjectType> |
| <supportedProjectType>bundle</supportedProjectType> |
| </supportedProjectTypes> |
| <excludeDependencies>brooklyn-util-common,brooklyn-logback-includes</excludeDependencies> |
| <instructions> |
| <!-- |
| This tells maven-bundle-plugin to include and export swagger-core and swagger-jaxrs into this bundle, |
| but to not include other dependencies that are properly bundled themselves. |
| We also need the swagger packages exported, since we're going to use them in higher-level bundles. |
| |
| The only way I could convince maven-bundle-plugin to do all this was to manually specify the packages |
| in swagger-core and swagger-jaxrs versions 1.5.3 |
| |
| FIXME: move to >=swagger-1.5.4 (which does not suffer from split packages and is a proper bundle), |
| but those depend on guava-18.0 instead of brooklyn's currently used guava-17.x |
| --> |
| <Export-Package> |
| org.apache.brooklyn.rest.*, |
| io.swagger.config.*, |
| io.swagger.converter.*, |
| io.swagger.core.filter.*, |
| io.swagger.jackson.*, |
| io.swagger.model.*, |
| io.swagger.util.*, |
| io.swagger.jaxrs.*, |
| !* |
| </Export-Package> |
| </instructions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |