Discussion:
[tycho-user] problem with eclipse indigo
Luiz E. Kowalski
2011-09-06 13:31:57 UTC
Permalink
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 :)
Luiz E. Kowalski
2011-09-06 13:38:59 UTC
Permalink
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?
Post by Luiz E. Kowalski
hi
http://mattiasholmqvist.se/2010/02/building-with-tycho-part-1-osgi-bundles/
but instead 3.5, i'm using eclipse 3.7 indigo
[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]
org.eclipse.equinox.p2.core.
ProvisionException: No solution found because the problem is unsatisfiable.
-> [
Help 1]
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
352)
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
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorE
xception
<?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 :)
Christian Soltenborn
2011-09-06 14:07:48 UTC
Permalink
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
Post by 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?
hi
http://mattiasholmqvist.se/2010/02/building-with-tycho-part-1-osgi-bundles/
but instead 3.5, i'm using eclipse 3.7 indigo
[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]
org.eclipse.equinox.p2.core.
ProvisionException: No solution found because the problem is
unsatisfiable. -> [
Help 1]
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
352)
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
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorE
xception
<?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
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."
Luiz E. Kowalski
2011-09-06 14:34:33 UTC
Permalink
hi
thanks for your help.

i just followed the dzone tutorial, and created a new target platform,
poiting to download.eclipse.org./eclipse/updates/3.7
and added this to my parent pom.xml

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>0.11.1</version>
<configuration>
<resolver>p2</resolver>
<target>
<artifact>
<groupId>br.com.german</groupId>
<artifactId>br.com.german.plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<classifier>br.com.german.plugin</classifier>
</artifact>
</target>
<ignoreTychoRepositories>true</ignoreTychoRepositories>
</configuration>
</plugin>


where br.com.german.plugin is my plugin project, and my target definition
file is br.com.german.plugin.target but the error persists.

[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeExcept
ion: Could not resolve plugin org.eclipse.ui.carbon_4.0.100.I20101109-0800;
Path
to dependency:

something weird: there is no rcp sdk in any update sites :(
Post by Christian Soltenborn
Hi Luiz,
the best way probably is to come up with a proper target platform
definition, and to use that definition within your build.
http://wiki.eclipse.org/PDE/Target_Definitions
http://eclipse.dzone.com/articles/creating-eclipse-rcp-target
<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
Post by 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?
hi
http://mattiasholmqvist.se/2010/02/building-with-tycho-part-1-osgi-bundles/
Post by Luiz E. Kowalski
but instead 3.5, i'm using eclipse 3.7 indigo
[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]
org.eclipse.equinox.p2.core.
ProvisionException: No solution found because the problem is
unsatisfiable. -> [
Help 1]
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)
Post by Luiz E. Kowalski
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)
Post by Luiz E. Kowalski
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
352)
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)
Post by Luiz E. Kowalski
... 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
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorE
xception
<?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
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."
_______________________________________________
tycho-user mailing list
https://dev.eclipse.org/mailman/listinfo/tycho-user
Luiz E. Kowalski
2011-09-06 14:41:09 UTC
Permalink
found this on my product:

<launcherArgs>
<vmArgsMac>-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>

