-
Notifications
You must be signed in to change notification settings - Fork 33
Move to Maven/Tycho for projects and build infrastructure #500
Conversation
Here are a few detailed notes:
<location includeDependencyDepth="none" includeDependencyScopes="compile" includeSource="true" missingManifest="generate" type="Maven">
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-testlib</artifactId>
<version>30.1-jre</version>
<type>jar</type>
</dependency>
</dependencies>
<instructions><![CDATA[
Bundle-Name: Bundle derived from maven artifact ${mvnGroupId}:${mvnArtifactId}:${mvnVersion}
version: ${version_cleanup;${mvnVersion}}
Bundle-SymbolicName: ${mvnGroupId}.${mvnArtifactId}
Bundle-Version: ${version}
Import-Package: *;resolution:=optional
Export-Package: *;version="${version}";-noimport:=true
DynamicImport-Package: *
]]></instructions>
</location> because
<includes
id="org.eclipse.xtext.xbase.lib.feature"
version="0.0.0"/>
<plugin
id="org.eclipse.xtend.lib"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.xtend.lib.macro"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
|
@LorenzoBettini there seems to be something broken with the features. fails due missing features looking at |
I guess so: I introduced a new xbase.lib.feature that probably is also the name of the real xbase.lib.feature. (previously, it was simply called xbase.lib, which would have conflicted with the xbase.lib project in the workspace). If you want, I can rename that feature here in xtext-lib, also because it's meant to be temporary. |
the feature with that name also seems to be here |
I guess so, but as I said, I can also do without features as it was before in this project (and just include bundles in the p2 repository), what do you think? |
i dont know who downstream uses the features. is this not possible with tycho? cc @szarnekow |
@cdietrich I'll give it a try! |
The project name is not important, but the artifactId and the feature id must be the same:
And if I change the artifactId according to the feature name two artifacts with the same name are detected:
What I can do is try avoiding the features completely and see if the downstream jobs fail. It's Maven that prohibits that, I'd say. |
@laeubi do you know anything to bypass this? |
Having two artifacts with the same Group/Artifact ID is not allowed (and most likely will sooner or later be a source of confusion), so often the convention is to name features Nerveless you can disable the check for the ID by explicitly configure the |
@cdietrich Having a look again at this message of yours, you refer to but that's a wrong job... this is the right one https://ci.eclipse.org/xtext/job/xtext-lib/job/lb_499_maven_tycho/ I don't understand what went wrong... maybe I pushed a wrong branch (I'll remove it). Could you please modify the xtext-eclipse job so that it uses the right Jenkins job, where I removed the features from the p2 repository? Sorry for the confusion. |
@LorenzoBettini the problem is you used a different branch name foreach repo |
I've just removed that branch from this GitHub repository. |
i will merge your changes to my branch |
the problem is: |
OK, so let's use your branch and I'll update the PR |
No, the PR cannot be modified in that respect... I'll close this and create another one, OK? |
thats ok |
Superseded by #501 |
See #499
Please see eclipse/xtext-core#2054 for some details for testing this manually (of course, the git repo is this one).
More details on the relevant changes I made and what's left to do will follow shortly.