Skip to content

SCMOD-12257: Correlation Id Support#18

Closed
simranjeetc wants to merge 20 commits intomasterfrom
SCMOD-12257
Closed

SCMOD-12257: Correlation Id Support#18
simranjeetc wants to merge 20 commits intomasterfrom
SCMOD-12257

Conversation

@simranjeetc
Copy link
Contributor

@simranjeetc simranjeetc commented Jan 27, 2021

@buildmachine-sou-jenkins2
Copy link
Contributor

@simranjeetc simranjeetc marked this pull request as ready for review February 3, 2021 10:22
@simranjeetc
Copy link
Contributor Author

@dermot-hardy
I have opened this PR for review. Once it is merged, I will update the jar version in the pom files for all the services which are using this library. Until then, I will leave the others as draft only.

@dermot-hardy dermot-hardy changed the title Scmod 12257 SCMOD-12257: Correlation Id Support Feb 9, 2021
Copy link
Member

@dermot-hardy dermot-hardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The duplicate-finder-maven-plugin is reporting lots of warnings:

2021-02-03T07:06:12.933663288Z [INFO] --- duplicate-finder-maven-plugin:1.3.0:check (deepcheck-dependencies) @ caf-correlation-id ---
2021-02-03T07:06:12.935268289Z [INFO] Checking compile classpath
2021-02-03T07:06:13.731032292Z [INFO] Checking runtime classpath
2021-02-03T07:06:13.735996134Z [INFO] Checking test classpath
...
2021-02-03T07:06:14.695631150Z [WARNING] Found duplicate and different classes in [org.apache.tomcat.embed:tomcat-embed-el:9.0.33, org.glassfish:jakarta.el:3.0.3]:
2021-02-03T07:06:14.695639853Z [WARNING]   javax.el.ArrayELResolver
2021-02-03T07:06:14.695664629Z [WARNING]   javax.el.BeanELResolver
2021-02-03T07:06:14.696733828Z [WARNING]   javax.el.BeanNameELResolver
2021-02-03T07:06:14.696758507Z [WARNING]   javax.el.BeanNameResolver
2021-02-03T07:06:14.696767390Z [WARNING]   javax.el.CompositeELResolver
...
2021-02-03T07:06:14.708697867Z [WARNING]   javax/servlet/http/LocalStrings.properties

Deployment is disabled for it and the last project is responsible for deploying all of the project's artifacts.
Copy link
Member

@dermot-hardy dermot-hardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at these changes now I think it makes more sense to have them to a separate repository.
I've created https://github.com/CAFapi/caf-correlation for this. We can check them in here for now if you want so long as we move them before the next release. Moving them will involve resetting the version number back from 1.4.0-SNAPSHOT to 1.0.0-SNAPSHOT so it probably makes more sense to do it sooner rather than later.

As far as I can see the main thing missing here now is documentation. These modules require a write-up to explain what they are and how they should be used.

@simranjeetc
Copy link
Contributor Author

Looking at these changes now I think it makes more sense to have them to a separate repository.
I've created https://github.com/CAFapi/caf-correlation for this. We can check them in here for now if you want so long as we move them before the next release. Moving them will involve resetting the version number back from 1.4.0-SNAPSHOT to 1.0.0-SNAPSHOT so it probably makes more sense to do it sooner rather than later.

As far as I can see the main thing missing here now is documentation. These modules require a write-up to explain what they are and how they should be used.

/home/simran/.jdks/adopt-openjdk-1.8.0_275/bin/java -Dmaven.multiModuleProjectDirectory=/media/D/codebase/CAFapi/caf-correlation -Dmaven.home=/opt/apache-maven-3.6.2 -Dclassworlds.conf=/opt/apache-maven-3.6.2/bin/m2.conf -Dmaven.ext.class.path=/media/D/softwares/jetbrains-tools-installation/apps/IDEA-U/ch-0/202.8194.7/plugins/maven/lib/maven-event-listener.jar -javaagent:/media/D/softwares/jetbrains-tools-installation/apps/IDEA-U/ch-0/202.8194.7/lib/idea_rt.jar=44829:/media/D/softwares/jetbrains-tools-installation/apps/IDEA-U/ch-0/202.8194.7/bin -Dfile.encoding=UTF-8 -classpath /opt/apache-maven-3.6.2/boot/plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version=2020.2.4 -s /opt/apache-maven-3.6.2/conf/settings.xml org.basepom.maven:duplicate-finder-maven-plugin:1.5.0:check
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 7 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 7 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] caf-correlation [pom]
[INFO] caf-correlation-constants [jar]
[INFO] caf-correlation-jaxrs [jar]
[INFO] caf-correlation-jservlet [jar]
[INFO] caf-correlation-spring [jar]
[INFO] caf-correlation-spring-tests [jar]
[INFO] caf-correlation-dropwizard [jar]
[INFO]
[INFO] -----------< com.github.cafapi.correlation:caf-correlation >------------
[INFO] Building caf-correlation 1.0.0-SNAPSHOT [1/7]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- duplicate-finder-maven-plugin:1.5.0:check (default-cli) @ caf-correlation ---
[INFO] Ignoring POM project!
[INFO]
[INFO] ------< com.github.cafapi.correlation:caf-correlation-constants >-------
[INFO] Building caf-correlation-constants 1.0.0-SNAPSHOT [2/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- duplicate-finder-maven-plugin:1.5.0:check (default-cli) @ caf-correlation-constants ---
[INFO] Checking compile classpath
[INFO] Checking runtime classpath
[INFO] Checking test classpath
[INFO]
[INFO] --------< com.github.cafapi.correlation:caf-correlation-jaxrs >---------
[INFO] Building caf-correlation-jaxrs 1.0.0-SNAPSHOT [3/7]
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from company-central: https://svsartifactory.swinfra.net/artifactory/company-central/com/github/cafapi/correlation/caf-correlation-constants/1.0.0-SNAPSHOT/maven-metadata.xml
[INFO]
[INFO] --- duplicate-finder-maven-plugin:1.5.0:check (default-cli) @ caf-correlation-jaxrs ---
[INFO] Checking compile classpath
[INFO] Checking runtime classpath
[INFO] Checking test classpath
[INFO]
[INFO] -------< com.github.cafapi.correlation:caf-correlation-jservlet >-------
[INFO] Building caf-correlation-jservlet 1.0.0-SNAPSHOT [4/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- duplicate-finder-maven-plugin:1.5.0:check (default-cli) @ caf-correlation-jservlet ---
[INFO] Checking compile classpath
[INFO] Checking runtime classpath
[INFO] Checking test classpath
[INFO]
[INFO] --------< com.github.cafapi.correlation:caf-correlation-spring >--------
[INFO] Building caf-correlation-spring 1.0.0-SNAPSHOT [5/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- duplicate-finder-maven-plugin:1.5.0:check (default-cli) @ caf-correlation-spring ---
[INFO] Checking compile classpath
[INFO] Checking runtime classpath
[INFO] Checking test classpath
[INFO]
[INFO] -----< com.github.cafapi.correlation:caf-correlation-spring-tests >-----
[INFO] Building caf-correlation-spring-tests 1.0.0-SNAPSHOT [6/7]
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from company-central: https://svsartifactory.swinfra.net/artifactory/company-central/com/github/cafapi/correlation/caf-correlation-jaxrs/1.0.0-SNAPSHOT/maven-metadata.xml
Downloading from company-central: https://svsartifactory.swinfra.net/artifactory/company-central/com/github/cafapi/correlation/caf-correlation-spring/1.0.0-SNAPSHOT/maven-metadata.xml
[INFO]
[INFO] --- duplicate-finder-maven-plugin:1.5.0:check (default-cli) @ caf-correlation-spring-tests ---
[INFO] Checking compile classpath
[INFO] Checking runtime classpath
[INFO] Checking test classpath
[INFO]
[INFO] ------< com.github.cafapi.correlation:caf-correlation-dropwizard >------
[INFO] Building caf-correlation-dropwizard 1.0.0-SNAPSHOT [7/7]
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from company-central: https://svsartifactory.swinfra.net/artifactory/company-central/com/github/cafapi/correlation/caf-correlation-jservlet/1.0.0-SNAPSHOT/maven-metadata.xml
[INFO]
[INFO] --- duplicate-finder-maven-plugin:1.5.0:check (default-cli) @ caf-correlation-dropwizard ---
[INFO] Checking compile classpath
[INFO] Checking runtime classpath
[INFO] Checking test classpath
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for caf-correlation 1.0.0-SNAPSHOT:
[INFO]
[INFO] caf-correlation .................................... SUCCESS [ 0.401 s]
[INFO] caf-correlation-constants .......................... SUCCESS [ 0.207 s]
[INFO] caf-correlation-jaxrs .............................. SUCCESS [ 8.673 s]
[INFO] caf-correlation-jservlet ........................... SUCCESS [ 0.060 s]
[INFO] caf-correlation-spring ............................. SUCCESS [ 0.420 s]
[INFO] caf-correlation-spring-tests ....................... SUCCESS [ 13.949 s]
[INFO] caf-correlation-dropwizard ......................... SUCCESS [ 8.457 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.598 s
[INFO] Finished at: 2021-02-11T10:23:04+05:30
[INFO] ------------------------------------------------------------------------

Not getting duplicates with latest changes.

@simranjeetc
Copy link
Contributor Author

Closing this PR as we moved this code to a new repository CAFapi/caf-correlation#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants