PDE works slightly different when resolving targets than Tycho (here: Tycho searches 'everywhere' to resolve dependencies, PDE only searches other 'InstallableUnit' locations).

Can you explain why you try to resolve the svnkit from maven rather than from the subclipse update-site (I would assume it is included there if the feature require it?)

Am 19.05.21 um 14:17 schrieb Andreas Sewe:
Hi,

I want to use a Maven Artifact in my target platform, as described here
[1]. Unfortunately, this doesn't work for me in m2e PDE 1.17.2; when I
resolve the target platform, I get the following error:

Problems occurred while resolving the target contents
        Cannot complete the install because one or more required items could 
not be found.
                Missing requirement: SVNKit Client Adapter 1.8.12.3 
(org.tigris.subversion.clientadapter.svnkit.feature.feature.group 1.8.12.3) 
requires 'org.eclipse.equinox.p2.iu; org.tmatesoft.svnkit [1.8.0,2.0.0)' but it 
could not be found
                Software being installed: SVNKit Client Adapter 1.8.12.3 
(org.tigris.subversion.clientadapter.svnkit.feature.feature.group 1.8.12.3)

My Tycho-based build works, however (using Tycho 2.3.0).

The .target file itself is rather simple, using the defaults everywhere
except for the Bundle-SymbolicName:

<target name="Test" sequenceNumber="2">
        <locations>
                <location includeAllPlatforms="false" includeConfigurePhase="true" 
includeMode="planner" includeSource="true" type="InstallableUnit">
                        <!-- 2021-03 release build -->
                        <repository 
location="https://download.eclipse.org/releases/2021-03/202103171000/"/>
                        <unit id="org.eclipse.sdk.feature.group" 
version="0.0.0"/>
                </location>
                <location includeAllPlatforms="false" includeConfigurePhase="true" 
includeMode="planner" includeSource="true" type="InstallableUnit">
                        <repository 
location="https://subclipse.github.io/updates/subclipse/4.3.3/"/>
                        <unit id="org.tigris.subversion.subclipse.feature.group" 
version="0.0.0"/>
                        <unit 
id="org.tigris.subversion.clientadapter.svnkit.feature.feature.group" 
version="0.0.0"/>
                </location>
                <location missingManifest="generate" type="Maven">
                        <groupId>org.tmatesoft.svnkit</groupId>
                        <artifactId>svnkit</artifactId>
                        <version>1.10.3</version>
                        <type>jar</type>
                        <instructions><![CDATA[Bundle-Name:           Bundle 
derived from maven artifact ${mvnGroupId}:${mvnArtifactId}:${mvnVersion}
version:               ${version_cleanup;${mvnVersion}}
Bundle-SymbolicName:   ${mvnGroupId}
Bundle-Version:        ${version}
Import-Package:        *;resolution:=optional
Export-Package:        *;version="${version}";-noimport:=true
DynamicImport-Package: *]]></instructions>
                </location>
        </locations>
        <targetJRE 
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
</target>

Can anyone spot what I am doing wrong?

Best wishes,

Andreas Sewe

[1]
<https://läubisoft.gmbh/en/articles/using-maven-artifacts-in-pde-rcp-and-tycho-builds/>


_______________________________________________
m2e-users mailing list
m2e-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/m2e-users

Reply via email to