Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Build in eclipse ok, failing via maven with NoSuchMethodError
Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814539] Thu, 12 September 2019 20:49 Go to next message
Matthew T. Adams is currently offline Matthew T. AdamsFriend
Messages: 58
Registered: July 2009
Location: Austin, TX
Member

Hi all,

I created an Xcore project to house my model (not using EMF generation -- maintaining EMF model myself). Xcore project name is io.yaktor.dsl.domain.as (the ".as" stands for "abstract syntax"). I added a project reference of io.yaktor.dsl.domain.as to my main Xtext project (io.yaktor.dsl.domain) and to my io.yaktor.dsl.domain.tests project. I also updated my GenerateDomainModel.mwe2 file to reference my xcore file:
module io.yaktor.dsl.domain.GenerateDomain

import org.eclipse.xtext.xtext.generator.*
import org.eclipse.xtext.xtext.generator.model.project.*

var rootPath = ".."

Workflow {
	bean = org.eclipse.emf.mwe.utils.StandaloneSetup {
		projectMapping = {
			path = "${rootPath}/io.yaktor.dsl.domain.as"
			projectName = "io.yaktor.dsl.domain.as"
		}
	}
	component = XtextGenerator {
		configuration = {
			project = StandardProjectConfig {
				baseName = "io.yaktor.dsl.domain"
				rootPath = rootPath
				runtimeTest = {
					enabled = true
				}
				eclipsePlugin = {
					enabled = true
				}
				eclipsePluginTest = {
					enabled = true
				}
				web = {
					enabled = true
				}
				createEclipseMetaData = true
				genericIde = {
					enabled = true
				}
			}
			code = {
				encoding = "UTF-8"
				lineDelimiter = "\n"
				fileHeader = "/*\n * generated by Xtext \${version}\n */"
			}
		}
		language = StandardLanguage {
			name = "io.yaktor.dsl.domain.Domain"
			fileExtensions = "ydm"
			referencedResource = "platform:/resource/io.yaktor.dsl.domain.as/model/domain.xcore"
			
			fragment = ecore2xtext.Ecore2XtextValueConverterServiceFragment2 auto-inject {}

			serializer = {
				generateStub = false
			}
			validator = {
				// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
				// Generates checks for @Deprecated grammar annotations, an IssueProvider and a corresponding PropertyPage
				generateDeprecationValidation = true
			}
			junitSupport = {
				junitVersion = "5"
			}
		}
	}
}


Everything is building fine within eclipse. Now, I'm trying to build via maven, and getting the following error:
...(snip)...
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: io.yaktor.dsl.domain 1.0.0.qualifier
[ERROR]   Missing requirement: io.yaktor.dsl.domain 1.0.0.qualifier requires 'osgi.bundle; org.eclipse.emf.ecore.xcore 1.10.0' but it could not be found
...(snip)...


So, it appears that I needed to update my target file at io.yaktor.dsl.domain.target/io.yaktor.dsl.domain.target.target to include the xcore stuff. At https://download.eclipse.org/modeling/emf/emf/builds/release/2.18/index.html, I see Xcore SDK 1.10.0 & Xcore Library Runtime 1.5.0, which match the versions that I'm seeing installed in the Xtext version of eclipse (see attached).

