Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed exclusions (related to TOMEE-4294) #1092

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Fixed exclusions (related to TOMEE-4294) #1092

merged 2 commits into from
Jan 15, 2024

Conversation

tandraschko
Copy link
Member

Fixed exclusions (related to TOMEE-4294)

otherwise you have a duplicate CDI classes on classpath when running with tomee embedded maven plugin

@tandraschko
Copy link
Member Author

@jgallimore could you merge pls? one my application is working fine now

@rzo1
Copy link
Contributor

rzo1 commented Jan 15, 2024

Does it also apply to 9.x? If so, would you mind doing a backport PR too?

@rzo1 rzo1 merged commit be59561 into apache:main Jan 15, 2024
1 check passed
@tandraschko
Copy link
Member Author

TBH i think Markus tested it in 9.x already
Will ping him

@jungm
Copy link
Member

jungm commented Jan 16, 2024

This also applies to 9.x (note how smallrye-health pulls in cdi/jsonp):

tomee/tomee/tomee-microprofile/mp-common
➜ mvn dependency:tree
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< org.apache.tomee:mp-common >---------------------
[INFO] Building TomEE :: TomEE :: MicroProfile Common 9.1.3-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- dependency:3.3.0:tree (default-cli) @ mp-common ---
[INFO] org.apache.tomee:mp-common:jar:9.1.3-SNAPSHOT
[INFO] +- org.apache.tomee:jakartaee-api:jar:9.1.1:provided
[INFO] +- org.apache.tomee:tomee-catalina:jar:9.1.3-SNAPSHOT:provided
[INFO] |  +- org.apache.tomee:jakartaee-api:jar:tomcat:9.1.1:provided
[INFO] |  +- org.apache.tomee:openejb-api:jar:9.1.3-SNAPSHOT:compile
[INFO] |  +- org.apache.tomee:tomee-config:jar:9.1.3-SNAPSHOT:provided
[INFO] |  +- org.apache.tomee:tomee-common:jar:9.1.3-SNAPSHOT:provided
[INFO] |  |  \- org.apache.tomee:openejb-client:jar:9.1.3-SNAPSHOT:provided
[INFO] |  |     +- org.apache.yoko:yoko-rmi-spec:jar:1.4:provided
[INFO] |  |     +- org.apache.yoko:yoko-rmi-impl:jar:1.4:provided
[INFO] |  |     |  \- org.apache.yoko:yoko-osgi:jar:1.4:provided
[INFO] |  |     \- org.apache.tomee:servicemix-bcel-shade:jar:9.1.3-SNAPSHOT:provided
[INFO] |  +- org.apache.tomee:tomee-loader:jar:9.1.3-SNAPSHOT:provided
[INFO] |  |  \- org.apache.tomcat:tomcat-juli:jar:10.0.27:provided
[INFO] |  +- org.apache.tomee:tomee-jdbc:jar:9.1.3-SNAPSHOT:provided
[INFO] |  +- org.apache.tomee:tomee-juli:jar:9.1.3-SNAPSHOT:provided
[INFO] |  +- org.apache.tomee:openejb-server:jar:9.1.3-SNAPSHOT:provided
[INFO] |  +- org.apache.tomee:openejb-ejbd:jar:9.1.3-SNAPSHOT:provided
[INFO] |  +- org.apache.tomee:openejb-http:jar:9.1.3-SNAPSHOT:provided
[INFO] |  +- org.apache.openwebbeans:openwebbeans-spi:jar:jakarta:2.0.27:compile
[INFO] |  +- org.apache.openwebbeans:openwebbeans-impl:jar:jakarta:2.0.27:compile
[INFO] |  +- org.apache.openwebbeans:openwebbeans-web:jar:jakarta:2.0.27:compile
[INFO] |  \- org.apache.geronimo.components:geronimo-transaction:jar:jakarta:3.1.5:compile
[INFO] +- org.apache.tomee:openejb-rest:jar:9.1.3-SNAPSHOT:provided
[INFO] +- org.apache.tomee:openejb-cxf-rs:jar:9.1.3-SNAPSHOT:provided
[INFO] |  +- org.apache.tomee:openejb-cxf-transport:jar:9.1.3-SNAPSHOT:provided
[INFO] |  |  \- org.apache.cxf:cxf-rt-management:jar:4.0.3:provided
[INFO] |  +- org.apache.cxf:cxf-rt-rs-client:jar:4.0.3:compile
[INFO] |  +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:4.0.3:compile
[INFO] |  |  +- jakarta.ws.rs:jakarta.ws.rs-api:jar:3.0.0:compile
[INFO] |  |  +- jakarta.annotation:jakarta.annotation-api:jar:2.1.1:compile
[INFO] |  |  \- org.apache.cxf:cxf-rt-security:jar:4.0.3:compile
[INFO] |  +- org.apache.cxf:cxf-rt-rs-sse:jar:4.0.3:provided
[INFO] |  +- org.apache.cxf:cxf-rt-rs-service-description:jar:4.0.3:provided
[INFO] |  +- org.apache.cxf:cxf-rt-rs-extension-providers:jar:4.0.3:compile
[INFO] |  +- org.apache.johnzon:johnzon-jaxrs:jar:jakarta:1.2.21:provided
[INFO] |  +- org.apache.johnzon:johnzon-jsonb:jar:jakarta:1.2.21:provided
[INFO] |  +- org.apache.johnzon:johnzon-core:jar:jakarta:1.2.21:provided
[INFO] |  \- org.apache.johnzon:johnzon-mapper:jar:jakarta:1.2.21:provided
[INFO] +- org.eclipse.microprofile.config:microprofile-config-api:jar:3.0.3:compile
[INFO] +- org.eclipse.microprofile.fault-tolerance:microprofile-fault-tolerance-api:jar:4.0.2:compile
[INFO] +- org.eclipse.microprofile.health:microprofile-health-api:jar:4.0.1:compile
[INFO] +- org.eclipse.microprofile.jwt:microprofile-jwt-auth-api:jar:2.0:compile
[INFO] +- org.eclipse.microprofile.metrics:microprofile-metrics-api:jar:4.0.1:compile
[INFO] +- org.eclipse.microprofile.openapi:microprofile-openapi-api:jar:3.0:compile
[INFO] +- org.eclipse.microprofile.opentracing:microprofile-opentracing-api:jar:3.0:compile
[INFO] +- org.eclipse.microprofile.rest.client:microprofile-rest-client-api:jar:3.0.1:compile
[INFO] +- io.opentracing:opentracing-api:jar:0.33.0:compile
[INFO] +- io.smallrye.config:smallrye-config:jar:3.0.0:compile
[INFO] |  +- io.smallrye.config:smallrye-config-core:jar:3.0.0:compile
[INFO] |  |  +- io.smallrye.common:smallrye-common-annotation:jar:2.0.0:compile
[INFO] |  |  +- io.smallrye.common:smallrye-common-expression:jar:2.0.0:compile
[INFO] |  |  |  \- io.smallrye.common:smallrye-common-function:jar:2.0.0:compile
[INFO] |  |  +- io.smallrye.common:smallrye-common-constraint:jar:2.0.0:compile
[INFO] |  |  +- io.smallrye.common:smallrye-common-classloader:jar:2.0.0:compile
[INFO] |  |  +- org.ow2.asm:asm:jar:9.3:compile
[INFO] |  |  \- io.smallrye.config:smallrye-config-common:jar:3.0.0:compile
[INFO] |  \- org.jboss.logging:jboss-logging:jar:3.5.0.Final:compile
[INFO] +- io.smallrye:smallrye-fault-tolerance:jar:6.2.2:compile
[INFO] |  +- io.smallrye:smallrye-fault-tolerance-api:jar:6.2.2:compile
[INFO] |  +- io.smallrye:smallrye-fault-tolerance-core:jar:6.2.2:compile
[INFO] |  \- io.smallrye:smallrye-fault-tolerance-autoconfig-core:jar:6.2.2:compile
[INFO] +- io.smallrye:smallrye-health:jar:4.0.1:compile
[INFO] |  +- io.smallrye:smallrye-health-api:jar:4.0.1:compile
[INFO] |  |  \- io.smallrye.reactive:mutiny:jar:1.8.0:compile
[INFO] |  +- jakarta.enterprise:jakarta.enterprise.cdi-api:jar:3.0.0:compile
[INFO] |  |  +- jakarta.el:jakarta.el-api:jar:4.0.0:compile
[INFO] |  |  +- jakarta.interceptor:jakarta.interceptor-api:jar:2.0.0:compile
[INFO] |  |  \- jakarta.inject:jakarta.inject-api:jar:2.0.0:compile
[INFO] |  +- jakarta.json:jakarta.json-api:jar:2.0.1:compile
[INFO] |  \- org.glassfish:jakarta.json:jar:2.0.1:compile
[INFO] +- io.smallrye:smallrye-metrics:jar:4.0.0:compile
[INFO] +- io.smallrye:smallrye-open-api:pom:3.0.1:compile
[INFO] |  +- io.smallrye:smallrye-open-api-core:jar:3.0.1:compile
[INFO] |  |  \- io.smallrye:jandex:jar:3.0.1:compile
[INFO] |  \- io.smallrye:smallrye-open-api-jaxrs:jar:3.0.1:compile
[INFO] +- io.smallrye:smallrye-opentracing:jar:3.0.3:compile
[INFO] |  \- io.smallrye:smallrye-opentracing-contrib:jar:3.0.3:compile
[INFO] |     +- io.opentracing:opentracing-noop:jar:0.33.0:compile
[INFO] |     +- io.opentracing:opentracing-util:jar:0.33.0:compile
[INFO] |     \- io.opentracing.contrib:opentracing-concurrent:jar:0.4.0:compile
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.15.3:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-core:jar:2.15.3:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.15.3:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.15.3:compile
[INFO] +- org.yaml:snakeyaml:jar:2.2:compile
[INFO] +- org.apache.tomee:mp-jwt:jar:9.1.3-SNAPSHOT:compile
[INFO] |  +- org.bitbucket.b_c:jose4j:jar:0.9.3:compile
[INFO] |  \- io.churchkey:churchkey:jar:1.22:compile
[INFO] +- org.apache.cxf:cxf-rt-rs-mp-client:jar:4.0.3:compile
[INFO] |  +- org.apache.cxf:cxf-rt-transports-http:jar:4.0.3:compile
[INFO] |  +- org.reactivestreams:reactive-streams:jar:1.0.4:compile
[INFO] |  \- org.apache.cxf:cxf-core:jar:4.0.3:compile
[INFO] |     +- com.fasterxml.woodstox:woodstox-core:jar:6.5.1:compile
[INFO] |     |  \- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
[INFO] |     \- org.apache.ws.xmlschema:xmlschema-core:jar:2.3.1:compile
[INFO] +- junit:junit:jar:4.13.2:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] \- org.apache.tomee:openejb-core:jar:9.1.3-SNAPSHOT:compile
[INFO]    +- org.apache.tomee:mbean-annotation-api:jar:9.1.3-SNAPSHOT:compile
[INFO]    +- org.apache.tomee:openejb-jpa-integration:jar:9.1.3-SNAPSHOT:compile
[INFO]    +- org.apache.tomee.bom:jaxb-runtime:pom:9.1.3-SNAPSHOT:compile
[INFO]    |  +- jakarta.xml.bind:jakarta.xml.bind-api:jar:3.0.1:compile
[INFO]    |  \- org.glassfish.jaxb:jaxb-runtime:jar:3.0.2:runtime
[INFO]    |     \- org.glassfish.jaxb:jaxb-core:jar:3.0.2:runtime
[INFO]    |        +- org.glassfish.jaxb:txw2:jar:3.0.2:runtime
[INFO]    |        \- com.sun.istack:istack-commons-runtime:jar:4.0.1:runtime
[INFO]    +- org.apache.commons:commons-lang3:jar:3.13.0:compile
[INFO]    +- org.apache.tomee:openejb-loader:jar:9.1.3-SNAPSHOT:compile
[INFO]    +- org.apache.tomee:openejb-javaagent:jar:9.1.3-SNAPSHOT:compile
[INFO]    +- org.apache.tomee:openejb-jee:jar:9.1.3-SNAPSHOT:compile
[INFO]    +- org.apache.tomee:openejb-jee-accessors:jar:9.1.3-SNAPSHOT:compile
[INFO]    |  \- org.apache.tomee:sxc-shade:jar:9.1.3-SNAPSHOT:compile
[INFO]    +- commons-cli:commons-cli:jar:1.6.0:compile
[INFO]    +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO]    +- com.sun.activation:jakarta.activation:jar:1.2.1:compile
[INFO]    +- org.apache.geronimo.components:geronimo-connector:jar:jakarta:3.1.5:compile
[INFO]    +- org.objectweb.howl:howl:jar:1.0.1-1:compile
[INFO]    +- org.apache.geronimo.mail:geronimo-mail_2.1_provider:jar:1.0.0:compile
[INFO]    |  \- org.apache.geronimo.specs:geronimo-mail_2.1_spec:jar:1.0.0-M1:compile
[INFO]    +- org.apache.xbean:xbean-asm9-shaded:jar:4.23:compile
[INFO]    +- org.apache.xbean:xbean-finder-shaded:jar:4.23:compile
[INFO]    +- org.apache.xbean:xbean-reflect:jar:4.23:compile
[INFO]    +- org.apache.xbean:xbean-naming:jar:4.23:compile
[INFO]    +- org.apache.xbean:xbean-bundleutils:jar:4.23:compile
[INFO]    +- org.hsqldb:hsqldb:jar:2.7.2:compile
[INFO]    +- org.apache.tomee:commons-dbcp2-shade:jar:9.1.3-SNAPSHOT:compile
[INFO]    +- org.apache.commons:commons-pool2:jar:2.12.0:compile
[INFO]    +- org.codehaus.swizzle:swizzle-stream:jar:1.6.2:compile
[INFO]    +- commons-logging:commons-logging:jar:1.2:compile
[INFO]    +- org.apache.openejb.shade:quartz-openejb-shade:jar:2.2.4:compile
[INFO]    +- org.slf4j:slf4j-jdk14:jar:2.0.9:compile
[INFO]    +- org.slf4j:slf4j-api:jar:2.0.9:compile
[INFO]    +- org.apache.openwebbeans:openwebbeans-el22:jar:jakarta:2.0.27:compile
[INFO]    +- org.apache.openwebbeans:openwebbeans-ejb:jar:jakarta:2.0.27:compile
[INFO]    +- org.apache.openwebbeans:openwebbeans-ee:jar:jakarta:2.0.27:compile
[INFO]    +- org.apache.openwebbeans:openwebbeans-ee-common:jar:jakarta:2.0.27:compile
[INFO]    +- org.apache.openjpa:openjpa:jar:jakarta:3.2.2:compile
[INFO]    |  \- net.sourceforge.serp:serp:jar:1.15.1:compile
[INFO]    +- org.apache.bval:bval-jsr:jar:jakarta:2.0.6:compile
[INFO]    \- org.apache.yoko:yoko-spec-corba:jar:1.4:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.830 s
[INFO] Finished at: 2024-01-16T10:18:58+01:00
[INFO] ------------------------------------------------------------------------

I'll backport this and create a PR later, I also highly doubt org.glassfish:jakarta.json:jar:2.0.1 is needed

@rzo1
Copy link
Contributor

rzo1 commented Jan 16, 2024

Thanks @jungm

jungm added a commit to jungm/tomee that referenced this pull request Jan 16, 2024
rzo1 pushed a commit that referenced this pull request Jan 16, 2024
cesarhernandezgt added a commit to cesarhernandezgt/tomee that referenced this pull request Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants