Questions tagged [dependency-exclusion]

6 questions
1
vote
1 answer

How maven dependency exclusion works for this scenarios

I am having a hard time understanding maven dependency management and how dependency exclusion works. What I know is that when some object of class A send messages (invokes method of) to another object of another class B, then class A is coupled to…
MABC
  • 576
  • 2
  • 11
  • 29
1
vote
1 answer

Maven dependency exclusion in shaded jar

So, I have a multi-module project that I create a shaded jar for to add to non-maven projects as well as to support other maven projects. We have some of our own libraries as dependencies. However, bundling them in the shaded jar is causing issues…
Stephen
  • 751
  • 1
  • 5
  • 6
0
votes
0 answers

How to determine size of smaller objects to be removed?

How could I determine the size of the smaller objects to be removed from my image, I know by guessing this could work, for example to remove objects smaller than certain value, but is there more objective method? I tried by guessing, but I know that…
0
votes
1 answer

How to prevent usage of certain classes in new code in Maven project?

There is a class abc.something.MyComponent that is used by some legacy code, but we want to avoid using it in newly created code. I'm thinking about something like maven-enforcer-plugin with additional option to create a list of "allowed…
diziaq
  • 6,881
  • 16
  • 54
  • 96
0
votes
2 answers

Replace dependency org.apache.httpcomponents:httpclient in maven-pmd-plugin and maven-checkstyle-plugin

I do use maven-pmd-plugin:3.15.0 and the maven-checkstyle-plugin:3.1.2. Both do import transitively on an old version of the org.apache.httpcomponents:httpclient:4.0.2. How can I configure each plugin to use the newest version of the httpclient…
0
votes
2 answers

How can I exclude a dependency transitively?

I have all following dependency:tree. ... [INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.5.RELEASE:test [INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.5.RELEASE:test [INFO] | +-…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184