Skip to content

Commit

Permalink
ARTEMIS-3695: use specific jetty deps instead of uber jar, rationalis…
Browse files Browse the repository at this point in the history
…e servlet api deps

Partially reverts c5f94f3
  • Loading branch information
gemmellr authored and clebertsuconic committed Mar 4, 2022
1 parent 7bee0d8 commit dcbd4b0
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 53 deletions.
14 changes: 0 additions & 14 deletions artemis-distribution/src/main/assembly/dep.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,11 @@
</includes>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
<dependencySet>
<directoryMode>0755</directoryMode>
<fileMode>0644</fileMode>
<includes>
<include>org.eclipse.jetty.aggregate:jetty-all:jar:uber</include>
</includes>
<outputDirectory>lib</outputDirectory>
<unpack>false</unpack>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>

<dependencySet>
<directoryMode>0755</directoryMode>
<fileMode>0644</fileMode>
<excludes>
<!-- Handled above for now to avoid it bringing in duplicative transitive deps -->
<!-- Should not be using this according to the jetty folks: https://www.eclipse.org//lists/jetty-users/msg06029.html -->
<exclude>org.eclipse.jetty.aggregate:jetty-all:jar:uber</exclude>

<!-- Handled above -->
<exclude>org.apache.activemq:artemis-boot</exclude>

Expand Down
4 changes: 2 additions & 2 deletions artemis-hawtio/activemq-branding/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@

<!-- servlet API is provided by the container -->
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions artemis-hawtio/artemis-console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions artemis-hawtio/artemis-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@

<!-- servlet API is provided by the container -->
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
10 changes: 0 additions & 10 deletions artemis-hawtio/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@

<properties>
<activemq.basedir>${project.basedir}/..</activemq.basedir>

<geronimo.servlet.3.0.spec.version>1.0</geronimo.servlet.3.0.spec.version>
</properties>

<dependencyManagement>
Expand All @@ -48,14 +46,6 @@
<version>${hawtio.version}</version>
</dependency>

<!-- servlet API is provided by the container -->
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<version>${geronimo.servlet.3.0.spec.version}</version>
<scope>provided</scope>
</dependency>

<!-- logging -->
<dependency>
<groupId>org.slf4j</groupId>
Expand Down
16 changes: 12 additions & 4 deletions artemis-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@
<artifactId>jboss-logmanager</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
<type>jar</type>
<classifier>uber</classifier>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
Expand Down Expand Up @@ -94,6 +96,12 @@
<groupId>org.jboss.resteasy</groupId>
<artifactId>tjws</artifactId>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
Expand Down
18 changes: 14 additions & 4 deletions artemis-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,20 @@
<artifactId>netty-handler</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
<type>jar</type>
<classifier>uber</classifier>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
8 changes: 2 additions & 6 deletions examples/features/sub-modules/tomcat/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ under the License.
<activemq.basedir>${project.basedir}/../../../..</activemq.basedir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<projectBaseUri>${project.baseUri}</projectBaseUri>

<geronimo.servlet.3.0.spec.version>1.0</geronimo.servlet.3.0.spec.version>
</properties>

<dependencies>
Expand All @@ -58,17 +56,15 @@ under the License.
<version>${spring.version}</version>
</dependency>


<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-jms-client</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<version>${geronimo.servlet.3.0.spec.version}</version>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
28 changes: 23 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<jsr305.version>3.0.2</jsr305.version>
<jboss.logging.version>3.4.2.Final</jboss.logging.version>
<jetty.version>9.4.44.v20210927</jetty.version>
<tomcat.servlet-api.version>8.5.76</tomcat.servlet-api.version>
<jgroups.version>5.2.0.Final</jgroups.version>
<errorprone.version>2.10.0</errorprone.version>
<maven.enforcer.plugin.version>3.0.0-M3</maven.enforcer.plugin.version>
Expand Down Expand Up @@ -771,13 +772,30 @@

<!-- ## Jetty web Dependencies ##-->
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>${jetty.version}</version>
<type>jar</type>
<classifier>uber</classifier>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</exclusion>
</exclusions>
<!-- License: (Joint): Apache 2.0 & EPL 1.0 -->
</dependency>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-bom</artifactId>
<version>${jetty.version}</version>
<type>pom</type>
<scope>import</scope>
<!-- License: (Joint): Apache 2.0 & EPL 1.0 -->
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<version>${tomcat.servlet-api.version}</version>
</dependency>
<!-- ## End Jetty Wed Dependencies ## -->

<!-- for URL reflection. Using Populate on URI Factory at activemq-commons -->
Expand Down
10 changes: 6 additions & 4 deletions tests/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,12 @@

<!-- rest test -->
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
<type>jar</type>
<classifier>uber</classifier>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
Expand Down

0 comments on commit dcbd4b0

Please sign in to comment.