can i just delete this entry?
Post by Luiz E. Kowalski
hi
thanks for your help.
i just followed the dzone tutorial, and created a new target platform,
poiting to download.eclipse.org./eclipse/updates/3.7
and added this to my parent pom.xml
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>0.11.1</version>
<configuration>
<resolver>p2</resolver>
<target>
<artifact>
<groupId>br.com.german</groupId>
<artifactId>br.com.german.plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<classifier>br.com.german.plugin</classifier>
</artifact>
</target>
<ignoreTychoRepositories>true</ignoreTychoRepositories>
</configuration>
</plugin>
where br.com.german.plugin is my plugin project, and my target definition
file is br.com.german.plugin.target but the error persists.
[ERROR] -> [Help 1]
java.lang.RuntimeExcept
ion: Could not resolve plugin org.eclipse.ui.carbon_4.0.100.I20101109-0800;
Path
something weird: there is no rcp sdk in any update sites :(
Post by Christian Soltenborn
Hi Luiz,
the best way probably is to come up with a proper target platform
definition, and to use that definition within your build.
http://wiki.eclipse.org/PDE/Target_Definitions
http://eclipse.dzone.com/articles/creating-eclipse-rcp-target
<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
Post by 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?
hi
http://mattiasholmqvist.se/2010/02/building-with-tycho-part-1-osgi-bundles/
Post by Luiz E. Kowalski
but instead 3.5, i'm using eclipse 3.7 indigo
[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]
org.eclipse.equinox.p2.core.
ProvisionException: No solution found because the problem is
unsatisfiable. -> [
Help 1]
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)
Post by Luiz E. Kowalski
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)
Post by Luiz E. Kowalski
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
Post by Luiz E. Kowalski
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
Post by Luiz E. Kowalski
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
Post by Luiz E. Kowalski
cher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
Post by Luiz E. Kowalski
a:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
Post by Luiz E. Kowalski
uncher.java:409)
at
352)
org.eclipse.equinox.p2.core.ProvisionExce
ption: No solution found because the problem is unsatisfiable.
at
org.sonatype.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resol
Post by Luiz E. Kowalski
ve(ProjectorResolutionStrategy.java:100)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2R
Post by Luiz E. Kowalski
esolverImpl.java:360)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2R
Post by Luiz E. Kowalski
esolverImpl.java:325)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatfo
Post by Luiz E. Kowalski
rm(P2TargetPlatformResolver.java:472)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform
Post by Luiz E. Kowalski
(P2TargetPlatformResolver.java:151)
at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolvePro
Post by Luiz E. Kowalski
ject(DefaultTychoDependencyResolver.java:86)
at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjects
Post by Luiz E. Kowalski
Read(TychoMavenLifecycleParticipant.java:94)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
Post by Luiz E. Kowalski
... 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
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorE
xception
<?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
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."
_______________________________________________
tycho-user mailing list
https://dev.eclipse.org/mailman/listinfo/tycho-user
Luiz E. Kowalski
2011-09-06 14:43:46 UTC
Permalink
ok, deleted, same error :(
Post by Luiz E. Kowalski
<launcherArgs>
<vmArgsMac>-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>
can i just delete this entry?
Post by Luiz E. Kowalski
hi
thanks for your help.
i just followed the dzone tutorial, and created a new target platform,
poiting to download.eclipse.org./eclipse/updates/3.7
and added this to my parent pom.xml
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>0.11.1</version>
<configuration>
<resolver>p2</resolver>
<target>
<artifact>
<groupId>br.com.german</groupId>
<artifactId>br.com.german.plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<classifier>br.com.german.plugin</classifier>
</artifact>
</target>
<ignoreTychoRepositories>true</ignoreTychoRepositories>
</configuration>
</plugin>
where br.com.german.plugin is my plugin project, and my target definition
file is br.com.german.plugin.target but the error persists.
[ERROR] -> [Help 1]
java.lang.RuntimeExcept
ion: Could not resolve plugin
org.eclipse.ui.carbon_4.0.100.I20101109-0800; Path
something weird: there is no rcp sdk in any update sites :(
Post by Christian Soltenborn
Hi Luiz,
the best way probably is to come up with a proper target platform
definition, and to use that definition within your build.
http://wiki.eclipse.org/PDE/Target_Definitions
http://eclipse.dzone.com/articles/creating-eclipse-rcp-target
<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
Post by 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?
hi
http://mattiasholmqvist.se/2010/02/building-with-tycho-part-1-osgi-bundles/
Post by Luiz E. Kowalski
but instead 3.5, i'm using eclipse 3.7 indigo
[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]
org.eclipse.equinox.p2.core.
ProvisionException: No solution found because the problem is
unsatisfiable. -> [
Help 1]
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)
Post by Luiz E. Kowalski
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)
Post by Luiz E. Kowalski
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
Post by Luiz E. Kowalski
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
Post by Luiz E. Kowalski
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
Post by Luiz E. Kowalski
cher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
Post by Luiz E. Kowalski
a:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
Post by Luiz E. Kowalski
uncher.java:409)
at
352)
org.eclipse.equinox.p2.core.ProvisionExce
ption: No solution found because the problem is unsatisfiable.
at
org.sonatype.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resol
Post by Luiz E. Kowalski
ve(ProjectorResolutionStrategy.java:100)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2R
Post by Luiz E. Kowalski
esolverImpl.java:360)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2R
Post by Luiz E. Kowalski
esolverImpl.java:325)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatfo
Post by Luiz E. Kowalski
rm(P2TargetPlatformResolver.java:472)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform
Post by Luiz E. Kowalski
(P2TargetPlatformResolver.java:151)
at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolvePro
Post by Luiz E. Kowalski
ject(DefaultTychoDependencyResolver.java:86)
at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjects
Post by Luiz E. Kowalski
Read(TychoMavenLifecycleParticipant.java:94)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
Post by Luiz E. Kowalski
... 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
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorE
xception
<?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
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."
_______________________________________________
tycho-user mailing list
https://dev.eclipse.org/mailman/listinfo/tycho-user
Christian Soltenborn
2011-09-06 17:00:54 UTC
Permalink
Hi,

