diff --git a/common-util/pom.xml b/common-util/pom.xml index c9421415f92f1cafbec28873dc8891708d02bb90..6a0cdf0d2f34c799ce01a5382da1c27ddc66860a 100644 --- a/common-util/pom.xml +++ b/common-util/pom.xml @@ -1,343 +1,327 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> - <groupId>com.tarento.upsmf</groupId> - <artifactId>common-util</artifactId> - <version>0.0.1-SNAPSHOT</version> - <name>common-util</name> - <url>http://maven.apache.org</url> + <groupId>org.upsmf</groupId> + <artifactId>common-util</artifactId> + <version>0.0.1-SNAPSHOT</version> + <name>common-util</name> + <url>http://maven.apache.org</url> - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <learner.akka.version>2.6.16</learner.akka.version> - <java.version>11</java.version> - </properties> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <!-- <versions.jacoco>0.7.6.201602180812</versions.jacoco> --> + <learner.akka.version>2.5.19</learner.akka.version> + </properties> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.12</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.typesafe.akka</groupId> - <artifactId>akka-actor_2.12</artifactId> - <version>2.6.16</version> - </dependency> - <dependency> - <groupId>com.typesafe.akka</groupId> - <artifactId>akka-slf4j_2.12</artifactId> - <version>2.6.16</version> - </dependency> - <dependency> - <groupId>com.typesafe.akka</groupId> - <artifactId>akka-remote_2.12</artifactId> - <version>2.6.16</version> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-api</artifactId> - <version>2.8.2</version> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-core</artifactId> - <version>2.8.2</version> - </dependency> - <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --> - <dependency> - <groupId>org.apache.commons</groupId> - <artifactId>commons-lang3</artifactId> - <version>3.0</version> - </dependency> - <!-- Adding for Key cloak SSO server. --> - <dependency> - <groupId>org.keycloak</groupId> - <artifactId>keycloak-admin-client</artifactId> - <version>6.0.1</version> - </dependency> - <dependency> - <groupId>org.jboss.resteasy</groupId> - <artifactId>jaxrs-api</artifactId> - <version>3.0.11.Final</version> - </dependency> - <dependency> - <groupId>org.jboss.resteasy</groupId> - <artifactId>resteasy-client</artifactId> - <version>3.1.0.Final</version> - </dependency> - <!-- for Azure file storage --> - <dependency> - <groupId>com.microsoft.azure</groupId> - <artifactId>azure-storage</artifactId> - <version>5.4.0</version> - </dependency> - <!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity-tools --> - <dependency> - <groupId>org.apache.velocity</groupId> - <artifactId>velocity-tools</artifactId> - <version>2.0</version> - </dependency> - <!-- https://mvnrepository.com/artifact/javax.mail/javax.mail-api --> - <dependency> - <groupId>javax.mail</groupId> - <artifactId>javax.mail-api</artifactId> - <version>1.5.1</version> - </dependency> - <!-- https://mvnrepository.com/artifact/com.sun.mail/javax.mail --> - <dependency> - <groupId>com.sun.mail</groupId> - <artifactId>javax.mail</artifactId> - <version>1.6.0</version> - </dependency> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.12</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.typesafe.akka</groupId> + <artifactId>akka-actor_2.11</artifactId> + <version>${learner.akka.version}</version> + </dependency> + <dependency> + <groupId>com.typesafe.akka</groupId> + <artifactId>akka-slf4j_2.11</artifactId> + <version>${learner.akka.version}</version> + </dependency> + <dependency> + <groupId>com.typesafe.akka</groupId> + <artifactId>akka-remote_2.11</artifactId> + <version>${learner.akka.version}</version> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-api</artifactId> + <version>2.8.2</version> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + <version>2.8.2</version> + </dependency> + <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --> + <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-lang3</artifactId> + <version>3.0</version> + </dependency> + <!-- Adding for Key cloak SSO server. --> + <dependency> + <groupId>org.keycloak</groupId> + <artifactId>keycloak-admin-client</artifactId> + <version>6.0.1</version> + </dependency> + <dependency> + <groupId>org.jboss.resteasy</groupId> + <artifactId>jaxrs-api</artifactId> + <version>3.0.11.Final</version> + </dependency> + <dependency> + <groupId>org.jboss.resteasy</groupId> + <artifactId>resteasy-client</artifactId> + <version>3.1.0.Final</version> + </dependency> + <!-- for Azure file storage --> + <dependency> + <groupId>com.microsoft.azure</groupId> + <artifactId>azure-storage</artifactId> + <version>5.4.0</version> + </dependency> + <!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity-tools --> + <dependency> + <groupId>org.apache.velocity</groupId> + <artifactId>velocity-tools</artifactId> + <version>2.0</version> + </dependency> + <!-- https://mvnrepository.com/artifact/javax.mail/javax.mail-api --> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>javax.mail-api</artifactId> + <version>1.5.1</version> + </dependency> + <!-- https://mvnrepository.com/artifact/com.sun.mail/javax.mail --> + <dependency> + <groupId>com.sun.mail</groupId> + <artifactId>javax.mail</artifactId> + <version>1.6.0</version> + </dependency> - <dependency> - <groupId>org.jboss.resteasy</groupId> - <artifactId>resteasy-jackson2-provider</artifactId> - <version>3.1.3.Final</version> - <exclusions> - <exclusion> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-annotations</artifactId> - </exclusion> - <exclusion> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-databind</artifactId> - </exclusion> - </exclusions> - </dependency> + <dependency> + <groupId>org.jboss.resteasy</groupId> + <artifactId>resteasy-jackson2-provider</artifactId> + <version>3.1.3.Final</version> + <exclusions> + <exclusion> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-annotations</artifactId> + </exclusion> + <exclusion> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-databind</artifactId> + </exclusion> + </exclusions> + </dependency> - <!-- https://mvnrepository.com/artifact/com.moparisthebest/junidecode --> - <dependency> - <groupId>com.moparisthebest</groupId> - <artifactId>junidecode</artifactId> - <version>0.1.1</version> - </dependency> - <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --> - <dependency> - <groupId>org.apache.poi</groupId> - <artifactId>poi-ooxml</artifactId> - <version>3.15</version> - </dependency> - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-core</artifactId> - <version>2.10.1</version> - </dependency> - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-databind</artifactId> - <version>2.10.1</version> - </dependency> - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-annotations</artifactId> - <version>2.10.1</version> - </dependency> - <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-csv --> - <dependency> - <groupId>org.apache.commons</groupId> - <artifactId>commons-csv</artifactId> - <version>1.4</version> - </dependency> + <!-- https://mvnrepository.com/artifact/com.moparisthebest/junidecode --> + <dependency> + <groupId>com.moparisthebest</groupId> + <artifactId>junidecode</artifactId> + <version>0.1.1</version> + </dependency> + <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --> + <dependency> + <groupId>org.apache.poi</groupId> + <artifactId>poi-ooxml</artifactId> + <version>3.15</version> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-core</artifactId> + <version>2.10.1</version> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-databind</artifactId> + <version>2.10.1</version> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-annotations</artifactId> + <version>2.10.1</version> + </dependency> + <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-csv --> + <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-csv</artifactId> + <version>1.4</version> + </dependency> - <dependency> - <groupId>org.jvnet.mock-javamail</groupId> - <artifactId>mock-javamail</artifactId> - <version>1.9</version> - <scope>test</scope> - </dependency> + <dependency> + <groupId>org.jvnet.mock-javamail</groupId> + <artifactId>mock-javamail</artifactId> + <version>1.9</version> + <scope>test</scope> + </dependency> - <dependency> - <groupId>com.googlecode.libphonenumber</groupId> - <artifactId>libphonenumber</artifactId> - <version>8.10.2</version> - </dependency> + <dependency> + <groupId>com.googlecode.libphonenumber</groupId> + <artifactId>libphonenumber</artifactId> + <version>8.10.2</version> + </dependency> - <dependency> - <groupId>org.apache.tika</groupId> - <artifactId>tika-core</artifactId> - <version>1.16</version> - </dependency> + <dependency> + <groupId>org.apache.tika</groupId> + <artifactId>tika-core</artifactId> + <version>1.16</version> + </dependency> - <dependency> - <groupId>com.lmax</groupId> - <artifactId>disruptor</artifactId> - <version>3.2.0</version> - </dependency> - <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient --> - <dependency> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpclient</artifactId> - <version>4.5</version> - </dependency> + <dependency> + <groupId>com.lmax</groupId> + <artifactId>disruptor</artifactId> + <version>3.2.0</version> + </dependency> + <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient --> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpclient</artifactId> + <version>4.5</version> + </dependency> - <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime --> - <dependency> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpmime</artifactId> - <version>4.5.2</version> - </dependency> - <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-easymock --> - <dependency> - <groupId>org.powermock</groupId> - <artifactId>powermock-module-junit4</artifactId> - <version>1.6.5</version> - <!--<scope>test</scope> --> - </dependency> + <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime --> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpmime</artifactId> + <version>4.5.2</version> + </dependency> + <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-easymock --> + <dependency> + <groupId>org.powermock</groupId> + <artifactId>powermock-module-junit4</artifactId> + <version>1.6.5</version> + <!--<scope>test</scope> --> + </dependency> - <dependency> - <groupId>org.powermock</groupId> - <artifactId>powermock-api-mockito</artifactId> - <version>1.6.5</version> - <!--<scope>test</scope> --> - </dependency> + <dependency> + <groupId>org.powermock</groupId> + <artifactId>powermock-api-mockito</artifactId> + <version>1.6.5</version> + <!--<scope>test</scope> --> + </dependency> - <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore --> - <dependency> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpcore</artifactId> - <version>4.4.4</version> - </dependency> - <dependency> - <groupId>com.mashape.unirest</groupId> - <artifactId>unirest-java</artifactId> - <version>1.4.9</version> - </dependency> + <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore --> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpcore</artifactId> + <version>4.4.4</version> + </dependency> + <dependency> + <groupId>com.mashape.unirest</groupId> + <artifactId>unirest-java</artifactId> + <version>1.4.9</version> + </dependency> - <dependency> - <groupId>com.google.guava</groupId> - <artifactId>guava</artifactId> - <version>18.0</version> - </dependency> - <dependency> - <groupId>org.sunbird</groupId> - <artifactId>cloud-store-sdk</artifactId> - <version>1.2.6</version> - <exclusions> - <exclusion> - <groupId>com.sun.jersey</groupId> - <artifactId>jersey-core</artifactId> - </exclusion> - <exclusion> - <groupId>com.sun.jersey</groupId> - <artifactId>jersey-server</artifactId> - </exclusion> - <exclusion> - <groupId>com.fasterxml.jackson.module</groupId> - <artifactId>jackson-module-scala_2.11</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>com.fasterxml.jackson.module</groupId> - <artifactId>jackson-module-scala_2.12</artifactId> - <version>2.13.5</version> - </dependency> - <dependency> - <groupId>org.glassfish.jersey.core</groupId> - <artifactId>jersey-common</artifactId> - <version>2.27</version> - </dependency> - <dependency> - <groupId>org.glassfish.jersey.core</groupId> - <artifactId>jersey-client</artifactId> - <version>2.27</version> - </dependency> - <dependency> - <groupId>org.glassfish.jersey.core</groupId> - <artifactId>jersey-server</artifactId> - <version>2.27</version> - </dependency> - <dependency> - <groupId>org.apache.kafka</groupId> - <artifactId>kafka-clients</artifactId> - <version>0.10.0.1</version> - </dependency> - </dependencies> + <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + <version>18.0</version> + </dependency> + <dependency> + <groupId>org.sunbird</groupId> + <artifactId>cloud-store-sdk</artifactId> + <version>1.2.6</version> + <exclusions> + <exclusion> + <groupId>com.sun.jersey</groupId> + <artifactId>jersey-core</artifactId> + </exclusion> + <exclusion> + <groupId>com.sun.jersey</groupId> + <artifactId>jersey-server</artifactId> + </exclusion> + <exclusion> + <groupId>com.fasterxml.jackson.module</groupId> + <artifactId>jackson-module-scala_2.11</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.module</groupId> + <artifactId>jackson-module-scala_2.11</artifactId> + <version>2.10.1</version> + </dependency> + <dependency> + <groupId>org.glassfish.jersey.core</groupId> + <artifactId>jersey-common</artifactId> + <version>2.27</version> + </dependency> + <dependency> + <groupId>org.glassfish.jersey.core</groupId> + <artifactId>jersey-client</artifactId> + <version>2.27</version> + </dependency> + <dependency> + <groupId>org.glassfish.jersey.core</groupId> + <artifactId>jersey-server</artifactId> + <version>2.27</version> + </dependency> + <dependency> + <groupId>org.apache.kafka</groupId> + <artifactId>kafka-clients</artifactId> + <version>0.10.0.1</version> + </dependency> + </dependencies> - <repositories> - <repository> - <id>cloud-store</id> - <url>https://oss.sonatype.org/content/repositories/orgsunbird-1021</url> - </repository> - </repositories> - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>2.20</version> - <configuration> - <includes> - <include>**/*Spec.java</include> - <include>**/*Test.java</include> - </includes> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <version>2.17</version> - </plugin> + <repositories> + <repository> + <id>cloud-store</id> + <url>https://oss.sonatype.org/content/repositories/orgsunbird-1021</url> + </repository> + </repositories> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.3.2</version> + <configuration> + <source>11</source> + <target>11</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.20</version> + <configuration> + <includes> + <include>**/*Spec.java</include> + <include>**/*Test.java</include> + </includes> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>2.17</version> + </plugin> - </plugins> - </pluginManagement> + </plugins> + </pluginManagement> - <plugins> - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.8.4</version> - <configuration> - <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile> - <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile> - </configuration> - <executions> - <execution> - <id>jacoco-initialize</id> - <goals> - <goal>prepare-agent</goal> - </goals> - </execution> - <execution> - <id>jacoco-site</id> - <phase>package</phase> - <goals> - <goal>report</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.springframework.boot</groupId> - <artifactId>spring-boot-maven-plugin</artifactId> - <version>2.7.14</version> - <configuration> - <mainClass>com.tarento.upsmf.examsAndAdmissions.ExamsAndAdmissionsApplication</mainClass> - <layout>JAR</layout> - </configuration> - <executions> - <execution> - <goals> - <goal>repackage</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> + <plugins> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.4</version> + <configuration> + <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile> + <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile> + </configuration> + <executions> + <execution> + <id>jacoco-initialize</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>jacoco-site</id> + <phase>package</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> </project> diff --git a/upsmf-entity/pom.xml b/upsmf-entity/pom.xml index 8554dcd2ed136ec9ecf60ef84df46c467937845f..4748eeb4494ce76ec09a722d4cd05dfa326ba985 100644 --- a/upsmf-entity/pom.xml +++ b/upsmf-entity/pom.xml @@ -45,7 +45,7 @@ <version>2.12.1</version> </dependency> <dependency> - <groupId>com.tarento.upsmf</groupId> + <groupId>org.upsmf</groupId> <artifactId>upsmf-es-utils</artifactId> <version>1.0-SNAPSHOT</version> <scope>compile</scope> @@ -92,6 +92,12 @@ <artifactId>modelmapper</artifactId> <version>3.0.0</version> </dependency> + <dependency> + <groupId>org.upsmf</groupId> + <artifactId>upsmf-es-utils</artifactId> + <version>1.0-SNAPSHOT</version> + <scope>compile</scope> + </dependency> </dependencies> <build> <plugins> diff --git a/upsmf-entity/src/main/resources/application.properties b/upsmf-entity/src/main/resources/application.properties index 568fefa99d5ace2b455adf08900b9a41a014ca32..75aac0339bec63b85f7218f864682b1f0ff62117 100644 --- a/upsmf-entity/src/main/resources/application.properties +++ b/upsmf-entity/src/main/resources/application.properties @@ -6,7 +6,7 @@ spring.datasource.password=postgres spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect spring.jpa.properties.hibernate.format_sql=true spring.jpa.show-sql=false -spring.jpa.properties.hibernate.type_map.your.package.MapType=your.package.MapType +#spring.jpa.properties.hibernate.type_map.your.package.MapType=your.package.MapType #Storage Service properties @@ -26,7 +26,7 @@ accesstoken.publickey.basepath=/home/radhesh/Desktop/FileStorage/keys sunbird_sso_url=https://aastrika-stage.tarento.com/auth/ sunbird_sso_realm=sunbird -#user.read.endpoint=https://aastrika-stage.tarento.com/api/user/v2/read/ +user.read.endpoint=https://aastrika-stage.tarento.com/api/user/v2/read/ #workflow service wf.service.url=http://localhost:5099/ diff --git a/upsmf-es-utils/pom.xml b/upsmf-es-utils/pom.xml index 503b40886b325cc295446a779d8528b0a1084978..d9e8f5124fb0eeaa44d0c4e4a8e9c386643cf2ed 100644 --- a/upsmf-es-utils/pom.xml +++ b/upsmf-es-utils/pom.xml @@ -2,20 +2,21 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> - <groupId>com.tarento.upsmf</groupId> + <groupId>org.upsmf</groupId> <artifactId>upsmf-es-utils</artifactId> <version>1.0-SNAPSHOT</version> <name>UPSMF ElasticSearch Utils</name> <properties> + <version.compiler.plugin>2.3.1</version.compiler.plugin> <maven.compiler.target>11</maven.compiler.target> <maven.compiler.source>11</maven.compiler.source> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <scoverage.plugin.version>1.1.1</scoverage.plugin.version> </properties> - <dependencies> - <!-- Elasticsearch Dependencies --> + <!-- added for rest client --> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> @@ -26,67 +27,76 @@ <artifactId>transport</artifactId> <version>6.3.2</version> </dependency> - - <!-- Logging Dependencies --> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> - <version>2.14.1</version> + <version>2.8.2</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> - <version>2.14.1</version> + <version>2.8.2</version> </dependency> - - <!-- Other Dependencies --> <dependency> - <groupId>com.tarento.upsmf</groupId> + <groupId>org.sunbird</groupId> <artifactId>common-util</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> - - <!-- Test Dependencies --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> + <dependency> + <groupId>org.upsmf</groupId> + <artifactId>common-util</artifactId> + <version>0.0.1-SNAPSHOT</version> + <scope>compile</scope> + </dependency> </dependencies> <build> <sourceDirectory>${basedir}/src/main/java</sourceDirectory> <testSourceDirectory>${basedir}/src/test/java</testSourceDirectory> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.8.1</version> - <configuration> - <source>11</source> - <target>11</target> - </configuration> - </plugin> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.3.2</version> + <configuration> + <source>11</source> + <target>11</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.20</version> + <configuration> + <includes> + <include>**/*Spec.java</include> + <include>**/*Test.java</include> + </includes> + </configuration> + </plugin> + </plugins> + </pluginManagement> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>3.0.0-M5</version> - <configuration> - <includes> - <include>**/*Spec.java</include> - <include>**/*Test.java</include> - </includes> - </configuration> - </plugin> + <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> - <version>0.8.7</version> + <version>0.8.4</version> + <configuration> + <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile> + <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile> + </configuration> <executions> <execution> + <id>jacoco-initialize</id> <goals> <goal>prepare-agent</goal> </goals>