diff --git a/dist/javadoc/pom.xml b/dist/javadoc/pom.xml index 82a17ffb7cd..ffa4004e1e4 100644 --- a/dist/javadoc/pom.xml +++ b/dist/javadoc/pom.xml @@ -42,8 +42,8 @@ provided - org.apache.tomcat - tomcat-annotations-api + javax.annotation + javax.annotation-api provided diff --git a/dist/midpoint-api/pom.xml b/dist/midpoint-api/pom.xml index 0d3a5d03e12..82d76970773 100644 --- a/dist/midpoint-api/pom.xml +++ b/dist/midpoint-api/pom.xml @@ -52,6 +52,10 @@ util 4.2-SNAPSHOT + + javax.servlet + javax.servlet-api + diff --git a/gui/admin-gui/pom.xml b/gui/admin-gui/pom.xml index f1a520a025e..aae68b218f9 100644 --- a/gui/admin-gui/pom.xml +++ b/gui/admin-gui/pom.xml @@ -45,28 +45,26 @@ org.springframework.security.extensions spring-security-saml2-core - - - org.bouncycastle - bcprov-jdk15on - - - com.google.code.findbugs - jsr305 - - org.springframework.boot spring-boot-starter-tomcat provided + + + + javax.annotation + javax.annotation-api + + org.apache.tomcat.embed tomcat-embed-core provided + org.apache.tomcat tomcat-annotations-api @@ -266,21 +264,7 @@ com.evolveum.midpoint.repo repo-api - 4.2-SNAPSHOT - - - jaxb-impl - com.sun.xml.bind - - - jaxb-core - com.sun.xml.bind - - - asm - asm - - + ${project.version} com.evolveum.midpoint.repo @@ -364,16 +348,6 @@ com.evolveum.midpoint.repo repo-cache 4.2-SNAPSHOT - - - jaxb-impl - com.sun.xml.bind - - - jaxb-core - com.sun.xml.bind - - com.evolveum.midpoint.repo @@ -404,12 +378,6 @@ model-impl 4.2-SNAPSHOT runtime - - - jaxb-impl - com.sun.xml.bind - - com.evolveum.midpoint.model @@ -446,16 +414,6 @@ report-impl 4.2-SNAPSHOT runtime - - - jaxb-impl - com.sun.xml.bind - - - asm - asm - - @@ -535,12 +493,6 @@ org.apache.wicket wicket-ioc - - - org.apache.ant - ant - - org.apache.wicket @@ -658,16 +610,6 @@ org.opensaml opensaml-security-impl - - - org.bouncycastle - bcprov-jdk15on - - - org.bouncycastle - bcpkix-jdk15on - - org.bouncycastle @@ -721,11 +663,6 @@ spring-test test - - javax.annotation - javax.annotation-api - test - org.testng testng @@ -803,7 +740,7 @@ javax.servlet - servlet-api + javax.servlet-api provided @@ -819,6 +756,14 @@ org.slf4j slf4j-api + + + + mysql + mysql-connector-java + runtime + true + @@ -900,6 +845,38 @@ true + + + org.springframework.boot + spring-boot-maven-plugin + + + true + false + + + -Dserver.port=${server.port} -Dmidpoint.home=${midpoint.home} -Dmidpoint.schrodinger=${midpoint.schrodinger} -Djavax.net.ssl.trustStore=${javax.net.ssl.trustStore} -Djavax.net.ssl.trustStoreType=${javax.net.ssl.trustStoreType} + + + + + repackage + + + executable + + + + + + + com.evolveum.midpoint.tools + midpoint-war-layout + ${project.version} + + + + maven-failsafe-plugin @@ -928,95 +905,4 @@ - - - - executable - - true - - - - - org.springframework.boot - spring-boot-maven-plugin - ${spring.boot.version} - - true - false - - - -Dserver.port=${server.port} -Dmidpoint.home=${midpoint.home} -Dmidpoint.schrodinger=${midpoint.schrodinger} -Djavax.net.ssl.trustStore=${javax.net.ssl.trustStore} -Djavax.net.ssl.trustStoreType=${javax.net.ssl.trustStoreType} - - - - - repackage - - - executable - - - - - - - com.evolveum.midpoint.tools - midpoint-war-layout - ${project.version} - - - - - - - - - tomcat - - true - - - - jaxb-impl - com.sun.xml.bind - runtime - - - jaxb-api - javax.xml.bind - runtime - - - jaxb-core - com.sun.xml.bind - runtime - - - - - - - ide - - - org.springframework.boot - spring-boot-starter-tomcat - - - org.apache.tomcat.embed - tomcat-embed-core - - - org.apache.tomcat - tomcat-annotations-api - - - mysql - mysql-connector-java - runtime - - - - diff --git a/gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/util/WebModelServiceUtils.java b/gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/util/WebModelServiceUtils.java index 18e764aa785..1672faa5641 100644 --- a/gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/util/WebModelServiceUtils.java +++ b/gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/util/WebModelServiceUtils.java @@ -457,7 +457,10 @@ public static int countObjects(Class type, ObjectQuery OperationResult parentResult = new OperationResult(OPERATION_COUNT_OBJECT); int count = 0; try { - count = page.getModelService().countObjects(type, query, null, task, parentResult); + Collection> options = page.getOperationOptionsBuilder() + .distinct(true) + .build(); + count = page.getModelService().countObjects(type, query, options, task, parentResult); } catch (SchemaException | ObjectNotFoundException | SecurityViolationException | ConfigurationException | CommunicationException | ExpressionEvaluationException ex) { parentResult.recordFatalError(page.createStringResource("WebModelUtils.couldntCountObjects").getString(), ex); diff --git a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/self/PageAccountActivation.java b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/self/PageAccountActivation.java index ec6bbefa718..2811027ea34 100644 --- a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/self/PageAccountActivation.java +++ b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/self/PageAccountActivation.java @@ -181,7 +181,7 @@ protected void onError(AjaxRequestTarget target) { target.add(getFeedbackPanel()); } }; - + form.setDefaultButton(confirmPasswrod); form.add(confirmPasswrod); WebMarkupContainer confirmationContainer = new WebMarkupContainer(ID_CONFIRMATION_CONTAINER); diff --git a/infra/prism-impl/pom.xml b/infra/prism-impl/pom.xml index 92482efd0f2..6d707f84b46 100644 --- a/infra/prism-impl/pom.xml +++ b/infra/prism-impl/pom.xml @@ -44,8 +44,8 @@ - com.sun.xml.bind - jaxb-xjc + org.glassfish.jaxb + xsom org.glassfish.jaxb diff --git a/infra/schema/pom.xml b/infra/schema/pom.xml index aff532b9c29..1d05e810701 100644 --- a/infra/schema/pom.xml +++ b/infra/schema/pom.xml @@ -90,14 +90,11 @@ commons-codec commons-codec + org.apache.cxf.xjc-utils cxf-xjc-runtime - - com.sun.xml.bind - jaxb-xjc - net.sf.jasperreports jasperreports @@ -296,11 +293,6 @@ xjc-plugin 4.2-SNAPSHOT - - com.sun.xml.bind - jaxb-xjc - ${jaxb-xjc.version} - diff --git a/infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ResourceTypeUtil.java b/infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ResourceTypeUtil.java index 50470203ac7..81962b5de6f 100644 --- a/infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ResourceTypeUtil.java +++ b/infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ResourceTypeUtil.java @@ -32,8 +32,6 @@ import com.evolveum.midpoint.schema.processor.ObjectClassComplexTypeDefinition; import com.evolveum.midpoint.schema.processor.ResourceAttributeDefinition; import com.evolveum.midpoint.schema.processor.ResourceSchema; -import com.evolveum.midpoint.schema.result.OperationResult; -import com.evolveum.midpoint.util.exception.ObjectNotFoundException; import com.evolveum.midpoint.util.exception.SchemaException; import com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationCapabilityType; import com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationLockoutStatusCapabilityType; @@ -54,7 +52,6 @@ import com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.TestConnectionCapabilityType; import com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.UpdateCapabilityType; import com.evolveum.prism.xml.ns._public.types_3.SchemaDefinitionType; -import com.sun.tools.xjc.reader.RawTypeSet.Ref; /** * Methods that would belong to the ResourceType class but cannot go there diff --git a/model/certification-impl/pom.xml b/model/certification-impl/pom.xml index d2061bcb64e..44c8c7307f2 100644 --- a/model/certification-impl/pom.xml +++ b/model/certification-impl/pom.xml @@ -267,7 +267,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/model/model-api/pom.xml b/model/model-api/pom.xml index e1b2a56e9f3..ca2b9164940 100644 --- a/model/model-api/pom.xml +++ b/model/model-api/pom.xml @@ -100,8 +100,7 @@ javax.servlet - servlet-api - compile + javax.servlet-api diff --git a/model/model-impl/pom.xml b/model/model-impl/pom.xml index 0125bd69ebf..a9033f1a2de 100644 --- a/model/model-impl/pom.xml +++ b/model/model-impl/pom.xml @@ -386,9 +386,7 @@ javax.servlet - servlet-api - - + javax.servlet-api com.googlecode.java-diff-utils diff --git a/model/model-intest/pom.xml b/model/model-intest/pom.xml index 48b7fe73fc2..64b6969d7d6 100644 --- a/model/model-intest/pom.xml +++ b/model/model-intest/pom.xml @@ -267,7 +267,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/model/model-test/pom.xml b/model/model-test/pom.xml index 2b6ccf49c2b..ce2d2c2b480 100644 --- a/model/model-test/pom.xml +++ b/model/model-test/pom.xml @@ -182,7 +182,7 @@ javax.servlet - servlet-api + javax.servlet-api org.forgerock.opendj diff --git a/model/notifications-impl/pom.xml b/model/notifications-impl/pom.xml index cfe847b683c..fa624221441 100644 --- a/model/notifications-impl/pom.xml +++ b/model/notifications-impl/pom.xml @@ -236,7 +236,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/model/report-impl/pom.xml b/model/report-impl/pom.xml index 17289b25056..6980d5cfafc 100644 --- a/model/report-impl/pom.xml +++ b/model/report-impl/pom.xml @@ -298,7 +298,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/model/workflow-impl/pom.xml b/model/workflow-impl/pom.xml index 89e18a7be11..0fb596249fa 100644 --- a/model/workflow-impl/pom.xml +++ b/model/workflow-impl/pom.xml @@ -282,7 +282,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/pom.xml b/pom.xml index 5f7ffa3c0b8..8e0d0376d8b 100644 --- a/pom.xml +++ b/pom.xml @@ -61,6 +61,12 @@ mvn clean install -P -dist -DskipTests -DskipSchrodingerTests=false -DwebdriverLocation=/c/work/tools/bin/chromedriver.exe --> + + org.springframework.boot + spring-boot-dependencies + 2.1.13.RELEASE + + com.evolveum.midpoint midpoint 4.2-SNAPSHOT @@ -154,16 +160,12 @@ 3.3.0 2.2.0 2.4.7 - 2.3.1 - 2.3.0.1 - 2.3.0.1 2.6.2 2.3.0.e3 3.141.59 1.7.25 1.2.3 - 2.1.8.RELEASE - + 5.1.9.RELEASE 5.1.6.RELEASE 2.0.0.M30 @@ -198,11 +200,9 @@ 1.8 1.4.0 7.1.1 - 2.3.2 7.0 2.3.1 1.1.3 - 1.2.0 9.4.20.v20190813 3.6.2 3.1.0 @@ -229,36 +229,39 @@ geronimo-ws-metadata_2.0_spec ${geronimo-ws-metadata_2.0_spec.version} + - com.sun.activation - javax.activation - ${activation.version} + jakarta.activation + jakarta.activation-api + 1.2.2 - - - org.springframework.boot - spring-boot-dependencies - ${spring.boot.version} - pom - import + com.sun.activation + javax.activation + ${javax-activation.version} - org.springframework.boot - spring-boot-starter-test - ${spring.boot.version} + org.glassfish.jaxb + jaxb-runtime + ${glassfish-jaxb.version} + - org.ow2.asm - asm + javax.activation + javax.activation-api - - junit - junit + javax.activation + javax.activation-api - --> @@ -469,26 +472,6 @@ - - javax.xml.bind - jaxb-api - ${jaxb-api.version} - - - com.sun.xml.bind - jaxb-impl - ${jaxb.version} - - - com.sun.xml.bind - jaxb-core - ${jaxb.version} - - - com.sun.xml.bind - jaxb-xjc - ${jaxb-xjc.version} - net.sourceforge.ccxjc cc-xjc-plugin @@ -608,8 +591,8 @@ javax.servlet - servlet-api - 2.5 + javax.servlet-api + ${servlet-api.version} provided @@ -674,7 +657,7 @@ javax.xml.soap javax.xml.soap-api - + org.glassfish.jaxb jaxb-xjc @@ -1002,6 +985,10 @@ org.bouncycastle bcprov-jdk15on + + com.google.code.findbugs + jsr305 + @@ -1379,6 +1366,12 @@ org.opensaml opensaml-security-impl 3.3.0 + + + org.bouncycastle + bcprov-jdk15on + + @@ -1491,7 +1484,7 @@ org.seleniumhq.selenium selenium-java - 3.14.0 + ${selenium.version} @@ -1686,7 +1679,6 @@ org.apache.maven.plugins maven-enforcer-plugin - 3.0.0-M2 enforce @@ -1698,9 +1690,16 @@ - + commons-logging:commons-logging org.springframework:spring-jcl + + com.sun.xml.bind:* + + javax.activation:javax.activation-api @@ -1729,7 +1728,10 @@ true true - + org.assertj:assertj-core @@ -1829,6 +1831,14 @@ org.apache.maven.plugins maven-deploy-plugin 2.8.2 + + + + true + org.eclipse.m2e diff --git a/repo/security-api/pom.xml b/repo/security-api/pom.xml index cf23b72e765..5fd55d467ab 100644 --- a/repo/security-api/pom.xml +++ b/repo/security-api/pom.xml @@ -59,7 +59,7 @@ javax.servlet - servlet-api + javax.servlet-api org.apache.commons diff --git a/repo/security-enforcer-api/pom.xml b/repo/security-enforcer-api/pom.xml index 2234f6f9e1b..dd4e663e353 100644 --- a/repo/security-enforcer-api/pom.xml +++ b/repo/security-enforcer-api/pom.xml @@ -50,10 +50,5 @@ task-api 4.2-SNAPSHOT - - - javax.servlet - servlet-api - diff --git a/repo/system-init/src/main/java/com/evolveum/midpoint/init/StartupConfiguration.java b/repo/system-init/src/main/java/com/evolveum/midpoint/init/StartupConfiguration.java index 896d21aa9b5..dd178f1561a 100644 --- a/repo/system-init/src/main/java/com/evolveum/midpoint/init/StartupConfiguration.java +++ b/repo/system-init/src/main/java/com/evolveum/midpoint/init/StartupConfiguration.java @@ -62,7 +62,7 @@ public class StartupConfiguration implements MidpointConfiguration { * Normalized name of midPoint home directory. * After successful initialization (see {@link #init()} it always ends with /. * TODO: this normalization is safe, but ugly when used in XML configs like - * ${midpoint.home}/keystore.jceks - which, on the ohter hand, would be ugly without /. + * ${midpoint.home}/keystore.jceks - which, on the other hand, would be ugly without /. * Better yet is to normalize home directory NOT to end with / and use Paths.get(...) * and similar constructs in Java code and never string concatenation. * Also - maybe even this can be typed to Path in the end. diff --git a/repo/task-quartz-impl/pom.xml b/repo/task-quartz-impl/pom.xml index 73e7f3c98e3..96fd84d0747 100644 --- a/repo/task-quartz-impl/pom.xml +++ b/repo/task-quartz-impl/pom.xml @@ -132,16 +132,6 @@ spring-context - - - - - - - - - - com.evolveum.midpoint.repo diff --git a/testing/conntest/pom.xml b/testing/conntest/pom.xml index 3190deb308a..7f5d7a521ed 100644 --- a/testing/conntest/pom.xml +++ b/testing/conntest/pom.xml @@ -212,7 +212,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/testing/longtest/pom.xml b/testing/longtest/pom.xml index d6d39f0b7c1..1940bf69169 100644 --- a/testing/longtest/pom.xml +++ b/testing/longtest/pom.xml @@ -204,7 +204,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/testing/rest/pom.xml b/testing/rest/pom.xml index 7541cf66d32..1f4d5fb8bfd 100644 --- a/testing/rest/pom.xml +++ b/testing/rest/pom.xml @@ -135,11 +135,6 @@ commons-lang commons-lang - - com.sun.xml.bind - jaxb-core - runtime - org.springframework spring-beans @@ -236,7 +231,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/testing/sanity/pom.xml b/testing/sanity/pom.xml index 145d8726d56..a01857855cc 100644 --- a/testing/sanity/pom.xml +++ b/testing/sanity/pom.xml @@ -225,7 +225,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/testing/schrodingertest/pom.xml b/testing/schrodingertest/pom.xml index c9f4b40fe7a..4f94c30b177 100644 --- a/testing/schrodingertest/pom.xml +++ b/testing/schrodingertest/pom.xml @@ -53,16 +53,6 @@ com.codeborne selenide - - - io.netty - netty-all - - - io.netty - netty-all - - org.slf4j diff --git a/testing/story/pom.xml b/testing/story/pom.xml index baefd5c27fb..ece0c3b981f 100644 --- a/testing/story/pom.xml +++ b/testing/story/pom.xml @@ -272,7 +272,7 @@ javax.servlet - servlet-api + javax.servlet-api test diff --git a/tools/ninja/pom.xml b/tools/ninja/pom.xml index d48539730f3..5613e8e1f2c 100644 --- a/tools/ninja/pom.xml +++ b/tools/ninja/pom.xml @@ -242,7 +242,6 @@ org.springframework.boot spring-boot-maven-plugin - ${spring.boot.version} diff --git a/tools/xjc-plugin/pom.xml b/tools/xjc-plugin/pom.xml index 363af921995..93c30c447b1 100644 --- a/tools/xjc-plugin/pom.xml +++ b/tools/xjc-plugin/pom.xml @@ -40,9 +40,13 @@ 4.2-SNAPSHOT - com.sun.xml.bind + org.glassfish.jaxb jaxb-xjc + + org.glassfish.jaxb + codemodel + commons-lang commons-lang