you might consider to first try things and then ask - 3 Mails in 9 mins
is quite a lot for a mailing list.

Try using your target platform definition within your Eclipse workspace
(Preferences/Plug-in Development/Target platform). You will most likely
have compile errors then (e.g., missing dependencies), which you can fix
within Eclipse. If all dependencies all resolved correctly within
Eclipse, chances are they are resolved for your build, too.

Hope this helps,
Christian
Post by Luiz E. Kowalski
ok, deleted, same error :(
<launcherArgs>
<vmArgsMac>-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>
can i just delete this entry?
hi
thanks for your help.
i just followed the dzone tutorial, and created a new target
platform, poiting to download.eclipse.org./eclipse/updates/3.7
and added this to my parent pom.xml
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>0.11.1</version>
<configuration>
<resolver>p2</resolver>
<target>
<artifact>
<groupId>br.com.german</groupId>
<artifactId>br.com.german.plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<classifier>br.com.german.plugin</classifier>
</artifact>
</target>
<ignoreTychoRepositories>true</ignoreTychoRepositories>
</configuration>
</plugin>
where br.com.german.plugin is my plugin project, and my target
definition file is br.com.german.plugin.target but the error
persists.
[ERROR] -> [Help 1]
java.lang.RuntimeExcept
ion: Could not resolve plugin
org.eclipse.ui.carbon_4.0.100.I20101109-0800; Path
something weird: there is no rcp sdk in any update sites :(
Hi Luiz,
the best way probably is to come up with a proper target platform
definition, and to use that definition within your build.
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
<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
Post by Luiz E. Kowalski
i just added
-Dtycho.targetPlatform=C:\Java\indigoRcp\eclipse to the
Post by Luiz E. Kowalski
command, and it worked
but, targetPlatform will be removed. how do i configure it
properly?
Post by Luiz E. Kowalski
hi
http://mattiasholmqvist.se/2010/02/building-with-tycho-part-1-osgi-bundles/
Post by Luiz E. Kowalski
but instead 3.5, i'm using eclipse 3.7 indigo
when i execute 'mvn clean install', i get the
[INFO] [Software being installed: testeTycho
1.0.0.qualifier,
Post by Luiz E. Kowalski
Missing requiremen
t: testeTycho 1.0.0.qualifier requires 'package
org.osgi.framework
Post by Luiz E. Kowalski
1.3.0' but it
could not be found]
org.eclipse.equinox.p2.core.
ProvisionException: No solution found because the
problem is
Post by Luiz E. Kowalski
unsatisfiable. -> [
Help 1]
java.lang.RuntimeExcept
No solution
Post by Luiz E. Kowalski
found because t
he problem is unsatisfiable.
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
Post by Luiz E. Kowalski
at
org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
Post by Luiz E. Kowalski
at
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
Post by Luiz E. Kowalski
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
Post by Luiz E. Kowalski
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Post by Luiz E. Kowalski
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
Post by Luiz E. Kowalski
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
Post by Luiz E. Kowalski
sorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:597)
Post by Luiz E. Kowalski
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
Post by Luiz E. Kowalski
cher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
Post by Luiz E. Kowalski
a:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
Post by Luiz E. Kowalski
uncher.java:409)
at
352)
org.eclipse.equinox.p2.core.ProvisionExce
ption: No solution found because the problem is
unsatisfiable.
Post by Luiz E. Kowalski
at
org.sonatype.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resol
Post by Luiz E. Kowalski
ve(ProjectorResolutionStrategy.java:100)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2R
Post by Luiz E. Kowalski
esolverImpl.java:360)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2R
Post by Luiz E. Kowalski
esolverImpl.java:325)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatfo
Post by Luiz E. Kowalski
rm(P2TargetPlatformResolver.java:472)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform
Post by Luiz E. Kowalski
(P2TargetPlatformResolver.java:151)
at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolvePro
Post by Luiz E. Kowalski
ject(DefaultTychoDependencyResolver.java:86)
at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjects
Post by Luiz E. Kowalski
Read(TychoMavenLifecycleParticipant.java:94)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
Post by Luiz E. Kowalski
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
Post by Luiz E. Kowalski
... 11 more
org.eclipse.equinox.p2.core.ProvisionException: No
Post by Luiz E. Kowalski
solution found bec
ause the problem is unsatisfiable.
... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible
solutions, please rea
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorE
Post by Luiz E. Kowalski
xception
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
Post by Luiz E. Kowalski
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>
Post by Luiz E. Kowalski
<version>0.11.1</version>
<configuration>
<resolver>p2</resolver>
</configuration>
</plugin>
</plugins>
</build>
what is this?
thanks anyway :)
_______________________________________________
tycho-user mailing list
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."
_______________________________________________
tycho-user mailing list
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Anonymous: "God is not dead but alive and well and working on a much
less ambitious project."
Luiz E. (GMail)
2011-09-07 17:19:40 UTC
Permalink
ok, started from scratch...
created 3 projects: plugin, feature and product (just a generic
project). they are 'br.com.zorba.plugin', 'br.com.zorba.feature',
'br.com.zorba'. the last one is the project
the whole thing just doesn't work!
followed again this tutorial:
http://mattiasholmqvist.se/2010/03/building-with-tycho-part-2-rcp-applications/

