Skip to content

Commit

Permalink
enable TomEE 10 profile
Browse files Browse the repository at this point in the history
  • Loading branch information
struberg committed Nov 13, 2023
1 parent 430f7c8 commit 8b2f64d
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 98 deletions.
66 changes: 51 additions & 15 deletions deltaspike/cdictrl/impl-openejb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,42 +90,78 @@

<profiles>
<profile>
<id>OpenEJB-Legacy</id>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.openejb</groupId>
<groupId>org.apache.tomee</groupId>
<artifactId>openejb-core</artifactId>
<version>${openejb.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>

<profile>
<!-- from TomEE-7.0.0 on openejb resides under the tomee group and not openejb anymore -->
<id>tomee7-build-managed</id>
<dependencies>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>openejb-core</artifactId>
<version>${openejb.version}</version>
<scope>provided</scope>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>3.0.1</version>
<exclusions>
<exclusion> <!-- Is already included in java-ee-api -->
<artifactId>jakarta.activation</artifactId>
<groupId>jakarta.activation-api</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>3.0.2</version>
<scope>runtime</scope>
<exclusions>
<exclusion> <!-- Is already included in java-ee-api -->
<artifactId>jakarta.activation</artifactId>
<groupId>jakarta.activation-api</groupId>
</exclusion>
</exclusions>
</dependency>

</dependencies>
</profile>

<profile>
<!-- from TomEE-7.0.0 on openejb resides under the tomee group and not openejb anymore -->
<id>tomee8-build-managed</id>
<id>tomee10-build-managed</id>
<dependencies>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>openejb-core</artifactId>
<version>${openejb.version}</version>
<version>${tomee10.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>3.0.1</version>
<exclusions>
<exclusion> <!-- Is already included in java-ee-api -->
<artifactId>jakarta.activation</artifactId>
<groupId>jakarta.activation-api</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>3.0.2</version>
<scope>runtime</scope>
<exclusions>
<exclusion> <!-- Is already included in java-ee-api -->
<artifactId>jakarta.activation</artifactId>
<groupId>jakarta.activation-api</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</profile>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static boolean isServletApiAvailable()
{
try
{
Class servletClass = Class.forName("javax.servlet.http.HttpSession");
Class servletClass = Class.forName("jakarta.servlet.http.HttpSession");
return servletClass != null;
}
catch (ClassNotFoundException e)
Expand Down
6 changes: 2 additions & 4 deletions deltaspike/cdictrl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

<parent>
<groupId>org.apache.deltaspike</groupId>
<artifactId>parent-code</artifactId>
<artifactId>parent</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../parent/code/pom.xml</relativePath>
<relativePath>../parent/pom.xml</relativePath>
</parent>

<groupId>org.apache.deltaspike.cdictrl</groupId>
Expand All @@ -44,9 +44,7 @@
<module>api</module>
<module>impl-owb</module>
<module>impl-weld</module>
<!--
<module>impl-openejb</module>
-->
<module>tck</module>
</modules>
</profile>
Expand Down
3 changes: 0 additions & 3 deletions deltaspike/dist/full/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<!--
<dependency>
<groupId>org.apache.deltaspike.cdictrl</groupId>
<artifactId>deltaspike-cdictrl-weld</artifactId>
Expand All @@ -135,7 +133,6 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
-->

<dependency>
<groupId>org.apache.deltaspike.modules</groupId>
Expand Down
14 changes: 7 additions & 7 deletions deltaspike/examples/jsf-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<plugins>

<plugin>
<groupId>org.apache.openejb.maven</groupId>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.0.1</version>
<configuration>
Expand All @@ -86,12 +86,12 @@

<dependencies>

<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0-5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0-5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion deltaspike/examples/jsf-playground/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.openejb.maven</groupId>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.0.1</version>
<configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
</dependency>

<dependency>
<groupId>org.apache.openejb</groupId>
<groupId>org.apache.tomee</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0-6</version>
</dependency>
Expand Down
12 changes: 11 additions & 1 deletion deltaspike/modules/jsf/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@

<profiles>
<profile>
<id>tomee8-build-managed</id>
<id>tomee10-build-managed</id>
<build>
<plugins>
<!--
Expand All @@ -198,6 +198,16 @@
</plugins>
</build>

<dependencies>
<!-- for debugging -->
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>${myfaces.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

</profile>
</profiles>

Expand Down
5 changes: 3 additions & 2 deletions deltaspike/parent/code/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@
<id>tomee10-build-managed</id>

<properties>
<tomee.version>10.0.0-M1-SNAPSHOT</tomee.version>
<openejb.version>${tomee.version}</openejb.version>
<tomee.version>${tomee10.version}</tomee.version>
<openejb.version>${tomee10.version}</openejb.version>
<jakartaeeapi.version>10.0-SNAPSHOT</jakartaeeapi.version>
<owb.version>4.0.1-SNAPSHOT</owb.version>
<cdicontainer.version>tomee-${tomee.version}</cdicontainer.version>
Expand Down Expand Up @@ -594,6 +594,7 @@
</plugins>
</build>
</profile>

<profile>
<!--
* WildFly has to be locally installed
Expand Down
68 changes: 5 additions & 63 deletions deltaspike/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@
<weld.version>4.0.3.Final</weld.version>

<!-- for cdictrl-openejb -->
<openejb.version>4.7.5</openejb.version>
<tomee.version>9.0.0.RC1</tomee.version>
<openejb.version>9.1.1</openejb.version>
<tomee10.version>10.0.0-M1-SNAPSHOT</tomee10.version>
<tomee.version>${tomee10.version}</tomee.version>

<openejb.owb.version>${owb.version}</openejb.owb.version>

<!-- testing stuff -->
<junit.version>4.13.2</junit.version>
<arquillian.version>1.7.0.Alpha13</arquillian.version>
<arquillian.version>1.7.1.Final</arquillian.version>

<!-- JSF-2.0 implementations-->
<myfaces.version>4.0.1</myfaces.version>
Expand Down Expand Up @@ -481,66 +483,6 @@
<version>1.2.2</version>
</dependency>

<!--
&lt;!&ndash; TomEE dependencies &ndash;&gt;
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>arquillian-tomee-remote</artifactId>
<version>${tomee.version}</version>
<scope>test</scope>
</dependency>
&lt;!&ndash; TomEE 7.x dependencies &ndash;&gt;
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>arquillian-tomee-remote</artifactId>
<version>${tomee.version}</version>
<scope>test</scope>
</dependency>
&lt;!&ndash; dependency for DELTASPIKE-113 &ndash;&gt;
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>${myfaces.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jcdi_1.0_spec</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>${myfaces.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl-test</artifactId>
<version>${myfaces.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.test</groupId>
<artifactId>myfaces-test20</artifactId>
<version>1.0.6</version>
<scope>provided</scope>
</dependency>
-->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
Expand Down

0 comments on commit 8b2f64d

Please sign in to comment.