|
| 1 | +<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"> |
| 2 | + <modelVersion>4.0.0</modelVersion> |
| 3 | + <groupId>org.openapitools</groupId> |
| 4 | + <artifactId>openapiv3-jaxrs-jersey-petstore-server</artifactId> |
| 5 | + <packaging>jar</packaging> |
| 6 | + <name>openapiv3-jaxrs-jersey-petstore-server</name> |
| 7 | + <version>1.0.0</version> |
| 8 | + |
| 9 | + <licenses> |
| 10 | + <license> |
| 11 | + <name>Unlicense</name> |
| 12 | + <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> |
| 13 | + <distribution>repo</distribution> |
| 14 | + </license> |
| 15 | + </licenses> |
| 16 | + |
| 17 | + <build> |
| 18 | + <sourceDirectory>src/main/java</sourceDirectory> |
| 19 | + <plugins> |
| 20 | + <plugin> |
| 21 | + <groupId>org.apache.maven.plugins</groupId> |
| 22 | + <artifactId>maven-war-plugin</artifactId> |
| 23 | + <version>3.1.0</version> |
| 24 | + </plugin> |
| 25 | + <plugin> |
| 26 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 27 | + <version>2.6</version> |
| 28 | + <executions> |
| 29 | + <execution> |
| 30 | + <goals> |
| 31 | + <goal>integration-test</goal> |
| 32 | + <goal>verify</goal> |
| 33 | + </goals> |
| 34 | + </execution> |
| 35 | + </executions> |
| 36 | + </plugin> |
| 37 | + <plugin> |
| 38 | + <groupId>org.eclipse.jetty</groupId> |
| 39 | + <artifactId>jetty-maven-plugin</artifactId> |
| 40 | + <version>${jetty-version}</version> |
| 41 | + <configuration> |
| 42 | + <webApp> |
| 43 | + <contextPath>/</contextPath> |
| 44 | + </webApp> |
| 45 | + <webAppSourceDirectory>target/${project.artifactId}-${project.version}</webAppSourceDirectory> |
| 46 | + <stopPort>8079</stopPort> |
| 47 | + <stopKey>stopit</stopKey> |
| 48 | + <stopWait>10</stopWait> |
| 49 | + <httpConnector> |
| 50 | + <port>8080</port> |
| 51 | + <idleTimeout>60000</idleTimeout> |
| 52 | + </httpConnector> |
| 53 | + </configuration> |
| 54 | + <dependencies> |
| 55 | + <dependency> |
| 56 | + <groupId>javax.validation</groupId> |
| 57 | + <artifactId>validation-api</artifactId> |
| 58 | + <version>${beanvalidation-version}</version> |
| 59 | + </dependency> |
| 60 | + </dependencies> |
| 61 | + <executions> |
| 62 | + <execution> |
| 63 | + <id>start-jetty</id> |
| 64 | + <phase>pre-integration-test</phase> |
| 65 | + <goals> |
| 66 | + <goal>start</goal> |
| 67 | + </goals> |
| 68 | + <configuration> |
| 69 | + <scanIntervalSeconds>0</scanIntervalSeconds> |
| 70 | + <daemon>true</daemon> |
| 71 | + </configuration> |
| 72 | + </execution> |
| 73 | + <execution> |
| 74 | + <id>stop-jetty</id> |
| 75 | + <phase>post-integration-test</phase> |
| 76 | + <goals> |
| 77 | + <goal>stop</goal> |
| 78 | + </goals> |
| 79 | + </execution> |
| 80 | + </executions> |
| 81 | + </plugin> |
| 82 | + <plugin> |
| 83 | + <groupId>org.codehaus.mojo</groupId> |
| 84 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 85 | + <version>1.9.1</version> |
| 86 | + <executions> |
| 87 | + <execution> |
| 88 | + <id>add-source</id> |
| 89 | + <phase>generate-sources</phase> |
| 90 | + <goals> |
| 91 | + <goal>add-source</goal> |
| 92 | + </goals> |
| 93 | + <configuration> |
| 94 | + <sources> |
| 95 | + <source>src/gen/java</source> |
| 96 | + </sources> |
| 97 | + </configuration> |
| 98 | + </execution> |
| 99 | + </executions> |
| 100 | + </plugin> |
| 101 | + </plugins> |
| 102 | + </build> |
| 103 | + <dependencies> |
| 104 | + <dependency> |
| 105 | + <groupId>io.swagger</groupId> |
| 106 | + <artifactId>swagger-jersey2-jaxrs</artifactId> |
| 107 | + <scope>compile</scope> |
| 108 | + <version>${swagger-core-version}</version> |
| 109 | + </dependency> |
| 110 | + <dependency> |
| 111 | + <groupId>ch.qos.logback</groupId> |
| 112 | + <artifactId>logback-classic</artifactId> |
| 113 | + <version>${logback-version}</version> |
| 114 | + <scope>compile</scope> |
| 115 | + </dependency> |
| 116 | + <dependency> |
| 117 | + <groupId>ch.qos.logback</groupId> |
| 118 | + <artifactId>logback-core</artifactId> |
| 119 | + <version>${logback-version}</version> |
| 120 | + <scope>compile</scope> |
| 121 | + </dependency> |
| 122 | + <dependency> |
| 123 | + <groupId>junit</groupId> |
| 124 | + <artifactId>junit</artifactId> |
| 125 | + <version>${junit-version}</version> |
| 126 | + <scope>test</scope> |
| 127 | + </dependency> |
| 128 | + <dependency> |
| 129 | + <groupId>javax.servlet</groupId> |
| 130 | + <artifactId>servlet-api</artifactId> |
| 131 | + <version>${servlet-api-version}</version> |
| 132 | + </dependency> |
| 133 | + <dependency> |
| 134 | + <groupId>org.glassfish.jersey.containers</groupId> |
| 135 | + <artifactId>jersey-container-servlet-core</artifactId> |
| 136 | + <version>${jersey2-version}</version> |
| 137 | + </dependency> |
| 138 | + <dependency> |
| 139 | + <groupId>org.glassfish.jersey.media</groupId> |
| 140 | + <artifactId>jersey-media-multipart</artifactId> |
| 141 | + <version>${jersey2-version}</version> |
| 142 | + </dependency> |
| 143 | + <dependency> |
| 144 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 145 | + <artifactId>jackson-datatype-joda</artifactId> |
| 146 | + <version>${jackson-version}</version> |
| 147 | + </dependency> |
| 148 | + <dependency> |
| 149 | + <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 150 | + <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 151 | + <version>${jackson-version}</version> |
| 152 | + </dependency> |
| 153 | + <!-- Base64 encoding that works in both JVM and Android --> |
| 154 | + <dependency> |
| 155 | + <groupId>com.brsanthu</groupId> |
| 156 | + <artifactId>migbase64</artifactId> |
| 157 | + <version>2.2</version> |
| 158 | + </dependency> |
| 159 | + |
| 160 | + |
| 161 | + <!-- Bean Validation API support --> |
| 162 | + <dependency> |
| 163 | + <groupId>javax.validation</groupId> |
| 164 | + <artifactId>validation-api</artifactId> |
| 165 | + <version>${beanvalidation-version}</version> |
| 166 | + <scope>provided</scope> |
| 167 | + </dependency> |
| 168 | + |
| 169 | + </dependencies> |
| 170 | + <repositories> |
| 171 | + <repository> |
| 172 | + <id>sonatype-snapshots</id> |
| 173 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 174 | + <snapshots> |
| 175 | + <enabled>true</enabled> |
| 176 | + </snapshots> |
| 177 | + </repository> |
| 178 | + </repositories> |
| 179 | + <properties> |
| 180 | + <java.version>1.7</java.version> |
| 181 | + <maven.compiler.source>${java.version}</maven.compiler.source> |
| 182 | + <maven.compiler.target>${java.version}</maven.compiler.target> |
| 183 | + <swagger-core-version>1.5.18</swagger-core-version> |
| 184 | + <beanvalidation-version>1.1.0.Final</beanvalidation-version> |
| 185 | + <jetty-version>9.2.9.v20150224</jetty-version> |
| 186 | + <jersey2-version>2.22.2</jersey2-version> |
| 187 | + <jackson-version>2.8.9</jackson-version> |
| 188 | + <junit-version>4.12</junit-version> |
| 189 | + <logback-version>1.1.7</logback-version> |
| 190 | + <servlet-api-version>2.5</servlet-api-version> |
| 191 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 192 | + </properties> |
| 193 | +</project> |
0 commit comments