New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support modules with non-empty default classifier #24735
Conversation
bc5637e
to
1d226f7
Compare
Failing Jobs - Building 1d226f7
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 #- Failing: integration-tests/grpc-hibernate integration-tests/kafka-ssl
📦 integration-tests/grpc-hibernate✖
📦 integration-tests/kafka-ssl✖
|
I'll try to find some time for this tomorrow. |
@aloubyansky this seems to have an unexpected (?) side effect: final var resource = Thread.currentThread().getContextClassLoader().getResource(resourceName); This is only the case if the resource is located in an upstream module (e.g. resource in module A, test is run in B and B depends on A). WDYT? |
So it is finding the resource in the JAR instead of the directory? Do you think you can adapt one of your reproducers to show the difference between two versions? |
Exactly.
I've failed to do so for now. There must be more to it... |
@aloubyansky I tried a few more things whithout any luck. So I changed the code in question to create a new Turns out that when no test was run before via How does the above relate to |
FYI @stuartwdouglas ⬆️ |
Thanks @famod for all the info. Is the JAR the class is loaded from in the module's target dir or the local Maven repo? |
It's (simplified)
is misleading here, I should have said that Eclipse is not assembling a jar.
Usually yes, but at some point it wasn't with the latest changes. My main concern here is that IDE should not be influenced by the different/limited/absent workspace resolution of the command line execution.
In general yes, but nothing specific in this case.
There are two dependencies on A from B: A "regular" compile one and a test-jar one. But both are not in a profile. |
Btw, removing |
I was also trying to wrap my head around how this PR is causing that URI change and I was suspecting the following in my root pom.xml to be related (in pluginManagement): <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${jar-plugin.version}</version>
<configuration>
<excludes>
<exclude>application-dev.yaml</exclude>
</excludes>
</configuration>
</plugin> But again, adding that to the small sample project didn't reproduce it either. |
Ok, so this is the root cause of the URI change for my setup: I don't see how |
PS: What I don't understand at this point (might just be too late), is why the URI is unchanged in Eclipse (compared to 2.8.0), given that it's also mising that MAIN "ArtifactSources". |
Oh, ok, thanks @famod |
#25086 should fix it |
Fix #24697