Skip to content

Commit

Permalink
Examples cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: jansupol <[email protected]>
  • Loading branch information
jansupol committed Nov 15, 2023
1 parent 4b59478 commit 2d17c5d
Show file tree
Hide file tree
Showing 20 changed files with 47 additions and 84 deletions.
5 changes: 2 additions & 3 deletions examples/bookstore-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@
<plugins>
<!-- Run the application using "mvn jetty:run" -->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<configuration>
<webApp>
<contextPath>/bookstore-webapp</contextPath>
Expand Down
4 changes: 3 additions & 1 deletion examples/cdi-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet-core</artifactId>
<version>${weld.version}</version>
</dependency>
</dependencies>
</profile>
Expand All @@ -199,7 +200,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<enableAssertions>false</enableAssertions>
</configuration>
</plugin>
Expand Down
5 changes: 3 additions & 2 deletions examples/extended-wadl-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.4</version>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -259,7 +259,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<enableAssertions>false</enableAssertions>
<excludes>
<exclude>org/glassfish/jersey/examples/extendedwadl/ExtendedWadlWebappOsgiTest.java</exclude>
Expand Down
5 changes: 2 additions & 3 deletions examples/freemarker-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@
<plugins>
<!-- Run the application using "mvn jetty:run" -->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Expand Down
30 changes: 11 additions & 19 deletions examples/helloworld-cdi2-se/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@
<artifactId>jersey-container-grizzly2-http</artifactId>
</dependency>

<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<exclusions>
<exclusion>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.test-framework</groupId>
<artifactId>jersey-test-framework-util</artifactId>
Expand Down Expand Up @@ -76,25 +87,6 @@
</plugins>
</build>
</profile>

<profile>
<id>jdk11</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<dependencies>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<exclusions>
<exclusion>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</profile>
</profiles>

</project>
5 changes: 2 additions & 3 deletions examples/helloworld-spring-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@
<plugins>
<!-- Run the application using "mvn jetty:run" to deploy to Jetty-->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<configuration>
<webApp>
<contextPath>/helloworld-spring-webapp</contextPath>
Expand Down
5 changes: 2 additions & 3 deletions examples/helloworld-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@
<plugins>
<!-- Run the application using "mvn jetty:run" to deploy to Jetty-->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<configuration>
<webApp>
<contextPath>/helloworld-webapp</contextPath>
Expand Down
5 changes: 2 additions & 3 deletions examples/java8-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@
</plugin>
<!-- Run the application using "mvn jetty:run" -->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<configuration>
<stopWait>5</stopWait>
<stopPort>9999</stopPort>
Expand Down
Empty file removed examples/json-jackson1/pom.xml
Empty file.
5 changes: 2 additions & 3 deletions examples/json-processing-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Expand Down
5 changes: 2 additions & 3 deletions examples/managed-client-simple-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<configuration>
<webApp>
<contextPath>/managed-client-simple-webapp/</contextPath>
Expand Down
5 changes: 2 additions & 3 deletions examples/managed-client-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<configuration>
<webApp>
<contextPath>/managed-client-webapp/</contextPath>
Expand Down
5 changes: 2 additions & 3 deletions examples/multipart-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Expand Down
3 changes: 2 additions & 1 deletion examples/osgi-helloworld-webapp/functional-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<enableAssertions>false</enableAssertions>
<classpathDependencyExcludes>
<classpathDepenencyExclude>org.apache.felix:org.osgi.core</classpathDepenencyExclude>
Expand Down
3 changes: 2 additions & 1 deletion examples/osgi-http-service/functional-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<enableAssertions>false</enableAssertions>
</configuration>
<executions>
Expand Down
5 changes: 2 additions & 3 deletions examples/rx-client-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@
<plugins>
<!-- Run the application using "mvn jetty:run" -->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Expand Down
5 changes: 2 additions & 3 deletions examples/servlet3-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@
<!-- <artifactId>maven-failsafe-plugin</artifactId>-->
<!-- </plugin>-->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<configuration>
<!-- <skip>${skip.tests}</skip>-->
<!-- <stopWait>10</stopWait>-->
Expand Down
6 changes: 2 additions & 4 deletions examples/sse-item-store-jaxrs-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@
<plugins>
<!-- Run the application using "mvn jetty:run" -->
<plugin>
<!-- TODO unify Jetty in all examples -->
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<configuration>
<stopWait>10</stopWait>
<stopPort>9999</stopPort>
Expand Down
6 changes: 2 additions & 4 deletions examples/sse-item-store-jersey-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@
<plugins>
<!-- Run the application using "mvn jetty:run" -->
<plugin>
<!-- TODO unify Jetty in all examples -->
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<configuration>
<stopWait>10</stopWait>
<stopPort>9999</stopPort>
Expand Down
19 changes: 0 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -733,11 +733,6 @@
<version>${buildnumber.mvn.plugin.version}</version>
</plugin>
<!-- TODO: remove the old jetty plugin dependencies -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.8.v20121106</version>
</plugin>
<plugin>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
Expand Down Expand Up @@ -2066,20 +2061,6 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${jetty.plugin.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-util</artifactId>
<version>${jetty.plugin.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
Expand Down

0 comments on commit 2d17c5d

Please sign in to comment.