here are my parent pom: https://gist.github.com/1201133

on my plugin project, there's a folder named 'target', and inside, my
target definition file named 'br.com.zorba.target'
to add the target file to my project, i made this:
http://eclipsedriven.posterous.com/configuring-eclipse-tycho-maven-plugin-to-use

here, my plugin pom: https://gist.github.com/1201146

my feature.xml: https://gist.github.com/1201157

when I 'mvn clean package', this happens:

***@lk:~/workspaceRcp$ mvn clean package
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is
platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is
platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is
platform dependent.
[INFO] Resolving target platform for project MavenProject:
br.com:br.com.zorba.feature:0.0.1 @
/home/luiz/workspaceRcp/br.com.zorba.feature/pom.xml
[INFO] Cannot complete the request. Generating details.
[INFO]
{org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,
osgi.ws=gtk, osgi.arch=x86, osgi.os=linux,
org.eclipse.update.install.features=true,
org.osgi.framework.system.packages=}
[INFO] [Software being installed: br.com.zorba.feature.feature.group
0.0.1, Missing requirement: br.com.zorba.feature.feature.group 0.0.1
requires 'org.eclipse.ui 3.7.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.RuntimeException:
org.eclipse.equinox.p2.core.ProvisionException: No solution found
because the 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(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:
org.eclipse.equinox.p2.core.ProvisionException: No solution found
because the problem is unsatisfiable.
at
org.sonatype.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:100)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:360)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:325)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:472)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:151)
at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:86)
at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(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 because the problem is unsatisfiable.
... 20 more
[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/InternalErrorException


any ideas?
Christian Soltenborn
2011-09-08 05:47:06 UTC
Permalink
Hi,

1 idea, 2 hints:

- in your parent pom, you are mixing groupIds org.sonatype.tycho and
org.eclipse.tycho. See [1]. Why aren't you using tycho 0.12.0 anyways?
0.13.0.SNAPSHOT also seems to work well (that's what I'm using).
- Try executing maven with the --debug option
- Use the "manifest first" approach, i.e., try letting your poms be
generated by tycho (see [2]). You can customize the generated poms
(e.g., add your target definition) by means of templates, see [3]. Note
that this doesn't generate your product pom, but a working parent pom
and poms for plugin and feature should be a starting point.

Cheers,
Christian

[1] http://wiki.eclipse.org/Tycho_Release_Notes/0.12
[2] http://wiki.eclipse.org/Tycho/Reference_Card#Generating_POM_files
[3] http://dev.eclipse.org/mhonarc/lists/tycho-user/msg00098.html
Post by Luiz E. (GMail)
ok, started from scratch...
created 3 projects: plugin, feature and product (just a generic
project). they are 'br.com.zorba.plugin', 'br.com.zorba.feature',
'br.com.zorba'. the last one is the project
the whole thing just doesn't work!
http://mattiasholmqvist.se/2010/03/building-with-tycho-part-2-rcp-applications/
here are my parent pom: https://gist.github.com/1201133
on my plugin project, there's a folder named 'target', and inside, my
target definition file named 'br.com.zorba.target'
http://eclipsedriven.posterous.com/configuring-eclipse-tycho-maven-plugin-to-use
here, my plugin pom: https://gist.github.com/1201146
my feature.xml: https://gist.github.com/1201157
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is
platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is
platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is
platform dependent.
/home/luiz/workspaceRcp/br.com.zorba.feature/pom.xml
[INFO] Cannot complete the request. Generating details.
[INFO]
{org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,
osgi.ws=gtk, osgi.arch=x86, osgi.os=linux,
org.eclipse.update.install.features=true,
org.osgi.framework.system.packages=}
[INFO] [Software being installed: br.com.zorba.feature.feature.group
0.0.1, Missing requirement: br.com.zorba.feature.feature.group 0.0.1
requires 'org.eclipse.ui 3.7.0' but it could not be found]
org.eclipse.equinox.p2.core.ProvisionException: No solution found
because the problem is unsatisfiable. -> [Help 1]
org.eclipse.equinox.p2.core.ProvisionException: No solution found
because the 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(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
org.eclipse.equinox.p2.core.ProvisionException: No solution found
because the problem is unsatisfiable.
at
org.sonatype.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:100)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:360)
at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:325)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:472)
at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:151)
at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:86)
at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(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 because the problem is unsatisfiable.
... 20 more
[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,
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
any ideas?
_______________________________________________
tycho-user mailing list
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."
Luiz E. Kowalski
2011-09-08 11:17:03 UTC
Permalink
hi christian
i was using this command to build my poms: mvn3
org.sonatype.tycho:maven-tycho-plugin:generate-poms -DgroupId=<my
project>
thats why i was downloading 0.11.1 version.
now, i used mvn
org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms
-DgroupId=<MY.PROJECT> and this downloaded the 0.12 version!
in my parent pom, i just added this

<target>
<artifact>
<groupId>br.com</groupId>
<artifactId>br.com.zorba.plugin</artifactId>
<version>0.1.0-SNAPSHOT</version>
<classifier>target/br.com.zorba</classifier>
</artifact>
</target>

and worked!

christian, you are a life saver! thanks a lot

Loading...