-
Notifications
You must be signed in to change notification settings - Fork 122
PDE - MavenDependencies with "test" scope fails when declared in the target file since 2025-03 #1976
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
Comments
If you open the target file you should see an more detailed error. In any case we have a test-suite for maven targets here: so the best is to add your example there (and maybe make it more minimal) so we can isolate/fix the problem and it do not occur again. |
We have also seen these errors in the Epsilon target platform after updating to 2025-03. Removing the The following "Resolving dependencies failed" error appears in the error log after reloading the TP:
which is strange, because I have reduced our target platform to the following, which also suffers from the issue: <!-- generated with https://github.com/eclipse-cbi/targetplatform-dsl -->
<target name="Epsilon Target Platform" sequenceNumber="1747037548">
<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>4.1.2</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.1.2</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> That TP was generated with the TP dsl:
I can create a PR to the test file you mentioned. Thanks, |
Yes please do so sadly currently m2e suffers from the Eclipse Infor issues, so maybe the PR is failing but we can later integrate it. |
Added in #1988 |
I use a maven block with this scope in my target file (see below), and since Eclipse 2025-03, the target fails to load:
includeDependencyScopes="compile,test"
If I remove the "test" scope, the target is loaded.
Is there a problem with maven test scope ?
Here is the message with "test" :
And the message without test :
The text was updated successfully, but these errors were encountered: