Skip to content

transitive dependencies updated from provided to compile #482

Description

@xjusko

i have a pom with something like:

	<dependency>
		<groupId>org.hibernate</groupId>
		<artifactId>hibernate-search</artifactId>
		<version>4.2.0.Final</version>
	</dependency>

	<dependency>
		<groupId>org.hibernate</groupId>
		<artifactId>hibernate-core</artifactId>
		<scope>provided</scope>
	</dependency>

hibernate-search internally dependes on hibernate-core (scope compile). But in don't want to get hbernate-core in my deployment, therefore it's forced to provided.

But:
File[] testLibs = Maven.configureResolver()
.workOffline()
.loadPomFromClassLoaderResource("transitivetest-pom.xml")
.importRuntimeDependencies()
.resolve()
.withTransitivity()
.asFile();

still contains hibernate-core.jar

Activity

  1. petrberan commented on Mar 4, 2026

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions