Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] problem with eclipse indigo

Hi Luiz,

the best way probably is to come up with a proper target platform
definition, and to use that definition within your build.

Here's info on target platform definitions:

http://wiki.eclipse.org/PDE/Target_Definitions
http://eclipse.dzone.com/articles/creating-eclipse-rcp-target

And here's an example on how to integrate that into your tycho build:

<plugin>
	<groupId>org.eclipse.tycho</groupId>
	<artifactId>target-platform-configuration</artifactId>
	<version>${tycho-version}</version>
	<configuration>
		<resolver>p2</resolver>
		<target>
			<artifact>
				<groupId>de.upb.dmm</groupId>
				<artifactId>de.upb.dmm.build</artifactId>
				<version>0.1.0-SNAPSHOT</version>
				<classifier>misc/DMM_Indigo</classifier>
			</artifact>
		</target>
		<ignoreTychoRepositories>true</ignoreTychoRepositories>
	</configuration>
</plugin>

Here, the target platform definition is living in the file
misc/DMM_Indigo.target in project de.upb.dmm.build.

Hope this helps,
Christian


Am 06.09.2011 15:38, schrieb Luiz E. Kowalski:
> i just added -Dtycho.targetPlatform=C:\Java\indigoRcp\eclipse to the
> command, and it worked
> but, targetPlatform will be removed. how do i configure it properly?
> 
> 2011/9/6 Luiz E. Kowalski <luizeduardokowalski@xxxxxxxxx
> <mailto:luizeduardokowalski@xxxxxxxxx>>
> 
>     hi
>     i'm following this tutorial:
>     http://mattiasholmqvist.se/2010/02/building-with-tycho-part-1-osgi-bundles/
>     but instead 3.5, i'm using eclipse 3.7 indigo
> 
>     when i execute 'mvn clean install', i get the following error:
> 
>     [INFO] [Software being installed: testeTycho 1.0.0.qualifier,
>     Missing requiremen
>     t: testeTycho 1.0.0.qualifier requires 'package org.osgi.framework
>     1.3.0' but it
>      could not be found]
>     [ERROR] Internal error: java.lang.RuntimeException:
>     org.eclipse.equinox.p2.core.
>     ProvisionException: No solution found because the problem is
>     unsatisfiable. -> [
>     Help 1]
>     org.apache.maven.InternalErrorException: Internal error:
>     java.lang.RuntimeExcept
>     ion: org.eclipse.equinox.p2.core.ProvisionException: No solution
>     found because t
>     he problem is unsatisfiable.
>             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(NativeMethodAccessorImpl.
>     java:39)
>             at
>     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>     sorImpl.java:25)
>             at java.lang.reflect.Method.invoke(Method.java:597)
>             at
>     org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
>     cher.java:290)
>             at
>     org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
>     a:230)
>             at
>     org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
>     uncher.java:409)
>             at
>     org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>     352)
>     Caused by: java.lang.RuntimeException:
>     org.eclipse.equinox.p2.core.ProvisionExce
>     ption: No solution found because the problem is unsatisfiable.
>             at
>     org.sonatype.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resol
>     ve(ProjectorResolutionStrategy.java:100)
>             at
>     org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2R
>     esolverImpl.java:360)
>             at
>     org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2R
>     esolverImpl.java:325)
>             at
>     org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatfo
>     rm(P2TargetPlatformResolver.java:472)
>             at
>     org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform
>     (P2TargetPlatformResolver.java:151)
>             at
>     org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolvePro
>     ject(DefaultTychoDependencyResolver.java:86)
>             at
>     org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjects
>     Read(TychoMavenLifecycleParticipant.java:94)
>             at
>     org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
>             at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>             ... 11 more
>     Caused by: org.eclipse.equinox.p2.core.ProvisionException: No
>     solution found bec
>     ause the problem is unsatisfiable.
>             ... 20 more
>     [ERROR]
>     [ERROR]
>     [ERROR] For more information about the errors and possible
>     solutions, please rea
>     d the following articles:
>     [ERROR] [Help 1]
>     http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorE
>     xception
> 
> 
>     here's 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>
>       <groupId>testeTycho</groupId>
>       <artifactId>workspaceRcp</artifactId>
>       <version>0.0.1-SNAPSHOT</version>
>       <packaging>pom</packaging>
>       <modules>
>         <module>testeTycho</module>
>       </modules>
>       <build>
>         <plugins>
>           <plugin>
>             <groupId>org.sonatype.tycho</groupId>
>             <artifactId>tycho-maven-plugin</artifactId>
>             <version>0.11.1</version>
>             <extensions>true</extensions>
>           </plugin>
>           <plugin>
>               <groupId>org.sonatype.tycho</groupId>
>               <artifactId>target-platform-configuration</artifactId>
>               <version>0.11.1</version>
>               <configuration>
>                 <resolver>p2</resolver>
>               </configuration>
>         </plugin>
> 
>         </plugins>
>       </build>
> 
>     what is this?
>     thanks anyway :)
> 
> 
> 
> 
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user


-- 
David Letterman: "Sometimes when you look in his eyes you get the
feeling that someone else is driving."


Back to the top