Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » e4 application Compilation impossible with tycho
e4 application Compilation impossible with tycho [message #1102965] Fri, 06 September 2013 08:50
anthony palmieri is currently offline anthony palmieriFriend
Messages: 20
Registered: July 2013
Junior Member
Hello , i tried to compile my e4 application with tycho but i have an error that i don't understand . Can you explain me why tycho need Mac os library whereas it not need in target platform.

stacktrace:
D:\GUI\com.itf.tvt.tool.gui.build>mvn clean install
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: com.itf.tvt.tool.gui.build:com.itf.tvt.tool.core.gui:1.0.0-SNAPSHOT @ D:\GUI\com.itf.tvt.tool.core.gui\pom.xm
l
[ERROR] Internal error: java.lang.RuntimeException: Failed to resolve target definition D:\GUI\com.itf.tvt.tool.target\tvt.target: "Problems resolving provision
ing plan.": ["Unable to satisfy dependency from toolingorg.eclipse.platform.sdk.application 4.3.0.I20130605-2000 to toolingorg.eclipse.platform.sdk.executable.c
ocoa.macosx.x86_64-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency from toolingorg.eclipse.platform.sdk.application 4.3.0.I20130605-2000 to tool
ingorg.eclipse.platform.sdk.executable.cocoa.macosx.x86-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency from toolingorg.eclipse.platform.ide.app
lication 4.3.0.I20130605-2000 to toolingorg.eclipse.platform.ide.executable.cocoa.macosx.x86-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency fro
m toolingorg.eclipse.platform.ide.application 4.3.0.I20130605-2000 to toolingorg.eclipse.platform.ide.executable.cocoa.macosx.x86_64-bundled [4.3.0.I20130605-20
00].", "Unable to satisfy dependency from toolingorg.eclipse.sdk.ide.application 4.3.0.I20130605-2000 to toolingorg.eclipse.sdk.ide.executable.cocoa.macosx.x86_
64-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency from toolingorg.eclipse.sdk.ide.application 4.3.0.I20130605-2000 to toolingorg.eclipse.sdk.id
e.executable.cocoa.macosx.x86-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency from toolingorg.eclipse.rcp.sdk.id.application 4.3.0.I20130605-200
0 to toolingorg.eclipse.rcp.sdk.id.executable.cocoa.macosx.x86-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency from toolingorg.eclipse.rcp.sdk.i
d.application 4.3.0.I20130605-2000 to toolingorg.eclipse.rcp.sdk.id.executable.cocoa.macosx.x86_64-bundled [4.3.0.I20130605-2000]."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to resolve target definition D:\GUI\com.itf.tvt.tool.target\tvt.targ
et
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: Failed to resolve target definition D:\GUI\com.itf.tvt.tool.target\tvt.target
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.addTargetFileContentToTargetPlatform(P2TargetPlatformResolver.java:335)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetPlatform(P2TargetPlatformResolver.java:205)
        at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:100)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        ... 11 more