I appended the 2.18 EMF repo as a location to my target file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="io.yaktor.dsl.domain.target" sequenceNumber="1">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.pde.feature.group" version="0.0.0"/>
<unit id="org.eclipse.draw2d.feature.group" version="0.0.0"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.xpand" version="0.0.0"/>
<unit id="org.eclipse.xtend" version="0.0.0"/>
<unit id="org.eclipse.xtend.typesystem.emf" version="0.0.0"/>
<repository location="https://download.eclipse.org/releases/2019-06"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.emf.mwe2.launcher.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.10.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.18.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
	<unit id="com.google.gson" version="2.8.2.v20180104-1110"/>
	<unit id="org.antlr.runtime" version="3.2.0.v201101311130"/>
	<unit id="org.junit" version="4.12.0.v201504281640"/>
	<unit id="org.junit.jupiter.api" version="5.4.0.v20190212-2109"/>
	<unit id="org.junit.jupiter.engine" version="5.4.0.v20190212-2109"/>
	<unit id="org.junit.platform.commons" version="1.4.0.v20190212-2109"/>
	<unit id="org.junit.platform.engine" version="1.4.0.v20190212-2109"/>
	<unit id="org.junit.platform.launcher" version="1.4.0.v20190212-2109"/>
	<unit id="org.junit.platform.runner" version="1.4.0.v20190212-2109"/>
	<unit id="org.opentest4j" version="1.1.1.v20190212-2109"/>
	<unit id="org.objectweb.asm" version="7.1.0.v20190412-2143"/>
	<unit id="org.objectweb.asm.tree" version="7.1.0.v20190412-2143"/>
	<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/orbit/2019-06"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.emf.ecore.xcore" version="0.0.0"/>
<unit id="org.eclipse.emf.ecore.xcore.lib" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/emf/emf/builds/release/2.18/"/>
</location>
</locations>
</target>


