The build order on the command line build seems to be wrong:

[INFO] --- spoofax-maven-plugin:2.0.0-SNAPSHOT:pre-compile (default-pre-compile) @ relations ---
[INFO] > Generate sources
[INFO] > Compile grammar to parse table
[INFO] > Make grammar permissive for error-recovery parsing.
[INFO] > Pack SDF modules
[INFO] Execute pack-sdf -i /Users/daco/relations-core/relations/src-gen/syntax/Relations.sdf -o /Users/daco/relations-core/relations/include/Relations.def -I /Users/daco/relations-core/relations -I /Users/daco/relations-core/relations/syntax -I /Users/daco/relations-core/relations/lib -I /Users/daco/relations-core/relations/src-gen
[INFO] pack-sdf: error: file /Users/daco/relations-core/relations/src-gen/syntax/Relations.sdf does not exist

Within Eclipse it is fine, because 21:23 | INFO | o.m.c.build.Builder - Building 8 sources, 0 includes of language impl. org.metaborg:org.metaborg.meta.lang.template:2.0.0-SNAPSHOT gets run automatically before a build.

I can trigger the same error inside Eclipse by closing it, running mvn clean on command line, opening eclipse and triggering the build without doing a project clean.

21:27 | INFO  | c.v.i.DefaultFileSystemManager - Using "/var/folders/c1/zhg5ddcn1rld0gvvtdbxfb700000gn/T/vfs_cache" as temporary files store.
21:27 | INFO  | c.v.i.DefaultFileSystemManager - Using "/var/folders/c1/zhg5ddcn1rld0gvvtdbxfb700000gn/T/vfs_cache" as temporary files store.
21:27 | INFO  | s.e.m.b.GenerateSourcesBuilder - Generating sources for language project eclipse:///relations
21:27 | INFO  | o.m.c.build.Builder            - Building eclipse:///relations
21:27 | INFO  | o.m.c.build.Builder            - Building 9 sources, 0 includes of language impl. org.metaborg:org.metaborg.meta.lang.esv:2.0.0-SNAPSHOT
21:27 | INFO  | o.m.s.e.m.b.PreJavaBuilder     - Building language project eclipse:///relations
21:27 | INFO  | Build log                      - > Generate sources
21:27 | INFO  | Build log                      - > Compile grammar to parse table
21:27 | INFO  | Build log                      - > Make grammar permissive for error-recovery parsing.
21:27 | INFO  | Build log                      - > Pack SDF modules
21:27 | INFO  | Build log                      - Execute pack-sdf -i /Users/daco/relations-core/relations/src-gen/syntax/Relations.sdf -o /Users/daco/relations-core/relations/include/Relations.def -I /Users/daco/relations-core/relations/src-gen/syntax -I /Users/daco/relations-core/relations -I /Users/daco/relations-core/relations/syntax -I /Users/daco/relations-core/relations/lib -I /Users/daco/relations-core/relations/src-gen
21:27 | INFO  | stderr                         - pack-sdf: warning: directory specified with -I does not exist: /Users/daco/relations-core/relations/src-gen/syntax
21:27 | INFO  | stderr                         - pack-sdf: error: file /Users/daco/relations-core/relations/src-gen/syntax/Relations.sdf does not exist

Full maven stacktrace for mvn clean verify:

[INFO] Scanning for projects...
[WARNING] Could not transfer metadata org.metaborg:parent:2.0.0-SNAPSHOT/maven-metadata.xml from/to eclipse-mars (http://eclipse.mirror.triple-it.nl/releases/mars/): Cannot access http://eclipse.mirror.triple-it.nl/releases/mars/ with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] Failure to transfer org.metaborg:parent:2.0.0-SNAPSHOT/maven-metadata.xml from http://eclipse.mirror.triple-it.nl/releases/mars/ was cached in the local repository, resolution will not be reattempted until the update interval of eclipse-mars has elapsed or updates are forced. Original error: Could not transfer metadata org.metaborg:parent:2.0.0-SNAPSHOT/maven-metadata.xml from/to eclipse-mars (http://eclipse.mirror.triple-it.nl/releases/mars/): Cannot access http://eclipse.mirror.triple-it.nl/releases/mars/ with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[WARNING] Failure to transfer org.metaborg:parent:2.0.0-SNAPSHOT/maven-metadata.xml from http://eclipse.mirror.triple-it.nl/releases/mars/ was cached in the local repository, resolution will not be reattempted until the update interval of eclipse-mars has elapsed or updates are forced. Original error: Could not transfer metadata org.metaborg:parent:2.0.0-SNAPSHOT/maven-metadata.xml from/to eclipse-mars (http://eclipse.mirror.triple-it.nl/releases/mars/): Cannot access http://eclipse.mirror.triple-it.nl/releases/mars/ with type p2 using the available connector factories: BasicRepositoryConnectorFactory
[INFO] Computing target platform for MavenProject: org.metaborg:relations.eclipse:0.4.0-SNAPSHOT @ /Users/daco/relations-core/relations.eclipse/pom.xml
[INFO] Adding repository http://download.spoofax.org/update/nightly
[INFO] Fetching p2.index from http://eclipse.mirror.triple-it.nl/releases/mars/ (0B of 128B at 0B/s)
[INFO] Adding repository http://eclipse.mirror.triple-it.nl/releases/mars
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/mars/ (0B at 0B/s)
[INFO] Fetching p2.index from http://eclipse.mirror.triple-it.nl/releases/mars/201506241002/ (0B of 142B at 0B/s)
[INFO] Fetching p2.index from http://eclipse.mirror.triple-it.nl/releases/mars/201510021000/ (0B of 142B at 0B/s)
[INFO] Fetching p2.index from http://eclipse.mirror.triple-it.nl/releases/mars/201602261000/ (0B of 142B at 0B/s)
[INFO] Resolving dependencies of MavenProject: org.metaborg:relations.eclipse:0.4.0-SNAPSHOT @ /Users/daco/relations-core/relations.eclipse/pom.xml
[INFO] Resolving class path of MavenProject: org.metaborg:relations.eclipse:0.4.0-SNAPSHOT @ /Users/daco/relations-core/relations.eclipse/pom.xml
[INFO] Computing target platform for MavenProject: org.metaborg:relations.eclipse.feature:0.4.0-SNAPSHOT @ /Users/daco/relations-core/relations.eclipse.feature/pom.xml
[INFO] Resolving dependencies of MavenProject: org.metaborg:relations.eclipse.feature:0.4.0-SNAPSHOT @ /Users/daco/relations-core/relations.eclipse.feature/pom.xml
[INFO] Resolving class path of MavenProject: org.metaborg:relations.eclipse.feature:0.4.0-SNAPSHOT @ /Users/daco/relations-core/relations.eclipse.feature/pom.xml
[INFO] Computing target platform for MavenProject: org.metaborg:relations.eclipse.updatesite:0.4.0-SNAPSHOT @ /Users/daco/relations-core/relations.eclipse.updatesite/pom.xml
[INFO] Resolving dependencies of MavenProject: org.metaborg:relations.eclipse.updatesite:0.4.0-SNAPSHOT @ /Users/daco/relations-core/relations.eclipse.updatesite/pom.xml
[INFO] Resolving class path of MavenProject: org.metaborg:relations.eclipse.updatesite:0.4.0-SNAPSHOT @ /Users/daco/relations-core/relations.eclipse.updatesite/pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Relations
[INFO] relations.eclipse
[INFO] relations.eclipse.feature
[INFO] relations.eclipse.updatesite
[INFO] relations.build
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Relations 0.4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- spoofax-maven-plugin:2.0.0-SNAPSHOT:clean (default-clean) @ relations ---
[INFO] Initialising Spoofax core
[INFO] Using "/var/folders/c1/zhg5ddcn1rld0gvvtdbxfb700000gn/T/vfs_cache" as temporary files store.
[INFO] Collecting language dependencies
[INFO] Loading language components from dependencies
[INFO] Loaded language comp. org.metaborg:org.metaborg.meta.lang.nabl:2.0.0-SNAPSHOT@zip:file:///Users/daco/.m2/repository/org/metaborg/org.metaborg.meta.lang.nabl/2.0.0-SNAPSHOT/org.metaborg.meta.lang.nabl-2.0.0-SNAPSHOT.spoofax-language!/
[INFO] Loaded language comp. org.metaborg:org.metaborg.meta.lib.analysis:2.0.0-SNAPSHOT@zip:file:///Users/daco/.m2/repository/org/metaborg/org.metaborg.meta.lib.analysis/2.0.0-SNAPSHOT/org.metaborg.meta.lib.analysis-2.0.0-SNAPSHOT.spoofax-language!/
[INFO] Loaded language comp. org.metaborg:org.metaborg.meta.lang.esv:2.0.0-SNAPSHOT@zip:file:///Users/daco/.m2/repository/org/metaborg/org.metaborg.meta.lang.esv/2.0.0-SNAPSHOT/org.metaborg.meta.lang.esv-2.0.0-SNAPSHOT.spoofax-language!/
[INFO] Loaded language comp. org.metaborg:org.metaborg.meta.lang.template:2.0.0-SNAPSHOT@zip:file:///Users/daco/.m2/repository/org/metaborg/org.metaborg.meta.lang.template/2.0.0-SNAPSHOT/org.metaborg.meta.lang.template-2.0.0-SNAPSHOT.spoofax-language!/
[INFO] Loaded language comp. org.metaborg:org.metaborg.meta.lang.ts:2.0.0-SNAPSHOT@zip:file:///Users/daco/.m2/repository/org/metaborg/org.metaborg.meta.lang.ts/2.0.0-SNAPSHOT/org.metaborg.meta.lang.ts-2.0.0-SNAPSHOT.spoofax-language!/
[INFO] Loading dialects
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ relations ---
[INFO] Deleting /Users/daco/relations-core/relations/target
[INFO] 
[INFO] --- spoofax-maven-plugin:2.0.0-SNAPSHOT:initialize (default-initialize) @ relations ---
[INFO] 
[INFO] --- spoofax-maven-plugin:2.0.0-SNAPSHOT:generate-sources (default-generate-sources) @ relations ---
[INFO] Generating Spoofax sources
[INFO] 
[INFO] --- spoofax-maven-plugin:2.0.0-SNAPSHOT:pre-compile (default-pre-compile) @ relations ---
[INFO] > Generate sources
[INFO] > Compile grammar to parse table
[INFO] > Make grammar permissive for error-recovery parsing.
[INFO] > Pack SDF modules
[INFO] Execute pack-sdf -i /Users/daco/relations-core/relations/src-gen/syntax/Relations.sdf -o /Users/daco/relations-core/relations/include/Relations.def -I /Users/daco/relations-core/relations -I /Users/daco/relations-core/relations/syntax -I /Users/daco/relations-core/relations/lib -I /Users/daco/relations-core/relations/src-gen
[INFO] pack-sdf: error: file /Users/daco/relations-core/relations/src-gen/syntax/Relations.sdf does not exist
[INFO] 
[ERROR] Required builder failed
build.pluto.builder.RequiredBuilderFailed: Required builder failed. Error occurred in build step "Pack SDF modules": java.lang.Error: Builder failed
	at build.pluto.builder.RequiredBuilderFailed.getCause(RequiredBuilderFailed.java:37)
	at org.metaborg.spoofax.meta.core.pluto.SpoofaxReporting.canceledBuilderRequiredBuilderFailed(SpoofaxReporting.java:65)
	at build.pluto.builder.BuildManager.executeBuilder(BuildManager.java:103)
	at build.pluto.builder.BuildManager.require(BuildManager.java:323)
	at build.pluto.builder.Builder.requireBuild(Builder.java:214)
	at build.pluto.builder.Builder.requireBuild(Builder.java:166)
	at build.pluto.builder.Builder.requireBuild(Builder.java:191)
	at org.metaborg.spoofax.meta.core.pluto.build.main.GenerateSourcesBuilder.sdf2Table(GenerateSourcesBuilder.java:260)
	at org.metaborg.spoofax.meta.core.pluto.build.main.GenerateSourcesBuilder.build(GenerateSourcesBuilder.java:199)
	at org.metaborg.spoofax.meta.core.pluto.build.main.GenerateSourcesBuilder.build(GenerateSourcesBuilder.java:1)
	at build.pluto.builder.Builder.triggerBuild(Builder.java:133)
	at build.pluto.builder.BuildManager.executeBuilder(BuildManager.java:90)
	at build.pluto.builder.BuildManager.require(BuildManager.java:323)
	at build.pluto.builder.BuildManager.requireInitially(BuildManager.java:250)
	at build.pluto.builder.BuildManagers.build(BuildManagers.java:62)
	at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.plutoBuild(LanguageSpecBuilder.java:248)
	at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.compilePreJava(LanguageSpecBuilder.java:130)
	at org.metaborg.spoofax.maven.plugin.mojo.PreCompileMojo.execute(PreCompileMojo.java:30)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	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:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	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)