Caused by: org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException: "Problems resolving provisioning plan.": ["Unable to satisfy dependency from
toolingorg.eclipse.platform.sdk.application 4.3.0.I20130605-2000 to toolingorg.eclipse.platform.sdk.executable.cocoa.macosx.x86_64-bundled [4.3.0.I20130605-2000
].", "Unable to satisfy dependency from toolingorg.eclipse.platform.sdk.application 4.3.0.I20130605-2000 to toolingorg.eclipse.platform.sdk.executable.cocoa.mac
osx.x86-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency from toolingorg.eclipse.platform.ide.application 4.3.0.I20130605-2000 to toolingorg.ecli
pse.platform.ide.executable.cocoa.macosx.x86-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency from toolingorg.eclipse.platform.ide.application 4.
3.0.I20130605-2000 to toolingorg.eclipse.platform.ide.executable.cocoa.macosx.x86_64-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency from toolin
gorg.eclipse.sdk.ide.application 4.3.0.I20130605-2000 to toolingorg.eclipse.sdk.ide.executable.cocoa.macosx.x86_64-bundled [4.3.0.I20130605-2000].", "Unable to
satisfy dependency from toolingorg.eclipse.sdk.ide.application 4.3.0.I20130605-2000 to toolingorg.eclipse.sdk.ide.executable.cocoa.macosx.x86-bundled [4.3.0.I20
130605-2000].", "Unable to satisfy dependency from toolingorg.eclipse.rcp.sdk.id.application 4.3.0.I20130605-2000 to toolingorg.eclipse.rcp.sdk.id.executable.co
coa.macosx.x86-bundled [4.3.0.I20130605-2000].", "Unable to satisfy dependency from toolingorg.eclipse.rcp.sdk.id.application 4.3.0.I20130605-2000 to toolingorg
.eclipse.rcp.sdk.id.executable.cocoa.macosx.x86_64-bundled [4.3.0.I20130605-2000]."]
        at org.eclipse.tycho.p2.target.TargetDefinitionResolver.newResolutionException(TargetDefinitionResolver.java:222)
        at org.eclipse.tycho.p2.target.TargetDefinitionResolver$1.newResolutionException(TargetDefinitionResolver.java:168)
        at org.eclipse.tycho.p2.resolver.AbstractSlicerResolutionStrategy.slice(AbstractSlicerResolutionStrategy.java:76)
        at org.eclipse.tycho.p2.resolver.SlicerResolutionStrategy.resolve(SlicerResolutionStrategy.java:83)
        at org.eclipse.tycho.p2.resolver.SlicerResolutionStrategy.multiPlatformResolve(SlicerResolutionStrategy.java:75)
        at org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:139)
        at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments(TargetDefinitionResolverService.java:65)
        at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.getTargetDefinitionContent(TargetDefinitionResolverService.java:55)
        at org.eclipse.tycho.p2.target.TargetPlatformBuilderImpl.addTargetDefinition(TargetPlatformBuilderImpl.java:297)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.addTargetFileContentToTargetPlatform(P2TargetPlatformResolver.java:329)
        ... 16 more
Caused by: org.eclipse.core.runtime.CoreException: Problems resolving provisioning plan.
        ... 26 more


My target
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>

<target name="target" sequenceNumber="53">

<configuration>
 <profileProperties>
 <macosx-bundled>true</macosx-bundled>
 </profileProperties>
 </configuration>
