-
Notifications
You must be signed in to change notification settings - Fork 125
Add test for TP issue with maven test scope in 2025-03 #1988
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
base: main
Are you sure you want to change the base?
Add test for TP issue with maven test scope in 2025-03 #1988
Conversation
|
The problem is that somewhere in the chain this dependency is referenced: https://mvnrepository.com/artifact/stax/stax-ri and it is actually not on maven-central. I'm not completely sure if it is maybe "as expected" that this fails or if we should handle it more gracefully... One thing that I planned was to not fail the complete resolution but still show it as an error in the tree so people can get aware of it but that requires some more work. |
|
What is very strange is that when removing the The missing library error changes when bumping the version of the dependency: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde?>
<!-- generated with https://github.com/eclipse-cbi/targetplatform-dsl -->
<target name="Epsilon Target Platform" sequenceNumber="1747210159">
<locations>
<location includeDependencyDepth="infinite" includeDependencyScopes="compile,test,runtime" includeSource="true" missingManifest="generate" type="Maven" label="MavenDependencies">
<dependencies>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.4.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.4.1</version>
<type>jar</type>
</dependency>
</dependencies>
</location>
</locations>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
</target>Now it's |
It seems test scope is pulling in some garbage. As previously we have missed some items these now start creating problems. May I ask why you need test scoped dependencies from third party lib here? It might be better to explicitly include whats missing instead of pulling in the whole whack of stuff. |
|
I've just checked that our tests (both from CLI and from Eclipse) seem to run fine without the Honestly, I do not know in which contexts the |
Related to #1976, this PR adds a test that fails when using the
testscope when loading a Maven dependency from a target platform.I was not able to build and test the m2e-core repository locally, I just copied the structure of the other test methods in the suite.