Closed ilg-ul closed 3 years ago
Yes, to reuse a lot of EPL2 related content from its official source
If I add this reference, should I remove some local content?
Yes, 1) license files and
2) license info from feature.properties
licenseURL
license
Great, I'll do it.
Thank you!
I identified the project:
https://git.eclipse.org/c/cbi/org.eclipse.license.git/
However it has no README, nor any other documentation page, so using it is totally obscure.
I added the two attributes to all <feature>
definitions:
<feature
id="org.eclipse.embedcdt"
label="%featureName"
version="6.0.0.qualifier"
provider-name="%providerName"
plugin="org.eclipse.embedcdt.core"
license-feature="org.eclipse.license"
license-feature-version="0.0.0">
</feature>
I removed the licenseURL
and license
definitions from feature.properties
licenseURL=license.html
license=\
Eclipse Foundation Software User Agreement\n\
...
And I also removed the license.html
file.
The result is that the build fails:
ilg@wks eclipse-plugins.git % mvn clear verify
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.eclipse.embedcdt.plugins:org.eclipse.embedcdt.core:6.0.0-SNAPSHOT @ /Users/ilg/My Files/WKS Projects/eclipse-embed-cdt.github/eclipse-plugins.git/plugins/org.eclipse.embedcdt.core/.polyglot..META-INF_MANIFEST.MF
[INFO] Fetching p2.index from https://download.eclipse.org/releases/2020-09/202009161000/ (142B)
[INFO] Adding repository https://download.eclipse.org/releases/2020-09/202009161000
[INFO] Resolving dependencies of MavenProject: org.eclipse.embedcdt.plugins:org.eclipse.embedcdt.core:6.0.0-SNAPSHOT @ /Users/ilg/My Files/WKS Projects/eclipse-embed-cdt.github/eclipse-plugins.git/plugins/org.eclipse.embedcdt.core/.polyglot..META-INF_MANIFEST.MF
[INFO] Resolving class path of MavenProject: org.eclipse.embedcdt.plugins:org.eclipse.embedcdt.core:6.0.0-SNAPSHOT @ /Users/ilg/My Files/WKS Projects/eclipse-embed-cdt.github/eclipse-plugins.git/plugins/org.eclipse.embedcdt.core/.polyglot..META-INF_MANIFEST.MF
[INFO] Computing target platform for MavenProject: org.eclipse.embedcdt.features:org.eclipse.embedcdt:6.0.0-SNAPSHOT @ /Users/ilg/My Files/WKS Projects/eclipse-embed-cdt.github/eclipse-plugins.git/features/org.eclipse.embedcdt-feature/.polyglot.feature.xml
[INFO] Resolving dependencies of MavenProject: org.eclipse.embedcdt.features:org.eclipse.embedcdt:6.0.0-SNAPSHOT @ /Users/ilg/My Files/WKS Projects/eclipse-embed-cdt.github/eclipse-plugins.git/features/org.eclipse.embedcdt-feature/.polyglot.feature.xml
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: org.eclipse.embedcdt.feature.group 6.0.0.qualifier
[ERROR] Missing requirement: org.eclipse.embedcdt.feature.group 6.0.0.qualifier requires 'org.eclipse.equinox.p2.iu; org.eclipse.license.feature.group 0.0.0' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: org.eclipse.embedcdt.features:org.eclipse.embedcdt:6.0.0-SNAPSHOT @ /Users/ilg/My Files/WKS Projects/eclipse-embed-cdt.github/eclipse-plugins.git/features/org.eclipse.embedcdt-feature/.polyglot.feature.xml: See log for details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
ilg@wks eclipse-plugins.git %
I saw CDT uses a cdt.target
file with some definitions that seem related to this issue, but I don't use such a file, and I don't know how to fix it.
@ruspl-afed, any suggestions?
Have a look at https://wiki.eclipse.org/CBI#CBI_license_bundle it shows you the repo you need to add.
Thank you, Jonah, adding the repo fixed the problem:
<repository>
<id>license-feature</id>
<url>http://download.eclipse.org/cbi/updates/license/</url>
<layout>p2</layout>
</repository>
I also removed the license.html
reference from build.properties
.
I also removed the <license>
element from feature.xml
:
<license url="%licenseURL">
%license
</license>
The documentation does not mention if it is required or not, but since I removed the actual definitions from feature.properties
, I though they are no longer needed.
https://ci.eclipse.org/embed-cdt/job/build-plug-ins/job/develop-v6/11/
Fixed on 2020-11-08.
The CDT features refer to
org.eclipse.license
, something like this:@jonahgraham, @ruspl-afed, should Embed CDT do the same?