Then I got the following error during the maven build, indicating some kind of version mismatch, as evidence by the NoSuchMethodError at the bottom of the following log:
[INFO] Scanning for projects...
...(snip)...
[INFO] Fetching p2.index from https://download.eclipse.org/modeling/emf/emf/builds/release/2.18/
[INFO] Fetching p2.index from https://download.eclipse.org/modeling/emf/emf/builds/release/2.18/
[INFO] Adding repository https://download.eclipse.org/modeling/emf/emf/builds/release/2.18
[INFO] Resolving dependencies of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/pom.xml
[INFO] Resolving class path of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/pom.xml
[INFO] Computing target platform for MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.ide:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ide/pom.xml
[INFO] Resolving dependencies of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.ide:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ide/pom.xml
[INFO] Resolving class path of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.ide:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ide/pom.xml
[INFO] Computing target platform for MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.ui:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ui/pom.xml
[INFO] Resolving dependencies of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.ui:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ui/pom.xml
[INFO] Resolving class path of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.ui:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ui/pom.xml
[INFO] Computing target platform for MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.feature:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.feature/pom.xml
[INFO] Resolving dependencies of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.feature:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.feature/pom.xml
[INFO] Resolving class path of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.feature:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.feature/pom.xml
[INFO] Computing target platform for MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.repository:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.repository/pom.xml
[INFO] Resolving dependencies of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.repository:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.repository/pom.xml
[INFO] Resolving class path of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.repository:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.repository/pom.xml
[INFO] Computing target platform for MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.tests:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.tests/pom.xml
[INFO] Resolving dependencies of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.tests:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.tests/pom.xml
[INFO] Resolving class path of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.tests:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.tests/pom.xml
[INFO] Computing target platform for MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.ui.tests:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ui.tests/pom.xml
[INFO] Resolving dependencies of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.ui.tests:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ui.tests/pom.xml
[INFO] Resolving class path of MavenProject: io.yaktor.dsl.domain:io.yaktor.dsl.domain.ui.tests:1.0.0-SNAPSHOT @ /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ui.tests/pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] io.yaktor.dsl.domain.as                                            [jar]
[INFO] io.yaktor.dsl.domain.parent                                        [pom]
[INFO] io.yaktor.dsl.domain                                    [eclipse-plugin]
[INFO] io.yaktor.dsl.domain.ide                                [eclipse-plugin]
[INFO] io.yaktor.dsl.domain.ui                                 [eclipse-plugin]
[INFO] io.yaktor.dsl.domain.web                                           [war]
[INFO] io.yaktor.dsl.domain.target                  [eclipse-target-definition]
[INFO] io.yaktor.dsl.domain.feature                           [eclipse-feature]
[INFO] io.yaktor.dsl.domain.repository                     [eclipse-repository]
[INFO] io.yaktor.dsl.domain.tests                         [eclipse-test-plugin]
[INFO] io.yaktor.dsl.domain.ui.tests                      [eclipse-test-plugin]
[INFO]
[INFO] ---------------< io.yaktor.dsl:io.yaktor.dsl.domain.as >----------------
[INFO] Building io.yaktor.dsl.domain.as 1.0.0-SNAPSHOT                   [1/11]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ io.yaktor.dsl.domain.as ---
[INFO] Deleting /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/target
[INFO]
[INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ io.yaktor.dsl.domain.as ---
[INFO] Source directory: /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/src-gen added.
[INFO]
[INFO] --- xtext-maven-plugin:2.17.0:generate (default) @ io.yaktor.dsl.domain.as ---
[INFO] Encoding: UTF-8
[INFO] Compiler source level: 1.8
[INFO] Compiler target level: 1.8
[INFO] Using common types.
[INFO] Collecting source models.
[INFO] Installing type provider.
[INFO] Generating stubs into /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/target/xtext-temp/stubs
[INFO] Compiling stubs located in /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/target/xtext-temp/stubs
[INFO] Installing type provider for stubs.
[INFO] Validate and generate.
[INFO] Starting validation for input: 'domain.xcore'
[INFO] Starting generator for input: 'domain.xcore'
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ io.yaktor.dsl.domain.as ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ io.yaktor.dsl.domain.as ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ io.yaktor.dsl.domain.as ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ io.yaktor.dsl.domain.as ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ io.yaktor.dsl.domain.as ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ io.yaktor.dsl.domain.as ---
[INFO] Building jar: /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/target/io.yaktor.dsl.domain.as-1.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ io.yaktor.dsl.domain.as ---
[INFO] Installing /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/target/io.yaktor.dsl.domain.as-1.0.0-SNAPSHOT.jar to /Users/matthewadams/.m2/repository/io/yaktor/dsl/io.yaktor.dsl.domain.as/1.0.0-SNAPSHOT/io.yaktor.dsl.domain.as-1.0.0-SNAPSHOT.jar
[INFO] Installing /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/pom.xml to /Users/matthewadams/.m2/repository/io/yaktor/dsl/io.yaktor.dsl.domain.as/1.0.0-SNAPSHOT/io.yaktor.dsl.domain.as-1.0.0-SNAPSHOT.pom
[INFO]
[INFO] ----------< io.yaktor.dsl.domain:io.yaktor.dsl.domain.parent >----------
[INFO] Building io.yaktor.dsl.domain.parent 1.0.0-SNAPSHOT               [2/11]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ io.yaktor.dsl.domain.parent ---
[INFO]
[INFO] --- tycho-source-plugin:1.4.0:plugin-source (plugin-source) @ io.yaktor.dsl.domain.parent ---
[INFO]
[INFO] --- tycho-source-feature-plugin:1.4.0:source-feature (source-feature) @ io.yaktor.dsl.domain.parent ---
[INFO]
[INFO] --- tycho-p2-plugin:1.4.0:p2-metadata (attach-p2-metadata) @ io.yaktor.dsl.domain.parent ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ io.yaktor.dsl.domain.parent ---
[INFO] Installing /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/pom.xml to /Users/matthewadams/.m2/repository/io/yaktor/dsl/domain/io.yaktor.dsl.domain.parent/1.0.0-SNAPSHOT/io.yaktor.dsl.domain.parent-1.0.0-SNAPSHOT.pom
[INFO]
[INFO] -------------< io.yaktor.dsl.domain:io.yaktor.dsl.domain >--------------
[INFO] Building io.yaktor.dsl.domain 1.0.0-SNAPSHOT                      [3/11]
[INFO] ---------------------------[ eclipse-plugin ]---------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ io.yaktor.dsl.domain ---
[INFO] Deleting /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/xtend-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/../io.yaktor.dsl.domain/src-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/../io.yaktor.dsl.domain.tests/src-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/../io.yaktor.dsl.domain.ide/src-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/../io.yaktor.dsl.domain.ui/src-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/../io.yaktor.dsl.domain.ui.tests/src-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/../io.yaktor.dsl.domain.web/src-gen (includes = [**/*], excludes = [])
[INFO]
[INFO] --- tycho-packaging-plugin:1.4.0:build-qualifier (default-build-qualifier) @ io.yaktor.dsl.domain ---
[INFO] The project's OSGi version is 1.0.0.201909122031
[INFO]
[INFO] --- tycho-packaging-plugin:1.4.0:validate-id (default-validate-id) @ io.yaktor.dsl.domain ---
[INFO]
[INFO] --- tycho-packaging-plugin:1.4.0:validate-version (default-validate-version) @ io.yaktor.dsl.domain ---
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (mwe2Launcher) @ io.yaktor.dsl.domain ---
Sep 12, 2019 3:31:45 PM org.eclipse.emf.mwe.utils.StandaloneSetup addProjectMapping
INFO: Registering project io.yaktor.dsl.domain.as at 'file:/Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.as/'
0    INFO  XtextGenerator     - Initializing Xtext generator
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterGeneratedEPackage
INFO: Adding generated EPackage 'org.eclipse.xtext.common.types.TypesPackage'
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project com.google.guava at 'archive:file:/Users/matthewadams/.m2/repository/com/google/guava/guava/27.1-jre/guava-27.1-jre.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/com.google.guava/21.0.0.v20170206-1425/com.google.guava-21.0.0.v20170206-1425.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project com.google.inject at 'archive:file:/Users/matthewadams/.m2/repository/com/google/inject/guice/3.0/guice-3.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/com.google.inject/3.0.0.v201605172100/com.google.inject-3.0.0.v201605172100.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project javax.inject at 'archive:file:/Users/matthewadams/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/javax.inject/1.0.0.v20091030/javax.inject-1.0.0.v20091030.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project com.ibm.icu at 'archive:file:/Users/matthewadams/.m2/repository/com/ibm/icu/icu4j/52.1/icu4j-52.1.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/com.ibm.icu/64.2.0.v20190507-1337/com.ibm.icu-64.2.0.v20190507-1337.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.xtext at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/xtext/org.eclipse.xtext/2.19.0/org.eclipse.xtext-2.19.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.xtext/2.18.0.v20190603-1042/org.eclipse.xtext-2.18.0.v20190603-1042.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.xtext.xbase at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/xtext/org.eclipse.xtext.xbase/2.19.0/org.eclipse.xtext.xbase-2.19.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.xtext.xbase/2.18.0.v20190603-1025/org.eclipse.xtext.xbase-2.18.0.v20190603-1025.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.equinox.common at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/platform/org.eclipse.equinox.common/3.10.400/org.eclipse.equinox.common-3.10.400.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.common/3.10.400.v20190516-1504/org.eclipse.equinox.common-3.10.400.v20190516-1504.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.xtext.xbase.lib at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/xtext/org.eclipse.xtext.xbase.lib/2.19.0/org.eclipse.xtext.xbase.lib-2.19.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.xtext.xbase.lib/2.18.0.v20190603-0326/org.eclipse.xtext.xbase.lib-2.18.0.v20190603-0326.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.xtext.util at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/xtext/org.eclipse.xtext.util/2.19.0/org.eclipse.xtext.util-2.19.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.xtext.util/2.18.0.v20190603-1042/org.eclipse.xtext.util-2.18.0.v20190603-1042.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.xtend.lib at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/xtend/org.eclipse.xtend.lib/2.19.0/org.eclipse.xtend.lib-2.19.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.xtend.lib/2.18.0.v20190603-0326/org.eclipse.xtend.lib-2.18.0.v20190603-0326.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.osgi at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/platform/org.eclipse.osgi/3.14.0/org.eclipse.osgi-3.14.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.osgi/3.14.0.v20190517-1309/org.eclipse.osgi-3.14.0.v20190517-1309.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.apache.commons.cli at 'archive:file:/Users/matthewadams/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.apache.commons.cli/1.2.0.v201404270220/org.apache.commons.cli-1.2.0.v201404270220.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.apache.commons.logging at 'archive:file:/Users/matthewadams/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.apache.commons.logging/1.2.0.v20180409-1502/org.apache.commons.logging-1.2.0.v20180409-1502.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.emf.codegen at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.codegen/2.11.0/org.eclipse.emf.codegen-2.11.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.codegen/2.16.0.v20190418-0907/org.eclipse.emf.codegen-2.16.0.v20190418-0907.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.emf.common at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.common/2.12.0/org.eclipse.emf.common-2.12.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.common/2.16.0.v20190528-0845/org.eclipse.emf.common-2.16.0.v20190528-0845.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.emf.codegen.ecore at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.codegen.ecore/2.12.0/org.eclipse.emf.codegen.ecore-2.12.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.codegen.ecore/2.18.0.v20190528-0725/org.eclipse.emf.codegen.ecore-2.18.0.v20190528-0725.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.emf.ecore at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.ecore/2.12.0/org.eclipse.emf.ecore-2.12.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.ecore/2.18.0.v20190528-0845/org.eclipse.emf.ecore-2.18.0.v20190528-0845.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.emf.ecore.xmi at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.ecore.xmi/2.12.0/org.eclipse.emf.ecore.xmi-2.12.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.ecore.xmi/2.16.0.v20190528-0725/org.eclipse.emf.ecore.xmi-2.16.0.v20190528-0725.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.emf.mwe2.runtime at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.mwe2.runtime/2.11.0/org.eclipse.emf.mwe2.runtime-2.11.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.mwe2.runtime/2.10.0/org.eclipse.emf.mwe2.runtime-2.10.0.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.xtext.common.types at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/xtext/org.eclipse.xtext.common.types/2.19.0/org.eclipse.xtext.common.types-2.19.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.xtext.common.types/2.18.0.v20190603-1025/org.eclipse.xtext.common.types-2.18.0.v20190603-1025.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.emf.mwe.core at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.mwe.core/1.5.0/org.eclipse.emf.mwe.core-1.5.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.mwe.core/1.4.0/org.eclipse.emf.mwe.core-1.4.0.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.emf.mwe.utils at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.mwe.utils/1.5.0/org.eclipse.emf.mwe.utils-1.5.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.mwe.utils/1.4.0/org.eclipse.emf.mwe.utils-1.4.0.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.emf.mwe2.lib at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.mwe2.lib/2.11.0/org.eclipse.emf.mwe2.lib-2.11.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.mwe2.lib/2.10.0/org.eclipse.emf.mwe2.lib-2.10.0.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.eclipse.xtend.lib.macro at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/xtend/org.eclipse.xtend.lib.macro/2.19.0/org.eclipse.xtend.lib.macro-2.19.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.xtend.lib.macro/2.18.0.v20190603-0326/org.eclipse.xtend.lib.macro-2.18.0.v20190603-0326.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup registerMapping
WARNING: Skipping conflicting project org.objectweb.asm at 'archive:file:/Users/matthewadams/.m2/repository/org/ow2/asm/asm/7.1/asm-7.1.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.objectweb.asm/7.1.0.v20190412-2143/org.objectweb.asm-7.1.0.v20190412-2143.jar!/' instead.
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup addProjectMapping
INFO: Registering project io.yaktor.dsl.domain at 'file:/Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain/'
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup addProjectMapping
INFO: Registering project io.yaktor.dsl.domain.tests at 'file:/Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.tests/'
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup addProjectMapping
INFO: Registering project io.yaktor.dsl.domain.ide at 'file:/Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ide/'
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup addProjectMapping
INFO: Registering project io.yaktor.dsl.domain.ui at 'file:/Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ui/'
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup addProjectMapping
INFO: Registering project io.yaktor.dsl.domain.ui.tests at 'file:/Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.ui.tests/'
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup addProjectMapping
INFO: Registering project io.yaktor.dsl.domain.web at 'file:/Users/matthewadams/dev/yaktor/yaktor-dsl-xtext/io.yaktor.dsl.domain.parent/io.yaktor.dsl.domain.web/'
Sep 12, 2019 3:31:46 PM org.eclipse.emf.mwe.utils.StandaloneSetup setResourceSet
INFO: Using resourceSet registry. The registered Packages will not be registered in the global EPackage.Registry.INSTANCE!
Sep 12, 2019 3:31:47 PM org.eclipse.emf.mwe.utils.GenModelHelper registerGenModel
INFO: Registered GenModel 'http://www.eclipse.org/Xtext/Xbase/XAnnotations' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
Sep 12, 2019 3:31:47 PM org.eclipse.emf.mwe.utils.GenModelHelper registerGenModel
INFO: Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xtype' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
Sep 12, 2019 3:31:47 PM org.eclipse.emf.mwe.utils.GenModelHelper registerGenModel
INFO: Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xbase' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
Sep 12, 2019 3:31:47 PM org.eclipse.emf.mwe.utils.GenModelHelper registerGenModel
INFO: Registered GenModel 'http://www.eclipse.org/xtext/common/JavaVMTypes' from 'platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel'
1374 ERROR Mwe2Launcher       - org.eclipse.emf.codegen.ecore.genmodel.GenModel.clearCache()V
java.lang.NoSuchMethodError: org.eclipse.emf.codegen.ecore.genmodel.GenModel.clearCache()V
	at org.eclipse.emf.ecore.xcore.util.XcoreJvmInferrer.inferDeepStructure(XcoreJvmInferrer.java:234)
	at org.eclipse.emf.ecore.xcore.resource.XcoreModelAssociator$2.process(XcoreModelAssociator.java:176)
	at org.eclipse.emf.ecore.xcore.resource.XcoreModelAssociator$2.process(XcoreModelAssociator.java:1)
	at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:37)
	at org.eclipse.xtext.util.OnChangeEvictingCache.execWithoutCacheClear(OnChangeEvictingCache.java:128)
	at org.eclipse.emf.ecore.xcore.resource.XcoreModelAssociator.installDerivedState(XcoreModelAssociator.java:171)
	at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:243)
	at org.eclipse.xtext.xbase.resource.BatchLinkableResource.getContents(BatchLinkableResource.java:148)
	at org.eclipse.xtext.xtext.generator.XtextGeneratorResourceSetInitializer.each(XtextGeneratorResourceSetInitializer.java:169)
	at org.eclipse.xtext.xtext.generator.XtextGeneratorResourceSetInitializer.registerGenModels(XtextGeneratorResourceSetInitializer.java:155)
	at org.eclipse.xtext.xtext.generator.XtextGeneratorResourceSetInitializer.initialize(XtextGeneratorResourceSetInitializer.java:44)
	at org.eclipse.xtext.xtext.generator.XtextGeneratorLanguage.initialize(XtextGeneratorLanguage.java:218)
	at org.eclipse.xtext.xtext.generator.StandardLanguage.initialize(StandardLanguage.java:189)
	at org.eclipse.xtext.xtext.generator.XtextGenerator.initialize(XtextGenerator.java:185)
	at org.eclipse.xtext.xtext.generator.XtextGenerator.checkConfigurationInternal(XtextGenerator.java:139)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2.checkConfiguration(AbstractWorkflowComponent2.java:22)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.preInvoke(Mwe2Bridge.java:68)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.preInvoke(AbstractWorkflowComponent.java:207)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.preInvoke(AbstractCompositeWorkflowComponent.java:30)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:78)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:36)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
	at java.lang.Thread.run(Thread.java:748)


What did I miss or what am I doing wrong?

Thanks in advance,
Matthew
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814545 is a reply to message #1814539] Fri, 13 September 2019 04:09 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
Something is fishy. I see this line:
Skipping conflicting project org.eclipse.emf.codegen.ecore at 'archive:file:/Users/matthewadams/.m2/repository/org/eclipse/emf/org.eclipse.emf.codegen.ecore/2.12.0/org.eclipse.emf.codegen.ecore-2.12.0.jar!/' and using 'archive:file:/Users/matthewadams/.m2/repository/p2/osgi/bundle/org.eclipse.emf.codegen.ecore/2.18.0.v20190528-0725/org.eclipse.emf.codegen.ecore-2.18.0.v20190528-0725.jar!/' instead.
But the method it says is missing is one inherited from GenBase which is marked like this:
  /**
   * @since 2.15
   */
  void clearCache();
This makes me think that while the log line claims it's using version 2.18, the error message about the missing method suggests it's in actual fact using version 2.12 where that method would indeed be missing.

Also the name of the jar, org.eclipse.emf.codegen.ecore-2.12.0.jar is kind of fishy because that is not a jar name that we'd generally expect to find in any p2 repository, but rather a jar that one could find at Maven central. But then all the conflicting messages have such simple jar names on the left side, so maybe that's a red herring.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814546 is a reply to message #1814545] Fri, 13 September 2019 04:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Xtext uses emf 2.12 on maven side
So I guess you need to override that for all
EMF plug-ins and not only a part of them


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 13 September 2019 04:33]

Report message to a moderator

Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814549 is a reply to message #1814546] Fri, 13 September 2019 04:57 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
Christian,

Note that I now publish new versions of EMF's core plugins (all the ones Xtext needs) for each new release (thanks for Karsten Thoms):

https://oss.sonatype.org/#nexus-search;quick~codegen.ecore
https://oss.sonatype.org/#nexus-search;quick~ecore.xcore
https://oss.sonatype.org/#nexus-search;quick~ecore.codegen.xtext

So you might/could consider using a more recent version...



Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814551 is a reply to message #1814549] Fri, 13 September 2019 05:58 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
@ed

If were sure this would work perfectly fine with older eclipse versions (back to oxygen)
Then https://github.com/eclipse/xtext/issues/1282
Would be long done.

Currently I have nobody that could support we with that

I am also not sure if forcing the new
EMf Version on older eclipses
Or setting the Genmodel/ runtime version to the one of oxygen is the right way to go


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 13 September 2019 06:01]

Report message to a moderator

Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814552 is a reply to message #1814551] Fri, 13 September 2019 07:00 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
Note that EMF actually does semi-regular builds that run all the tests against all platform versions as far back as Helios so it's currently Xtext that has the narrower bounds than does EMF itself. This is why I regularly get grumpy about deprecated APIs and even more so about deleted APIs in the platform. I desire to given consumers the broadest range of possibilities.

Moreover, note that by tested, I mean all normal tests run, including org.eclipse.emf.test.codegen.ecore.xtext and org.eclipse.emf.test.ecore.xcore, both of which test the Xtext integration. So there really are tests that verify that EMF actually works within the specified bounds in the MANIFEST.MFs, including even with older versions of Xtext, e.g., 2.15, that are needed for compatibility with such old target platforms due to the more restricted bounds in newer versions of Xtext.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814553 is a reply to message #1814552] Fri, 13 September 2019 07:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
So this means setting the runtime version to the one of oxygen for code generation in the genmodels should be fine ?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814556 is a reply to message #1814553] Fri, 13 September 2019 08:17 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
Yes. And of course GenModels themselves can specify the Eclipse target runtime version (which has no impact on the model code, only the editor code) and the EMF target runtime, so even the latest GenModel plugin can and will generate code that is compatible with very very old versions of Eclipse (and very very old versions of Java) if such things have been specified as desired.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814586 is a reply to message #1814556] Fri, 13 September 2019 15:03 Go to previous messageGo to next message
Matthew T. Adams is currently offline Matthew T. AdamsFriend
Messages: 58
Registered: July 2009
Location: Austin, TX
Member

Well, I'm glad this spurred a discussion here and in https://github.com/eclipse/xtext/issues/1282. Not sure why things should be different on the maven side from the eclipse side. Personally, I'd strive to ensure that both maven & eclipse were using the exact same artifacts to ensure consistent builds. I do like that the xtext-dev-bom uses exact versions, a practice that I employ & encourage others to.

In any event, what do you recommend I do right now? I read Christian's recommendation of overriding certain maven artifacts for all EMF plugins in my maven build. Exactly which maven artifacts, and, for each artifact, which version would be preferred? Whatever the latest version is?

Thanks again for your help, folks. :)
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814587 is a reply to message #1814586] Fri, 13 September 2019 15:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
In the exec section where you run the workflow
Specify all maven artifacts for Ecore emf codegen and Xcore stuff in the latest version


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814588 is a reply to message #1814586] Fri, 13 September 2019 15:13 Go to previous messageGo to next message
Matthew T. Adams is currently offline Matthew T. AdamsFriend
Messages: 58
Registered: July 2009
Location: Austin, TX
Member