[ERROR] Required builder failed
build.pluto.builder.RequiredBuilderFailed: Required builder failed. Error occurred in build step "Pack SDF modules": java.lang.Error: Builder failed
	at build.pluto.builder.RequiredBuilderFailed.getCause(RequiredBuilderFailed.java:37)
	at org.metaborg.spoofax.meta.core.pluto.SpoofaxReporting.canceledBuilderRequiredBuilderFailed(SpoofaxReporting.java:65)
	at build.pluto.builder.BuildManager.executeBuilder(BuildManager.java:103)
	at build.pluto.builder.BuildManager.require(BuildManager.java:323)
	at build.pluto.builder.BuildManager.requireInitially(BuildManager.java:250)
	at build.pluto.builder.BuildManagers.build(BuildManagers.java:62)
	at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.plutoBuild(LanguageSpecBuilder.java:248)
	at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.compilePreJava(LanguageSpecBuilder.java:130)
	at org.metaborg.spoofax.maven.plugin.mojo.PreCompileMojo.execute(PreCompileMojo.java:30)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	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:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	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: build.pluto.builder.RequiredBuilderFailed: Required builder failed. Error occurred in build step "Pack SDF modules": java.lang.Error: Builder failed
	at build.pluto.builder.RequiredBuilderFailed.getCause(RequiredBuilderFailed.java:37)
	at java.lang.Throwable.printStackTrace(Throwable.java:665)
	at java.lang.Throwable.printStackTrace(Throwable.java:643)
	at org.slf4j.impl.SimpleLogger.write(SimpleLogger.java:383)
	at org.slf4j.impl.SimpleLogger.log(SimpleLogger.java:376)
	at org.slf4j.impl.SimpleLogger.error(SimpleLogger.java:651)
	at org.metaborg.util.log.MetaborgLogger.error(MetaborgLogger.java:49)
	... 30 more
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Relations .......................................... FAILURE [ 30.175 s]
[INFO] relations.eclipse .................................. SKIPPED
[INFO] relations.eclipse.feature .......................... SKIPPED
[INFO] relations.eclipse.updatesite ....................... SKIPPED
[INFO] relations.build .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.408 s
[INFO] Finished at: 2016-03-01T21:20:34+01:00
[INFO] Final Memory: 96M/625M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.metaborg:spoofax-maven-plugin:2.0.0-SNAPSHOT:pre-compile (default-pre-compile) on project relations: Rebuilding failed. Required builder failed. Error occurred in build step "Pack SDF modules": java.lang.Error: Builder failed -> [Help 1]
[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/MojoFailureException
Submitted by Daco Harkes on 1 March 2016 at 21:28

On 3 March 2016 at 15:57 Gabriël Konat commented:

The issue was outdated configuration, upgrading to the new metaborg.yaml format fixed it.


On 3 March 2016 at 15:57 Gabriël Konat closed this issue.

Log in to post comments