<locations>
<location includeAllPlatforms="true" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.e4.tools.css.editor.feature.feature.group" version="0.14.0.v20130617-1345"/>
<unit id="org.eclipse.e4.databinding.feature.feature.group" version="0.13.0.v20130503-1433"/>
<unit id="org.eclipse.e4.core.tools.feature.feature.group" version="0.14.0.v20130620-0935"/>
<unit id="org.eclipse.e4.tools.css.spy.feature.feature.group" version="0.14.0.v20130617-1345"/>
<unit id="org.eclipse.e4.databinding.tests.feature.feature.group" version="0.13.0.v20130503-1433"/>
<repository location="http://download.eclipse.org/e4/downloads/drops/R-0.14-201306242200/repository/"/>
</location>
<location includeAllPlatforms="true" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.e4.core.tools.feature.feature.group" version="0.14.0.v20130620-0935"/>
<unit id="org.eclipse.e4.tools.css.editor.feature.feature.group" version="0.14.0.v20130617-1345"/>
<unit id="org.eclipse.e4.tools.css.spy.feature.feature.group" version="0.14.0.v20130617-1345"/>
<unit id="org.eclipse.e4.databinding.tests.feature.feature.group" version="0.13.0.v20130503-1433"/>
<unit id="org.eclipse.e4.databinding.feature.feature.group" version="0.13.0.v20130503-1433"/>
<repository location="http://download.eclipse.org/e4/updates/0.14/"/>
</location>
<location includeAllPlatforms="true" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.equinox.executable.feature.group" version="3.6.0.v20130521-0416"/>
<unit id="org.eclipse.emf.compare.source.feature.group" version="2.1.0.201306101322"/>
<unit id="org.eclipse.emf.ecore.edit.feature.group" version="2.8.0.v20130610-0406"/>
<unit id="org.eclipse.e4.rcp.source.feature.group" version="1.2.0.v20130605-1738"/>
<unit id="org.eclipse.datatools.sdk.feature.feature.group" version="1.11.0.v201302211047-7PAi1FEpPZFKYstHw29WUuTdipv3"/>
<unit id="org.eclipse.sdk.feature.group" version="4.3.0.v20130605-2000"/>
<unit id="org.eclipse.libra.facet.feature.feature.group" version="0.3.0.201305311343"/>
<unit id="org.eclipse.equinox.core.sdk.feature.group" version="3.8.0.v20130529-1710"/>
<unit id="org.eclipse.scout.rt.core.source.feature.group" version="3.9.0.20130612-0904"/>
<unit id="org.eclipse.emf.edit.feature.group" version="2.9.0.v20130610-0406"/>
<unit id="org.eclipse.equinox.core.feature.feature.group" version="1.1.0.v20130529-1710"/>
<unit id="org.eclipse.equinox.p2.user.ui.feature.group" version="2.2.0.v20130604-2046"/>
<unit id="org.eclipse.emf.codegen.ecore.ui.feature.group" version="2.9.0.v20130610-0406"/>
<unit id="org.eclipse.emf.oda.ecore.ui.feature.group" version="1.1.0.v20130610-0406"/>
<unit id="org.eclipse.emf.compare.diagram.gmf.feature.group" version="2.1.0.201306101322"/>
<unit id="org.eclipse.emf.compare.ide.ui.source.feature.group" version="2.1.0.201306101322"/>
<unit id="org.eclipse.jst.ws.jaxws.dom.feature.feature.group" version="1.0.200.v201109042201-5-F8NAkF7BB7U8PEK8K"/>
<unit id="org.eclipse.e4.rcp.feature.group" version="1.2.0.v20130605-1738"/>
<unit id="org.eclipse.platform.ide" version="4.3.0.I20130605-2000"/>
<unit id="org.eclipse.emf.compare.feature.group" version="2.1.0.201306101322"/>
<unit id="org.eclipse.jst.enterprise_ui.feature.feature.group" version="3.5.0.v201303132100-7b7KIaeFSK2WQtQTAGyA7QXyUmRm"/>
<unit id="org.eclipse.wb.swt.feature.feature.group" version="1.6.0.r43x201305212024"/>
<unit id="org.eclipse.equinox.p2.core.feature.source.feature.group" version="1.2.0.v20130604-2046"/>
<unit id="org.eclipse.equinox.compendium.sdk.feature.group" version="3.8.0.v20130515-2026"/>
<unit id="org.eclipse.emf.databinding.edit.feature.group" version="1.3.0.v20130610-0406"/>
<unit id="org.eclipse.equinox.p2.rcp.feature.feature.group" version="1.2.0.v20130604-2046"/>
<unit id="org.eclipse.emf.codegen.ecore.feature.group" version="2.9.0.v20130610-0406"/>
<unit id="org.eclipse.wb.rcp.feature.feature.group" version="1.6.0.r43x201305212028"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="2.9.0.v20130610-0406"/>
<unit id="org.eclipse.equinox.p2.discovery.feature.feature.group" version="1.0.100.v20130502-0334"/>
<unit id="org.eclipse.equinox.p2.core.feature.feature.group" version="1.2.0.v20130604-2046"/>
<unit id="org.eclipse.equinox.sdk.feature.group" version="3.9.0.v20130604-2047"/>
<unit id="org.eclipse.emf.mapping.ecore.feature.group" version="2.7.0.v20130610-0406"/>
<unit id="org.eclipse.egf.common.ui.feature.group" version="1.1.0.v20130524-1404"/>
<unit id="epp.package.standard" version="2.0.0.20130613-0530"/>
<unit id="org.eclipse.platform.sdk" version="4.3.0.I20130605-2000"/>
<unit id="org.eclipse.stardust.modeling.core-feature.feature.group" version="1.0.0.v20130612-0327"/>
<unit id="org.eclipse.recommenders.feature.rcp.core.feature.group" version="1.0.4.v20130612-1006-b77"/>
<unit id="org.eclipse.libra.framework.feature.feature.group" version="0.3.0.201305311343"/>
<unit id="org.eclipse.emf.edit.ui.feature.group" version="2.9.0.v20130610-0406"/>
<unit id="org.eclipse.equinox.p2.extras.feature.source.feature.group" version="1.2.0.v20130604-2046"/>
<unit id="org.eclipse.pde.api.tools.ee.feature.feature.group" version="1.0.0.v20130327-1631"/>
<unit id="org.eclipse.equinox.serverside.sdk.feature.group" version="3.9.0.v20130604-2047"/>
<unit id="org.eclipse.libra.framework.editor.feature.feature.group" version="0.3.0.201305311343"/>
<unit id="org.eclipse.equinox.weaving.sdk.feature.group" version="1.0.200.v20130327-1442"/>
<unit id="org.eclipse.platform.feature.group" version="4.3.0.v20130605-2000"/>
<unit id="org.eclipse.sdk.ide" version="4.3.0.I20130605-2000"/>
<unit id="org.eclipse.emf.compare.ide.ui.feature.group" version="2.1.0.201306101322"/>
<unit id="org.eclipse.rcp.sdk.id" version="4.3.0.I20130605-2000"/>
<unit id="org.eclipse.datatools.enablement.sdk.feature.feature.group" version="1.11.0.v201302211047-7I9v-FE9JgQGiXyVBMyG1XWskAK0"/>
<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="3.8.0.v20130604-2046"/>
<unit id="org.eclipse.emf.codegen.ui.feature.group" version="2.7.0.v20130610-0406"/>
<unit id="org.eclipse.jubula.feature.launch.rcp.feature.group" version="2.1.0.201305291108"/>
<repository location="http://download.eclipse.org/releases/kepler"/>
</location>
</locations>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
</target>



