When building a language using Maven, the following error appears:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.20.0:package-feature (default-package-feature) on project oracle.sparql.builder.eclipse.feature: Execution default-package-feature of goal org.eclipse.tycho:tycho-packaging-plugin:0.20.0:package-feature failed: Could not resolve feature org.strategoxt.imp_1.4.1; Path to dependency: -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.20.0:package-feature (default-package-feature) on project oracle.sparql.builder.eclipse.feature: Execution default-package-feature of goal org.eclipse.tycho:tycho-packaging-plugin:0.20.0:package-feature failed: Could not resolve feature org.strategoxt.imp_1.4.1; Path to dependency:

	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-package-feature of goal org.eclipse.tycho:tycho-packaging-plugin:0.20.0:package-feature failed: Could not resolve feature org.strategoxt.imp_1.4.1; Path to dependency:

	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	... 20 more
Caused by: java.lang.RuntimeException: Could not resolve feature org.strategoxt.imp_1.4.1; Path to dependency:

	at org.eclipse.tycho.core.ArtifactDependencyVisitor.newRuntimeException(ArtifactDependencyVisitor.java:42)
	at org.eclipse.tycho.core.ArtifactDependencyVisitor.missingFeature(ArtifactDependencyVisitor.java:29)
	at org.eclipse.tycho.core.osgitools.AbstractArtifactDependencyWalker.traverseFeature(AbstractArtifactDependencyWalker.java:178)
	at org.eclipse.tycho.core.osgitools.AbstractArtifactDependencyWalker.traverseFeature(AbstractArtifactDependencyWalker.java:89)
	at org.eclipse.tycho.core.osgitools.AbstractArtifactDependencyWalker.traverseFeature(AbstractArtifactDependencyWalker.java:62)
	at org.eclipse.tycho.packaging.FeatureXmlTransformer.transform(FeatureXmlTransformer.java:47)
	at org.eclipse.tycho.packaging.PackageFeatureMojo.expandVersionQualifiers(PackageFeatureMojo.java:237)
	at org.eclipse.tycho.packaging.PackageFeatureMojo.execute(PackageFeatureMojo.java:120)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	... 21 more

I tried to re-build via the command line after purging ~/.m2/repository but got the same error.

Also, when installing Spoofax 1.4.1 in Eclipse and creating a new Spoofax language (Entity Language), a popup appears saying java.lang.NoClassDefFoundError: org/strategoxt/imp/runtime/stratego/StrategoConsole. No files are generated.

In the error log I found the following stack trace:

java.lang.NoClassDefFoundError: org/strategoxt/imp/runtime/stratego/StrategoConsole
		at org.strategoxt.imp.runtime.stratego.EditorIOAgent.getWriter(EditorIOAgent.java:85)
		at org.spoofax.interpreter.library.ssl.SSL_fputs.call(SSL_fputs.java:37)
		at org.strategoxt.lang.Context.invokePrimitive(Context.java:227)
		at org.strategoxt.lang.Context.invokePrimitive(Context.java:216)
		at org.strategoxt.stratego_lib.fputs_0_0.invoke(fputs_0_0.java:32)
		at org.strategoxt.stratego_lib.lifted14992.invoke(lifted14992.java:39)
		at org.strategoxt.lang.SRTS_all.map(SRTS_all.java:60)
		at org.strategoxt.lang.SRTS_all.invoke(SRTS_all.java:21)
		at org.strategoxt.lang.compat.override.performance_tweaks.map_1_0_override.invoke(map_1_0_override.java:29)
		at org.strategoxt.stratego_lib.fprint_0_0.invoke(fprint_0_0.java:39)
		at org.strategoxt.stratego_lib.fprintnl_0_0.invoke(fprintnl_0_0.java:24)
		at org.strategoxt.stratego_lib.debug_0_0.invoke(debug_0_0.java:27)
		at org.strategoxt.imp.generator.lifted9.invoke(lifted9.java:40)
		at org.strategoxt.stratego_lib.if_verbose_1_1.invoke(if_verbose_1_1.java:40)
		at org.strategoxt.stratego_lib.if_verbose2_1_0.invoke(if_verbose2_1_0.java:25)
		at org.strategoxt.imp.generator.verbose_msg_0_0.invoke(verbose_msg_0_0.java:30)
		at org.strategoxt.imp.generator.lifted2.invoke(lifted2.java:44)
		at org.strategoxt.stratego_lib.if_verbose_1_1.invoke(if_verbose_1_1.java:40)
		at org.strategoxt.stratego_lib.if_verbose2_1_0.invoke(if_verbose2_1_0.java:25)
		at org.strategoxt.imp.generator.verbose_msg_2_0.invoke(verbose_msg_2_0.java:35)
		at org.strategoxt.imp.generator.print_filename_0_2.invoke(print_filename_0_2.java:59)
		at org.strategoxt.imp.generator.output_text_file_0_2.invoke(output_text_file_0_2.java:30)
		at org.strategoxt.imp.generator.create_grammar_main_0_0.invoke(create_grammar_main_0_0.java:155)
		at org.strategoxt.imp.generator.create_grammar_0_0.invoke(create_grammar_0_0.java:30)
		at org.strategoxt.imp.generator.sdf2imp_0_0.invoke(sdf2imp_0_0.java:243)
		at org.strategoxt.imp.generator.lifted319.invoke(lifted319.java:34)
		at org.strategoxt.stratego_lib.option_wrap_5_0.invoke(option_wrap_5_0.java:34)
		at org.strategoxt.stratego_lib.option_wrap_4_0.invoke(option_wrap_4_0.java:23)
		at org.strategoxt.stratego_lib.option_wrap_2_0.invoke(option_wrap_2_0.java:23)
		at org.strategoxt.imp.generator.main_sdf2imp_0_0.invoke(main_sdf2imp_0_0.java:33)
		at org.strategoxt.lang.Context.invokeStrategyCLI(Context.java:180)
		at org.strategoxt.imp.generator.sdf2imp.mainNoExit(sdf2imp.java:7116)
		at org.strategoxt.imp.metatooling.wizards.NewEditorWizard.doFinish(NewEditorWizard.java:164)
		at org.strategoxt.imp.metatooling.wizards.NewEditorWizard.access$0(NewEditorWizard.java:118)
		at org.strategoxt.imp.metatooling.wizards.NewEditorWizard$1.run(NewEditorWizard.java:85)
		at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

I’m not sure if these two errors (command line & Eclipse) are related.

And also not sure how long it has been broken, but at least since 24 December 2015 since that was when the error first appeared during our automated build. It could be that it got broken earlier but that our automated build was using a cached version of 1.4.1.

Submitted by Oskar van Rest on 6 January 2016 at 19:30

On 9 January 2016 at 00:03 Oskar van Rest commented:

Both problems are solved.

The one on the command line was my bad… oops :s
I thought I just needed http://artifacts.metaborg.org/content/repositories/releases/ to pull 1.4.1 but in addition it needs http://download.spoofax.org/update/release/1.4.1/ which I had pointing to http://download.spoofax.org/update/stable but that was bumped to 1.5.0.

I’m not sure about the other problem but it seems like Spoofax 1.4.1 does not run on Eclipse Mars.1 (4.5.1) but only on Eclipse Mars (4.5.0). But then I tried Spoofax 1.5.0 and it runs on both Mars.1 and Mars. Would need to verify on another machine though.

Closing this issue.


On 9 January 2016 at 00:03 Oskar van Rest closed this issue.

Log in to post comments