Skip to content

Commit 2e24405

Browse files
committed
limit jetty scan warnings in logs
1 parent 9ef0feb commit 2e24405

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

modules/swagger-generator/pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,33 @@
3737
</execution>
3838
</executions>
3939
</plugin>
40+
41+
<plugin>
42+
<groupId>org.codehaus.mojo</groupId>
43+
<artifactId>properties-maven-plugin</artifactId>
44+
<version>1.0.0</version>
45+
<executions>
46+
<execution>
47+
<phase>pre-integration-test</phase>
48+
<goals>
49+
<goal>set-system-properties</goal>
50+
</goals>
51+
<configuration>
52+
<properties>
53+
<property>
54+
<name>org.eclipse.jetty.util.log.class</name>
55+
<value>org.eclipse.jetty.util.log.StdErrLog</value>
56+
</property>
57+
<property>
58+
<name>org.eclipse.jetty.annotations.AnnotationParser.LEVEL</name>
59+
<value>OFF</value>
60+
</property>
61+
</properties>
62+
</configuration>
63+
</execution>
64+
</executions>
65+
</plugin>
66+
4067
<plugin>
4168
<groupId>org.apache.maven.plugins</groupId>
4269
<artifactId>maven-war-plugin</artifactId>
@@ -74,6 +101,7 @@
74101
<artifactId>jetty-maven-plugin</artifactId>
75102
<version>${jetty-version}</version>
76103
<configuration>
104+
<classesDirectory>target/${project.artifactId}-${project.version}/WEB-INF/classes</classesDirectory>
77105
<webApp>
78106
<contextPath>/</contextPath>
79107
</webApp>
@@ -143,13 +171,25 @@
143171
<groupId>io.swagger</groupId>
144172
<artifactId>swagger-codegen</artifactId>
145173
<version>${project.parent.version}</version>
174+
<exclusions>
175+
<exclusion>
176+
<groupId>org.slf4j</groupId>
177+
<artifactId>slf4j-simple</artifactId>
178+
</exclusion>
179+
</exclusions>
146180
</dependency>
147181
<dependency>
148182
<groupId>io.swagger</groupId>
149183
<artifactId>swagger-codegen</artifactId>
150184
<version>${project.parent.version}</version>
151185
<type>test-jar</type>
152186
<scope>test</scope>
187+
<exclusions>
188+
<exclusion>
189+
<groupId>org.slf4j</groupId>
190+
<artifactId>slf4j-simple</artifactId>
191+
</exclusion>
192+
</exclusions>
153193
</dependency>
154194
<dependency>
155195
<groupId>ch.qos.logback</groupId>
@@ -166,6 +206,7 @@
166206
<groupId>javax.servlet</groupId>
167207
<artifactId>servlet-api</artifactId>
168208
<version>${servlet-api-version}</version>
209+
<scope>provided</scope>
169210
</dependency>
170211
<dependency>
171212
<groupId>org.glassfish.jersey.inject</groupId>

0 commit comments

Comments
 (0)