Christoph Läubrich created MNG-7620: ---------------------------------------
Summary: Rework how "exportedArtifacts" works Key: MNG-7620 URL: https://issues.apache.org/jira/browse/MNG-7620 Project: Maven Issue Type: Improvement Reporter: Christoph Läubrich Recently there was a discussion about "exportedArtifacts" and how the work here are the relevant code path: https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java#L302-L328 https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java#L83-L87 First the documentation is a bit misleading, as it says {code:java} Patterns of artifacts provided by maven core and exported via maven api realm {code} from some experiments, it seems that any core or project extension can also define "exported" artifacts. Second is, that this simply adds the URL of an exported artifact and thus always the same *jar* is used to load the class, but still different classrealms can load the class. What came into my mind is that it actually should have an own realm where such exported artifacts are loaded and this realm is then imported instead of the URL. -- This message was sent by Atlassian Jira (v8.20.10#820010)