Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] source feature not resolved reliably

Hi,

I do have a build that creates features and source features. Both are
packed in a p2 site. Now my build sometimes works and sometimes fails
due to a dependency resolution error:

[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.eclipse.ease.releng.p2
raw:0.8.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.8.0-SNAPSHOT
[ERROR]   Missing requirement:
org.eclipse.ease.feature.source.feature.group 0.8.0.I202003021130
requires 'org.eclipse.equinox.p2.iu;
org.eclipse.ease.feature.feature.group
[0.8.0.I202003021130,0.8.0.I202003021130]' but it could not be found
[ERROR]   Cannot satisfy dependency: org.eclipse.ease.releng.p2
raw:0.8.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.8.0-SNAPSHOT depends
on: org.eclipse.equinox.p2.iu;
org.eclipse.ease.feature.source.feature.group [0.8.0,0.8.1)
[ERROR]
[ERROR] See
http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for
help.
[ERROR] Cannot resolve dependencies of MavenProject:
org.eclipse.ease:org.eclipse.ease.releng.p2:0.8.0-SNAPSHOT @
/home/christian/Eclipse/ease-2019-
09/git/org.eclipse.ease.core/releng/org.eclipse.ease.releng.p2/pom.xml:
See log for details -> [Help 1]

So the source feature fails to build as the binary feature cannot be
resolved. The binary feature however is part of my pom [1].

The source feature is enabled with this code:

	<plugin>
		<groupId>org.eclipse.tycho.extras</groupId>
		<artifactId>tycho-source-feature-plugin</artifactId>
		<version>${tycho.extras.version}</version>

		<executions>
			<execution>
				<id>source-feature</id>
				<phase>package</phase>
				<goals>
					<goal>source-feature</goal>
				</goals>
			</execution>
		</executions>
	</plugin>

... and the category file is here [2].

Starting the build on a clean checkout (and a clean maven cache)
sometimes wokrs and sometimes fails. Any hints how to get this stable?

thanks
Christian


[1]
https://git.eclipse.org/c/ease/org.eclipse.ease.core.git/tree/releng/org.eclipse.ease.releng/pom.xml
[2]
https://git.eclipse.org/c/ease/org.eclipse.ease.core.git/tree/releng/org.eclipse.ease.releng.p2/category.xml






Back to the top