Fix the issue about missing javax,net.ssl, avax.crypto and …
It happened when I built a target platform project. The error message look like,
1 |
Caused by: org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from javax.activation 1.1.0.v201005080500 to package javax.imageio 0.0.0.; Unable to satisfy dependency from javax.activation 1.1.0.v201005080500 to package javax.imageio.metadata 0.0.0.; Unable to satisfy dependency from javax.mail 1.4.0.v201005080615 to package javax.net.ssl 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.0.200.v20100503 to package javax.crypto 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.0.200.v20100503 to package javax.crypto.spec 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.0.200.v20100503 to package javax.security.auth 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.0.200.v20100503 to package javax.security.auth.callback 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.0.200.v20100503 to package javax.security.auth.login 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.0.200.v20100503 to package javax.security.auth.spi 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security.ui 1.0.200.v20100503 to package javax.crypto.spec 0.0.0.; Unable to satisfy dependency from org.mortbay.jetty.security 6.1.15.v201006150915 to package javax.net.ssl 0.0.0.; Unable to satisfy dependency from org.mortbay.jetty.security 6.1.15.v201006150915 to package javax.security.cert 0.0.0.; Unable to satisfy dependency from org.mortbay.jetty.server 6.1.15.v200905151201 to package javax.net.ssl 0.0.0.; Unable to satisfy dependency from org.mortbay.jetty.server 6.1.15.v200905151201 to package javax.security.cert 0.0.0.; Unable to satisfy dependency from org.mortbay.jetty.server 6.1.23.v201004211559 to package javax.net.ssl 0.0.0.; Unable to satisfy dependency from org.mortbay.jetty.server 6.1.23.v201004211559 to package javax.security.cert 0.0.0.; No solution found because the problem is unsatisfiable.] |
With “-X” option, you can find there is a debug message,
1 |
[DEBUG] Target definition content cache miss: All entries differ, but there are entries which only differ in one parameter: [execution environment] |
You can find more about execution environment here. To fix it, you have to specify the execution environment on plugin org.eclipse.tycho:target-platform-configuration, such as
1 2 3 4 5 6 7 8 9 10 11 |
... <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <version>${tycho-version}</version> <configuration> ... <executionEnvironment>JavaSE-1.6</executionEnvironment> </configuration> </plugin> ... |