my parent pom:
<?xml version="1.0" encoding="UTF-8"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<prerequisites>
		<maven>3.0</maven>
	</prerequisites>
	<properties>
		<tycho-version>0.18.0</tycho-version>
		<tycho-groupid>org.eclipse.tycho</tycho-groupid>
		<tycho-p2-director-version>0.11.1</tycho-p2-director-version>
	</properties>
	<groupId>com.itf.tvt.tool.gui.build</groupId>
	<artifactId>com.itf.tvt.tool.gui.build</artifactId>
	<version>0.0.1-SNAPSHOT</version>


	<build>
		<plugins>
			<plugin>
				<groupId>${tycho-groupid}</groupId>
				<artifactId>tycho-maven-plugin</artifactId>
				<version>${tycho-version}</version>
				<configuration>
					<profileProperties>
						<macosx-bundled>true</macosx-bundled>
					</profileProperties>
				</configuration>
				<extensions>true</extensions>
			</plugin>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-packaging-plugin</artifactId>
				<version>${tycho-version}</version>
				<configuration>
				<profileProperties>
						<macosx-bundled>true</macosx-bundled>
					</profileProperties>
					<format>yyyyMMdd'-b${build.number}-r${svn.revision}'</format>
				</configuration>

			</plugin>
			<plugin>
				<groupId>${tycho-groupid}</groupId>
				<artifactId>target-platform-configuration</artifactId>
				<version>${tycho-version}</version>
				<configuration>
				<profileProperties>
						<macosx-bundled>true</macosx-bundled>
					</profileProperties>
					<target>
						<artifact>
							<groupId>com.itf.tvt.tool.gui.build</groupId>
							<artifactId>com.astrium.tvt.target</artifactId>
							<version>1.0.0.qualifier</version>
							<classifier>tvt</classifier>
						</artifact>
					</target>
					<resolver>p2</resolver>
					<environments>
						<environment>
							<os>win32</os>
							<ws>win32</ws>
							<arch>x86</arch>
						</environment>
						<environment>
							<os>linux</os>
							<ws>gtk</ws>
							<arch>x86_64</arch>
						</environment>
					</environments>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<packaging>pom</packaging>
	<modules>
		<module>../com.itf.tvt.tool.target</module>
		<module>../com.itf.tvt.tool.core.gui</module>
		<module>../com.itf.tvt.tool.test.gui</module>
		<module>../com.itf.tvt.tool.datastore.gui</module>
		<module>../com.itf.tvt.tool.datastore.gui.feature</module>
		<module>../com.itf.tvt.tool.repository</module>
		<module>../com.itf.tvt.tool.core.product</module>
	</modules>
</project>


Thanks for yout helps
Previous Topic:Fragment/Perspective/Placeholder problem
Next Topic:@Preferences get injected even they don't change
Goto Forum:
  


Current Time: Fri Dec 19 04:48:17 GMT 2014

Powered by FUDForum. Page generated in 0.01599 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software