open-timetrack / api

Apache License 2.0
0 stars 0 forks source link

dependency tree with to many dependencies #17

Open r-vanooyen opened 2 years ago

r-vanooyen commented 2 years ago

Describe the bug When using the packages, the dependency tree shows, that the dependencies of both are in both packages.

[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ springboot ---
[INFO] open.timetrack.backend:springboot:jar:1.0-SNAPSHOT
[INFO] \- open-timetrack:api:jar:springCloud:1.0.0:compile
[INFO]    +- io.swagger:swagger-annotations:jar:1.5.24:compile
[INFO]    +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO]    +- io.github.openfeign:feign-core:jar:10.11:compile
[INFO]    +- io.github.openfeign:feign-jackson:jar:10.11:compile
[INFO]    +- io.github.openfeign:feign-slf4j:jar:10.11:compile
[INFO]    |  \- org.slf4j:slf4j-api:jar:1.7.13:compile
[INFO]    +- io.github.openfeign.form:feign-form:jar:3.8.0:compile
[INFO]    +- io.github.openfeign:feign-okhttp:jar:10.11:compile
[INFO]    |  \- com.squareup.okhttp3:okhttp:jar:4.6.0:compile
[INFO]    |     +- com.squareup.okio:okio:jar:2.6.0:compile
[INFO]    |     |  \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.3.70:compile
[INFO]    |     \- org.jetbrains.kotlin:kotlin-stdlib:jar:1.3.71:compile
[INFO]    |        \- org.jetbrains:annotations:jar:13.0:compile
[INFO]    +- com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile
[INFO]    +- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.3:compile
[INFO]    +- com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile
[INFO]    +- org.openapitools:jackson-databind-nullable:jar:0.2.2:compile
[INFO]    +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.1:compile
[INFO]    +- com.github.scribejava:scribejava-core:jar:8.0.0:compile
[INFO]    +- org.springdoc:springdoc-openapi-ui:jar:1.6.4:compile
[INFO]    |  +- org.springdoc:springdoc-openapi-webmvc-core:jar:1.6.4:compile
[INFO]    |  |  +- org.springdoc:springdoc-openapi-common:jar:1.6.4:compile
[INFO]    |  |  |  \- io.swagger.core.v3:swagger-core:jar:2.1.12:compile
[INFO]    |  |  |     +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO]    |  |  |     +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.12.1:compile
[INFO]    |  |  |     +- io.swagger.core.v3:swagger-annotations:jar:2.1.12:compile
[INFO]    |  |  |     \- io.swagger.core.v3:swagger-models:jar:2.1.12:compile
[INFO]    |  |  \- org.springframework:spring-webmvc:jar:5.3.14:compile
[INFO]    |  |     +- org.springframework:spring-aop:jar:5.3.14:compile
[INFO]    |  |     +- org.springframework:spring-context:jar:5.3.14:compile
[INFO]    |  |     \- org.springframework:spring-expression:jar:5.3.14:compile
[INFO]    |  +- org.webjars:swagger-ui:jar:4.1.3:compile
[INFO]    |  +- org.webjars:webjars-locator-core:jar:0.45:compile
[INFO]    |  \- io.github.classgraph:classgraph:jar:4.8.138:compile
[INFO]    +- org.springframework.cloud:spring-cloud-starter-openfeign:jar:3.1.0:compile
[INFO]    |  +- org.springframework.cloud:spring-cloud-starter:jar:3.1.0:compile
[INFO]    |  |  +- org.springframework.cloud:spring-cloud-context:jar:3.1.0:compile
[INFO]    |  |  \- org.springframework.security:spring-security-rsa:jar:1.0.10.RELEASE:compile
[INFO]    |  |     \- org.bouncycastle:bcpkix-jdk15on:jar:1.68:compile
[INFO]    |  |        \- org.bouncycastle:bcprov-jdk15on:jar:1.68:compile
[INFO]    |  +- org.springframework.cloud:spring-cloud-openfeign-core:jar:3.1.0:compile
[INFO]    |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:2.6.1:compile
[INFO]    |  |  +- org.springframework.boot:spring-boot-starter-aop:jar:2.6.1:compile
[INFO]    |  |  |  \- org.aspectj:aspectjweaver:jar:1.9.7:compile
[INFO]    |  |  \- io.github.openfeign.form:feign-form-spring:jar:3.8.0:compile
[INFO]    |  |     \- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO]    |  |        \- commons-io:commons-io:jar:2.2:compile
[INFO]    |  +- org.springframework:spring-web:jar:5.3.13:compile
[INFO]    |  \- org.springframework.cloud:spring-cloud-commons:jar:3.1.0:compile
[INFO]    |     \- org.springframework.security:spring-security-crypto:jar:5.6.0:compile
[INFO]    +- org.springframework.cloud:spring-cloud-starter-oauth2:jar:2.2.5.RELEASE:compile
[INFO]    |  +- org.springframework.cloud:spring-cloud-starter-security:jar:2.2.5.RELEASE:compile
[INFO]    |  |  +- org.springframework.boot:spring-boot-starter-actuator:jar:2.3.10.RELEASE:compile
[INFO]    |  |  |  +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.3.10.RELEASE:compile
[INFO]    |  |  |  |  \- org.springframework.boot:spring-boot-actuator:jar:2.3.10.RELEASE:compile
[INFO]    |  |  |  \- io.micrometer:micrometer-core:jar:1.5.13:compile
[INFO]    |  |  |     +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO]    |  |  |     \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO]    |  |  \- org.springframework.cloud:spring-cloud-security:jar:2.2.5.RELEASE:compile
[INFO]    |  |     \- org.springframework.boot:spring-boot-starter-security:jar:2.3.10.RELEASE:compile
[INFO]    |  +- org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:jar:2.1.2.RELEASE:compile
[INFO]    |  |  +- com.sun.xml.bind:jaxb-core:jar:2.3.0.1:compile
[INFO]    |  |  +- com.sun.xml.bind:jaxb-impl:jar:2.3.0.1:compile
[INFO]    |  |  +- org.springframework.boot:spring-boot:jar:2.1.2.RELEASE:compile
[INFO]    |  |  +- org.springframework.security.oauth:spring-security-oauth2:jar:2.3.4.RELEASE:compile
[INFO]    |  |  |  +- org.springframework.security:spring-security-core:jar:3.2.10.RELEASE:compile
[INFO]    |  |  |  |  \- aopalliance:aopalliance:jar:1.0:compile
[INFO]    |  |  |  +- org.springframework.security:spring-security-config:jar:3.2.10.RELEASE:compile
[INFO]    |  |  |  +- org.springframework.security:spring-security-web:jar:3.2.10.RELEASE:compile
[INFO]    |  |  |  +- commons-codec:commons-codec:jar:1.9:compile
[INFO]    |  |  |  \- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO]    |  |  |     \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO]    |  |  \- org.springframework.security:spring-security-jwt:jar:1.0.9.RELEASE:compile
[INFO]    |  +- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO]    |  +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO]    |  \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.4:compile
[INFO]    |     +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO]    |     +- org.glassfish.jaxb:txw2:jar:2.3.4:compile
[INFO]    |     +- com.sun.istack:istack-commons-runtime:jar:3.0.12:compile
[INFO]    |     \- com.sun.activation:jakarta.activation:jar:1.2.2:runtime
[INFO]    +- org.springframework.boot:spring-boot-starter-validation:jar:2.6.2:compile
[INFO]    |  +- org.springframework.boot:spring-boot-starter:jar:2.6.2:compile
[INFO]    |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.6.2:compile
[INFO]    |  |  |  +- ch.qos.logback:logback-classic:jar:1.2.9:compile
[INFO]    |  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.9:compile
[INFO]    |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.0:compile
[INFO]    |  |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.17.0:compile
[INFO]    |  |  |  \- org.slf4j:jul-to-slf4j:jar:1.7.32:compile
[INFO]    |  |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO]    |  |  \- org.yaml:snakeyaml:jar:1.29:compile
[INFO]    |  +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.56:compile
[INFO]    |  \- org.hibernate.validator:hibernate-validator:jar:6.2.0.Final:compile
[INFO]    |     +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO]    |     +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
[INFO]    |     \- com.fasterxml:classmate:jar:1.5.1:compile
[INFO]    \- org.springframework.data:spring-data-commons:jar:2.6.0:compile
[INFO]       +- org.springframework:spring-core:jar:5.3.13:compile
[INFO]       |  \- org.springframework:spring-jcl:jar:5.3.13:compile
[INFO]       \- org.springframework:spring-beans:jar:5.3.13:compile

To Reproduce Steps to reproduce the behavior:

  1. create project
  2. add dependency to api classifier spring-cloud
  3. mvn dependency:tree

Expected behavior I want no dependencies in the packages, only the classes. The implementing services should handle the dependencies

information:

r-vanooyen commented 2 years ago

maybe the current way "creating libs which includes ready to go classes for clients and servers" is not the best idea. What happens, if i want to try different client and server libraries. Then this repo (and specialy the pom) will increase in size and may not be maintainable any more.

based story #3