|
2 | 2 | <modelVersion>4.0.0</modelVersion> |
3 | 3 | <groupId>io.swagger</groupId> |
4 | 4 | <artifactId>swagger-petstore</artifactId> |
5 | | - <packaging>war</packaging> |
| 5 | +<!-- <packaging>war</packaging>--> |
| 6 | + <packaging>jar</packaging> |
6 | 7 | <name>swagger-petstore</name> |
7 | 8 | <description>swagger-petstore</description> |
8 | 9 | <url>https://github.com/swagger-api/swagger-petstore</url> |
|
37 | 38 | <build> |
38 | 39 | <defaultGoal>install</defaultGoal> |
39 | 40 | <directory>target</directory> |
40 | | - <finalName>${project.artifactId}-${project.version}</finalName> |
| 41 | + <finalName>${project.artifactId}-sut</finalName> |
| 42 | +<!-- MODIFIED--> |
| 43 | + <resources> |
| 44 | + <resource> |
| 45 | + <directory>src/main/webapp</directory> |
| 46 | + <targetPath>webapp</targetPath> |
| 47 | + <includes> |
| 48 | + <include>**/*</include> |
| 49 | + </includes> |
| 50 | + </resource> |
| 51 | + <resource> |
| 52 | + <directory>${project.basedir}</directory> |
| 53 | + <includes> |
| 54 | + <include>webapp/openapi.yaml</include> |
| 55 | + <include>inflector.yaml</include> |
| 56 | + </includes> |
| 57 | + </resource> |
| 58 | + </resources> |
| 59 | +<!-- MODIFIED--> |
| 60 | + |
41 | 61 | <plugins> |
| 62 | +<!-- MODIFIED--> |
| 63 | + <plugin> |
| 64 | + <groupId>org.apache.maven.plugins</groupId> |
| 65 | + <artifactId>maven-shade-plugin</artifactId> |
| 66 | + <version>3.5.1</version> |
| 67 | + <executions> |
| 68 | + <execution> |
| 69 | + <phase>package</phase> |
| 70 | + <goals><goal>shade</goal></goals> |
| 71 | + <configuration> |
| 72 | + <filters> |
| 73 | + <filter> |
| 74 | + <artifact>*:*</artifact> |
| 75 | + <excludes> |
| 76 | + <exclude>META-INF/*.SF</exclude> |
| 77 | + <exclude>META-INF/*.DSA</exclude> |
| 78 | + <exclude>META-INF/*.RSA</exclude> |
| 79 | + </excludes> |
| 80 | + </filter> |
| 81 | + </filters> |
| 82 | + <transformers> |
| 83 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 84 | + <mainClass>io.swagger.petstore.Main</mainClass> |
| 85 | + </transformer> |
| 86 | + </transformers> |
| 87 | + </configuration> |
| 88 | + </execution> |
| 89 | + </executions> |
| 90 | + </plugin> |
| 91 | +<!-- MODIFIED--> |
42 | 92 | <plugin> |
43 | 93 | <artifactId>maven-compiler-plugin</artifactId> |
44 | 94 | <version>3.11.0</version> |
|
66 | 116 | </execution> |
67 | 117 | </executions> |
68 | 118 | </plugin> |
69 | | - <plugin> |
70 | | - <artifactId>maven-dependency-plugin</artifactId> |
71 | | - <executions> |
72 | | - <execution> |
73 | | - <phase>package</phase> |
74 | | - <goals> |
75 | | - <goal>copy-dependencies</goal> |
76 | | - <goal>copy</goal> |
77 | | - </goals> |
78 | | - <configuration> |
79 | | - <outputDirectory>${project.build.directory}/lib</outputDirectory> |
80 | | - <artifactItems> |
81 | | - <artifactItem> |
82 | | - <groupId>org.eclipse.jetty</groupId> |
83 | | - <artifactId>jetty-runner</artifactId> |
84 | | - <version>${jetty-version}</version> |
85 | | - <destFileName>jetty-runner.jar</destFileName> |
86 | | - </artifactItem> |
87 | | - </artifactItems> |
88 | | - </configuration> |
89 | | - </execution> |
90 | | - </executions> |
91 | | - </plugin> |
| 119 | +<!-- <plugin>--> |
| 120 | +<!-- <artifactId>maven-dependency-plugin</artifactId>--> |
| 121 | +<!-- <executions>--> |
| 122 | +<!-- <execution>--> |
| 123 | +<!-- <phase>package</phase>--> |
| 124 | +<!-- <goals>--> |
| 125 | +<!-- <goal>copy-dependencies</goal>--> |
| 126 | +<!-- <goal>copy</goal>--> |
| 127 | +<!-- </goals>--> |
| 128 | +<!-- <configuration>--> |
| 129 | +<!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>--> |
| 130 | +<!-- <artifactItems>--> |
| 131 | +<!-- <artifactItem>--> |
| 132 | +<!-- <groupId>org.eclipse.jetty</groupId>--> |
| 133 | +<!-- <artifactId>jetty-runner</artifactId>--> |
| 134 | +<!-- <version>${jetty-version}</version>--> |
| 135 | +<!-- <destFileName>jetty-runner.jar</destFileName>--> |
| 136 | +<!-- </artifactItem>--> |
| 137 | +<!-- </artifactItems>--> |
| 138 | +<!-- </configuration>--> |
| 139 | +<!-- </execution>--> |
| 140 | +<!-- </executions>--> |
| 141 | +<!-- </plugin>--> |
92 | 142 | <plugin> |
93 | 143 | <groupId>org.apache.maven.plugins</groupId> |
94 | 144 | <artifactId>maven-jar-plugin</artifactId> |
|
107 | 157 | </archive> |
108 | 158 | </configuration> |
109 | 159 | </plugin> |
110 | | - <plugin> |
111 | | - <groupId>org.eclipse.jetty</groupId> |
112 | | - <artifactId>jetty-maven-plugin</artifactId> |
113 | | - <version>${jetty-version}</version> |
114 | | - <configuration> |
115 | | - <monitoredDirName>.</monitoredDirName> |
116 | | - <scanTargets> |
117 | | - <scanTarget>inflector.yaml</scanTarget> |
118 | | - </scanTargets> |
119 | | - <scanIntervalSeconds>1</scanIntervalSeconds> |
120 | | - <webApp> |
121 | | - <contextPath>/</contextPath> |
122 | | - </webApp> |
123 | | - <webAppSourceDirectory>target/${project.artifactId}-${project.version}</webAppSourceDirectory> |
124 | | - <httpConnector> |
125 | | - <port>8080</port> |
126 | | - <idleTimeout>60000</idleTimeout> |
127 | | - </httpConnector> |
128 | | - </configuration> |
129 | | - </plugin> |
| 160 | +<!-- MODIFIED--> |
| 161 | +<!-- <plugin>--> |
| 162 | +<!-- <groupId>org.eclipse.jetty</groupId>--> |
| 163 | +<!-- <artifactId>jetty-maven-plugin</artifactId>--> |
| 164 | +<!-- <version>${jetty-version}</version>--> |
| 165 | +<!-- <configuration>--> |
| 166 | +<!-- <monitoredDirName>.</monitoredDirName>--> |
| 167 | +<!-- <scanTargets>--> |
| 168 | +<!-- <scanTarget>inflector.yaml</scanTarget>--> |
| 169 | +<!-- </scanTargets>--> |
| 170 | +<!-- <scanIntervalSeconds>1</scanIntervalSeconds>--> |
| 171 | +<!-- <webApp>--> |
| 172 | +<!-- <contextPath>/</contextPath>--> |
| 173 | +<!-- </webApp>--> |
| 174 | +<!-- <webAppSourceDirectory>target/${project.artifactId}-${project.version}</webAppSourceDirectory>--> |
| 175 | +<!-- <httpConnector>--> |
| 176 | +<!-- <port>8080</port>--> |
| 177 | +<!-- <idleTimeout>60000</idleTimeout>--> |
| 178 | +<!-- </httpConnector>--> |
| 179 | +<!-- </configuration>--> |
| 180 | +<!-- </plugin>--> |
130 | 181 | <plugin> |
131 | 182 | <groupId>com.googlecode.maven-download-plugin</groupId> |
132 | 183 | <artifactId>download-maven-plugin</artifactId> |
|
175 | 226 | </plugins> |
176 | 227 | </build> |
177 | 228 | <dependencies> |
178 | | - |
| 229 | +<!--MODIFIED--> |
| 230 | + <dependency> |
| 231 | + <groupId>org.glassfish.jersey.containers</groupId> |
| 232 | + <artifactId>jersey-container-servlet</artifactId> |
| 233 | + <version>2.41</version> |
| 234 | + </dependency> |
| 235 | + <dependency> |
| 236 | + <groupId>org.apache.tomcat.embed</groupId> |
| 237 | + <artifactId>tomcat-embed-core</artifactId> |
| 238 | + <version>9.0.89</version> |
| 239 | + </dependency> |
| 240 | + <dependency> |
| 241 | + <groupId>org.apache.tomcat.embed</groupId> |
| 242 | + <artifactId>tomcat-embed-jasper</artifactId> |
| 243 | + <version>9.0.89</version> |
| 244 | + </dependency> |
| 245 | + <dependency> |
| 246 | + <groupId>javax.servlet</groupId> |
| 247 | + <artifactId>javax.servlet-api</artifactId> |
| 248 | + <version>4.0.1</version> |
| 249 | + </dependency> |
| 250 | +<!-- MODIFIED--> |
179 | 251 | <dependency> |
180 | 252 | <groupId>com.fasterxml.jackson.core</groupId> |
181 | 253 | <artifactId>jackson-databind</artifactId> |
|
219 | 291 | <artifactId>swagger-parser</artifactId> |
220 | 292 | <version>${swagger-parser-version}</version> |
221 | 293 | </dependency> |
| 294 | + <!--MODIFIED--> |
222 | 295 |
|
223 | | - <dependency> |
224 | | - <groupId>javax.xml.bind</groupId> |
225 | | - <artifactId>jaxb-api</artifactId> |
226 | | - <version>2.3.1</version> |
227 | | - </dependency> |
228 | | - <dependency> |
229 | | - <groupId>com.sun.xml.bind</groupId> |
230 | | - <artifactId>jaxb-core</artifactId> |
231 | | - <version>2.3.0.1</version> |
232 | | - </dependency> |
233 | | - <dependency> |
234 | | - <groupId>com.sun.xml.bind</groupId> |
235 | | - <artifactId>jaxb-impl</artifactId> |
236 | | - <version>2.3.1</version> |
237 | | - </dependency> |
| 296 | +<!-- <dependency>--> |
| 297 | +<!-- <groupId>javax.xml.bind</groupId>--> |
| 298 | +<!-- <artifactId>jaxb-api</artifactId>--> |
| 299 | +<!-- <version>2.3.1</version>--> |
| 300 | +<!-- </dependency>--> |
| 301 | +<!-- <dependency>--> |
| 302 | +<!-- <groupId>com.sun.xml.bind</groupId>--> |
| 303 | +<!-- <artifactId>jaxb-core</artifactId>--> |
| 304 | +<!-- <version>2.3.0.1</version>--> |
| 305 | +<!-- </dependency>--> |
| 306 | +<!-- <dependency>--> |
| 307 | +<!-- <groupId>com.sun.xml.bind</groupId>--> |
| 308 | +<!-- <artifactId>jaxb-impl</artifactId>--> |
| 309 | +<!-- <version>2.3.1</version>--> |
| 310 | +<!-- </dependency>--> |
238 | 311 | <dependency> |
239 | 312 | <groupId>com.bugsnag</groupId> |
240 | 313 | <version>[3.0,4.0)</version> |
|
0 commit comments