Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext build fails with JavaSE-11 and 2021-03
xtext build fails with JavaSE-11 and 2021-03 [message #1839298] Fri, 19 March 2021 02:09 Go to next message
Richard Melvin is currently offline Richard MelvinFriend
Messages: 9
Registered: July 2009
Junior Member
Setting up a simple .target file with only xtext 2.25.0 from https://download.eclipse.org/releases/2021-03

building with latest maven and tycho, get:

 
[ERROR]   Missing requirement: org.eclipse.emf.ecore 2.23.0.v20200630-0516 requires 'java.package; javax.crypto 0.0.0' but it could not be found



Fuller error log:

[DEBUG] Clearing proxy settings in OSGi runtime
[INFO] Validating D:\git\xcog3\xcog3.releng\build.platform\build.platform.target...
[DEBUG] Adding target definition file "D:\git\xcog3\xcog3.releng\build.platform\build.platform.target"
[DEBUG] Resolving target definition content...
[DEBUG] No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from biz.aQute.bndlib 5.3.0.202102221516 to java.package; javax.crypto 0.0.0.; Unable to satisfy dependency from biz.aQute.bndlib 5.3.0.202102221516 to java.package; javax.crypto.spec 0.0.0.; Unable to satisfy dependency from biz.aQute.bndlib 5.3.0.202102221516 to java.package; javax.net.ssl 0.0.0.; Unable to satisfy dependency from biz.aQute.bndlib 5.3.0.202102221516 to java.package; javax.script 0.0.0.; Unable to satisfy dependency from biz.aQute.bndlib 5.3.0.202102221516 to java.package; javax.security.auth.x500 0.0.0.; Unable to satisfy dependency from org.eclipse.emf.ecore 2.23.0.v20200630-0516 to java.package; javax.crypto 0.0.0.; Unable to satisfy dependency from org.eclipse.emf.ecore 2.23.0.v20200630-0516 to java.package; javax.crypto.spec 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.p2.repository 2.5.0.v20201013-0853 to java.package; javax.crypto 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.3.600.v20210126-1005 to java.package; javax.crypto 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.3.600.v20210126-1005 to java.package; javax.crypto.spec 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.3.600.v20210126-1005 to java.package; javax.security.auth 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.3.600.v20210126-1005 to java.package; javax.security.auth.callback 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.3.600.v20210126-1005 to java.package; javax.security.auth.login 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security 1.3.600.v20210126-1005 to java.package; javax.security.auth.spi 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security.ui 1.3.0.v20210121-0947 to java.package; javax.crypto.spec 0.0.0.; Unable to satisfy dependency from org.eclipse.equinox.security.ui 1.3.0.v20210121-0947 to java.package; javax.security.auth.x500 0.0.0.; No solution found because the problem is unsatisfiable.]
[ERROR] Cannot resolve target definition:
[ERROR]   Software being installed: org.eclipse.xtext.sdk.feature.group 2.25.0.v20210301-1429
[ERROR]   Missing requirement: org.eclipse.emf.ecore 2.23.0.v20200630-0516 requires 'java.package; javax.crypto 0.0.0' but it could not be found
[ERROR]   Cannot satisfy dependency: org.eclipse.emf.mwe.core 1.6.1.v20210218-2134 depends on: osgi.bundle; org.eclipse.emf.ecore 0.0.0
[ERROR]   Cannot satisfy dependency: org.eclipse.xtend 2.2.0.v201605260315 depends on: osgi.bundle; org.eclipse.emf.mwe.core 0.0.0
[ERROR]   Cannot satisfy dependency: org.eclipse.xtext.runtime.feature.group 2.25.0.v20210301-1429 depends on: org.eclipse.equinox.p2.iu; org.eclipse.xtend 0.0.0
[ERROR]   Cannot satisfy dependency: org.eclipse.xtext.sdk.feature.group 2.25.0.v20210301-1429 depends on: org.eclipse.equinox.p2.iu; org.eclipse.xtext.runtime.feature.group [2.25.0.v20210301-1429,2.25.0.v20210301-1429]
[ERROR]



Full .target file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde?>
<!-- generated with https://github.com/eclipse-cbi/targetplatform-dsl -->
<target name="XCoG 3 for Eclipse" sequenceNumber="1616118601">
  <locations>
    <location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
      <unit id="org.eclipse.xtext.sdk.feature.group" version="2.25.0.v20210301-1429"/>
      <repository id="eclipse-baseline" location="https://download.eclipse.org/releases/2021-03/"/>
    </location>
  </locations>
  <environment>
    <os>win32</os>
    <arch>x86_64</arch>
  </environment>
  <targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
</target>



Any hints as to what is going wrong?


Re: xtext build fails with JavaSE-11 and 2021-03 [message #1839299 is a reply to message #1839298] Fri, 19 March 2021 05:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
No idea. Maybe the Tycho-user mailing list is a better place to ask.

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext build fails with JavaSE-11 and 2021-03 [message #1839308 is a reply to message #1839299] Fri, 19 March 2021 08:03 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7129
Registered: July 2009
Senior Member
Hi

Ever since Java introduced modules and progressively removed javax packages from default classpaths, there has been a steady stream of javax.xxx issues. It seems each Java version changes the rules and sometimes Eclipse / Tycho versions introduce a compensation. You need to be very careful to check exactly what you have changed before concluding that there is a breakage.Probably you just need to add an explicit require-bundle/import-package for javax.crypto to compensate what was previously provided for free.

Regards

Ed Willink
Re: xtext build fails with JavaSE-11 and 2021-03 [message #1839361 is a reply to message #1839308] Fri, 19 March 2021 14:01 Go to previous message
Richard Melvin is currently offline Richard MelvinFriend
Messages: 9
Registered: July 2009
Junior Member
I guess it is probably some kind of tycho issue Setting <checkDependencies>false</checkDependencies> in the target-platform-validation-plugin configuration seems to make it go away, anyway.

https://www.eclipse.org/tycho/sitedocs/tycho-extras/target-platform-validation-plugin/validate-target-platform-mojo.html.

The resulting editor will quietly fail to work, but the run-time errors are different...
Previous Topic:String without double quotes
Next Topic:Read ._trace files with java
Goto Forum:
  


Current Time: Fri May 14 10:53:13 GMT 2021

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

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

Back to the top