Further, it looks like org.eclipse.emf:org.eclipse.emf.ecore.xcore.lib:1.5.0 is not in maven central: https://search.maven.org/search?q=a:org.eclipse.emf.ecore.xcore.lib shows 1.4.0 as the latest version, which doesn't jibe with https://download.eclipse.org/modeling/emf/emf/builds/release/2.19, AFAICT. Can y'all publish 1.5.0 to maven central? Until that's done, I'm seeing an error inside xtext as per the image attached to this message.

Error text is:
Missing artifact org.eclipse.emf:org.eclipse.emf.ecore.xcore.lib:jar:1.5.0 pom.xml /io.yaktor.dsl.domain.tests line 18 Maven Dependency Problem

[Updated on: Fri, 13 September 2019 15:18]

Report message to a moderator

Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814590 is a reply to message #1814587] Fri, 13 September 2019 15:21 Go to previous messageGo to next message
Matthew T. Adams is currently offline Matthew T. AdamsFriend
Messages: 58
Registered: July 2009
Location: Austin, TX
Member

Hmmm...I wonder if I could override it in the xtext-dev-bom...that'd be nice, since it'd be only in one place... I'll give that a try & report back, either way.
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814591 is a reply to message #1814590] Fri, 13 September 2019 15:34 Go to previous messageGo to next message
Matthew T. Adams is currently offline Matthew T. AdamsFriend
Messages: 58
Registered: July 2009
Location: Austin, TX
Member

FYI, reporting missing org.eclipse.emf:org.eclipse.emf.ecore.xcore.lib:jar:1.5.0 from maven central @ https://bugs.eclipse.org/bugs/show_bug.cgi?id=551060
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814596 is a reply to message #1814591] Fri, 13 September 2019 17:12 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
As I mentioned on the Bugzilla, there is no such version of xcore.lib. The version numbers of each bundle are spelled out on the release page's update site index so the latest version of xcore.lib is 1.4 not 1.5: https://download.eclipse.org/modeling/emf/emf/builds/release/2.19/index.html

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Build in eclipse ok, failing via maven with NoSuchMethodError [message #1814599 is a reply to message #1814596] Fri, 13 September 2019 17:52 Go to previous message
Matthew T. Adams is currently offline Matthew T. AdamsFriend
Messages: 58
Registered: July 2009
Location: Austin, TX
Member

Oops, you're right, Ed. My bad. I didn't realize the list of specific versions was present lower on the page.
Previous Topic:Xtext & Eclipse platform
Next Topic:Maven code generation
Goto Forum:
  


Current Time: Tue Apr 23 08:05:24 GMT 2024

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

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

Back to the top