|
| 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 | + <parent> |
| 3 | + <groupId>io.swagger.samples.v3</groupId> |
| 4 | + <artifactId>swagger-samples-project</artifactId> |
| 5 | + <version>2.0.0</version> |
| 6 | + <relativePath>../..</relativePath> |
| 7 | + </parent> |
| 8 | + <modelVersion>4.0.0</modelVersion> |
| 9 | + <groupId>io.swagger.samples.v3</groupId> |
| 10 | + <artifactId>swagger-jersey2-resourceinit-sample-app</artifactId> |
| 11 | + <packaging>war</packaging> |
| 12 | + <name>swagger-jersey2-resourceinit-sample-app</name> |
| 13 | + <version>2.0.0</version> |
| 14 | + <build> |
| 15 | + <sourceDirectory>src/main/java</sourceDirectory> |
| 16 | + <plugins> |
| 17 | + <plugin> |
| 18 | + <groupId>org.apache.maven.plugins</groupId> |
| 19 | + <artifactId>maven-war-plugin</artifactId> |
| 20 | + <version>2.1.1</version> |
| 21 | + <configuration> |
| 22 | + <failOnMissingWebXml>false</failOnMissingWebXml> |
| 23 | + </configuration> |
| 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 | + <httpConnector> |
| 49 | + <port>8002</port> |
| 50 | + <idleTimeout>60000</idleTimeout> |
| 51 | + </httpConnector> |
| 52 | + <systemProperties> |
| 53 | + <systemProperty> |
| 54 | + <name>org.eclipse.jetty.util.log.Log</name> |
| 55 | + <value>org.eclipse.jetty.util.log.Slf4jLog</value> |
| 56 | + </systemProperty> |
| 57 | + <systemProperty> |
| 58 | + <name>logback.configurationFile</name> |
| 59 | + <value>src/main/resources/logback.xml</value> |
| 60 | + </systemProperty> |
| 61 | + </systemProperties> |
| 62 | + </configuration> |
| 63 | + <executions> |
| 64 | + <execution> |
| 65 | + <id>start-jetty</id> |
| 66 | + <phase>pre-integration-test</phase> |
| 67 | + <goals> |
| 68 | + <goal>stop</goal> |
| 69 | + <goal>start</goal> |
| 70 | + </goals> |
| 71 | + <configuration> |
| 72 | + <scanIntervalSeconds>0</scanIntervalSeconds> |
| 73 | + </configuration> |
| 74 | + </execution> |
| 75 | + <execution> |
| 76 | + <id>stop-jetty</id> |
| 77 | + <phase>post-integration-test</phase> |
| 78 | + <goals> |
| 79 | + <goal>stop</goal> |
| 80 | + </goals> |
| 81 | + </execution> |
| 82 | + </executions> |
| 83 | + </plugin> |
| 84 | + <plugin> |
| 85 | + <groupId>com.googlecode.maven-download-plugin</groupId> |
| 86 | + <artifactId>download-maven-plugin</artifactId> |
| 87 | + <version>1.2.1</version> |
| 88 | + <executions> |
| 89 | + <execution> |
| 90 | + <id>swagger-ui</id> |
| 91 | + <goals> |
| 92 | + <goal>wget</goal> |
| 93 | + </goals> |
| 94 | + <configuration> |
| 95 | + <skipCache>true</skipCache> |
| 96 | + <url>https://github.com/swagger-api/swagger-ui/archive/master.tar.gz</url> |
| 97 | + <unpack>true</unpack> |
| 98 | + <outputDirectory>${project.build.directory}</outputDirectory> |
| 99 | + </configuration> |
| 100 | + </execution> |
| 101 | + </executions> |
| 102 | + </plugin> |
| 103 | + <plugin> |
| 104 | + <artifactId>maven-resources-plugin</artifactId> |
| 105 | + <version>2.6</version> |
| 106 | + <executions> |
| 107 | + <execution> |
| 108 | + <id>copy-resources</id> |
| 109 | + <phase>validate</phase> |
| 110 | + <goals> |
| 111 | + <goal>copy-resources</goal> |
| 112 | + </goals> |
| 113 | + <configuration> |
| 114 | + <outputDirectory>target/${project.artifactId}-${project.version}</outputDirectory> |
| 115 | + <resources> |
| 116 | + <resource> |
| 117 | + <directory>${project.build.directory}/swagger-ui-master/dist</directory> |
| 118 | + <filtering>true</filtering> |
| 119 | + <excludes> |
| 120 | + <exclude>index.html</exclude> |
| 121 | + </excludes> |
| 122 | + </resource> |
| 123 | + </resources> |
| 124 | + </configuration> |
| 125 | + </execution> |
| 126 | + </executions> |
| 127 | + </plugin> |
| 128 | + <plugin> |
| 129 | + <groupId>org.apache.maven.plugins</groupId> |
| 130 | + <artifactId>maven-compiler-plugin</artifactId> |
| 131 | + <configuration> |
| 132 | + <source>1.8</source> |
| 133 | + <target>1.8</target> |
| 134 | + </configuration> |
| 135 | + </plugin> |
| 136 | + </plugins> |
| 137 | + </build> |
| 138 | + <dependencies> |
| 139 | + <dependency> |
| 140 | + <groupId>io.swagger.core.v3</groupId> |
| 141 | + <artifactId>swagger-jaxrs2</artifactId> |
| 142 | + <scope>compile</scope> |
| 143 | + <version>${swagger-version}</version> |
| 144 | + </dependency> |
| 145 | + <dependency> |
| 146 | + <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 147 | + <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 148 | + <version>${jackson-version}</version> |
| 149 | + </dependency> |
| 150 | + |
| 151 | + <dependency> |
| 152 | + <groupId>ch.qos.logback</groupId> |
| 153 | + <artifactId>logback-classic</artifactId> |
| 154 | + <version>${logback-version}</version> |
| 155 | + <scope>compile</scope> |
| 156 | + </dependency> |
| 157 | + <dependency> |
| 158 | + <groupId>ch.qos.logback</groupId> |
| 159 | + <artifactId>logback-core</artifactId> |
| 160 | + <version>${logback-version}</version> |
| 161 | + <scope>compile</scope> |
| 162 | + </dependency> |
| 163 | + |
| 164 | + <dependency> |
| 165 | + <groupId>junit</groupId> |
| 166 | + <artifactId>junit</artifactId> |
| 167 | + <scope>test</scope> |
| 168 | + </dependency> |
| 169 | + <dependency> |
| 170 | + <groupId>javax.servlet</groupId> |
| 171 | + <artifactId>javax.servlet-api</artifactId> |
| 172 | + <scope>provided</scope> |
| 173 | + </dependency> |
| 174 | + <dependency> |
| 175 | + <groupId>org.glassfish.jersey.containers</groupId> |
| 176 | + <artifactId>jersey-container-servlet</artifactId> |
| 177 | + <version>${jersey2-version}</version> |
| 178 | + </dependency> |
| 179 | + <dependency> |
| 180 | + <groupId>org.glassfish.jersey.media</groupId> |
| 181 | + <artifactId>jersey-media-multipart</artifactId> |
| 182 | + <version>${jersey2-version}</version> |
| 183 | + </dependency> |
| 184 | + <dependency> |
| 185 | + <groupId>org.glassfish.jersey.inject</groupId> |
| 186 | + <artifactId>jersey-hk2</artifactId> |
| 187 | + <version>${jersey2-version}</version> |
| 188 | + </dependency> |
| 189 | + </dependencies> |
| 190 | +</project> |
0 commit comments