Skip to content

Commit

Permalink
NIFI-12640 Moved servlet-api and jetty-schemas to nifi-jetty-bundle (#…
Browse files Browse the repository at this point in the history
…8272)

- Set Jetty AnnotationConfiguration log level to WARN suppressing informational messages related to Logback ServletContainerInitializer
  • Loading branch information
exceptionfactory committed Jan 19, 2024
1 parent 806d8d6 commit e66da89
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 55 deletions.
10 changes: 0 additions & 10 deletions nifi-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,6 @@ language governing permissions and limitations under the License. -->
</plugins>
</build>
<dependencies>
<dependency> <!-- handling this explicitly Must be in root lib -->
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency> <!-- handling this explicitly Must be in root lib -->
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-schemas</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Expand Down
3 changes: 0 additions & 3 deletions nifi-assembly/src/main/assembly/core.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
<include>org.slf4j:jul-to-slf4j</include>
<include>ch.qos.logback:logback-classic</include>
<include>ch.qos.logback:logback-core</include>
<!-- Servlet API -->
<include>jakarta.servlet:jakarta.servlet-api</include>
<include>org.eclipse.jetty.toolchain:jetty-schemas</include>
<!-- Apache NiFi -->
<include>org.apache.nifi:nifi-api</include>
<include>org.apache.nifi:nifi-framework-api</include>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,6 @@
<version>2.0.0-SNAPSHOT</version>
</dependency>


<dependency> <!-- handling this explicitly Must be in root lib -->
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency> <!-- handling this explicitly Must be in root lib -->
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-schemas</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down
11 changes: 0 additions & 11 deletions nifi-external/nifi-kafka-connect/nifi-kafka-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@
<version>2.0.0-SNAPSHOT</version>
</dependency>


<dependency> <!-- handling this explicitly Must be in root lib -->
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency> <!-- handling this explicitly Must be in root lib -->
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-schemas</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@

<!-- Logger for managing logging statements for jetty -->
<logger name="org.eclipse.jetty" level="INFO"/>
<!-- Suppress non-error messages related to Logback ServletContainerInitializer -->
<logger name="org.eclipse.jetty.ee10.annotations.AnnotationConfiguration" level="WARN"/>

<!-- Suppress non-error messages due to excessive logging by class or library -->
<logger name="org.springframework" level="ERROR"/>
Expand Down
10 changes: 10 additions & 0 deletions nifi-nar-bundles/nifi-jetty-bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-framework-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-schemas</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions nifi-stateless/nifi-stateless-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,6 @@
</dependency>

<!-- 3rd party dependencies in rootlib directory -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-schemas</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions nifi-system-tests/nifi-system-test-suite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,6 @@
<artifactId>jersey-hk2</artifactId>
<scope>test</scope>
</dependency>
<dependency> <!-- handling this explicitly Must be in root lib -->
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency> <!-- handling this explicitly Must be in root lib -->
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-schemas</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
Expand Down

0 comments on commit e66da89

Please sign in to comment.