Aura doesn't build locally.
Closed this issue · 1 comments
PiotrJustyna commented
Hi all,
I've just pulled the latest code and unfortunately getting the error below when I run the following command:
mvn -e -DskipUnitTests clean install
(DskipUnitTests
as there is a separate issue with unit tests...). Am I doing something wrong?
[INFO] 34 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Aura Framework 0.6000-SNAPSHOT:
[INFO]
[INFO] Aura Framework ..................................... SUCCESS [ 6.859 s]
[INFO] aura-interfaces .................................... SUCCESS [ 2.571 s]
[INFO] aura-spring ........................................ SUCCESS [ 0.802 s]
[INFO] aura-util .......................................... SUCCESS [ 5.733 s]
[INFO] aura ............................................... FAILURE [ 5.416 s]
[INFO] aura-impl-expression ............................... SKIPPED
[INFO] aura-impl .......................................... SKIPPED
[INFO] aura-tools ......................................... SKIPPED
[INFO] aura-components .................................... SKIPPED
[INFO] aura-modules ....................................... SKIPPED
[INFO] aura-resources ..................................... SKIPPED
[INFO] aura-integration-test .............................. SKIPPED
[INFO] aura-jetty ......................................... SKIPPED
[INFO] archetype for Aura-based "hello, world" ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.814 s
[INFO] Finished at: 2018-12-18T12:53:15Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project aura: Compilation failure: Compilation failure:
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\service\ModulesCompilerService.java:[22,755] The import org.lwc cannot be resolved
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\service\ModulesCompilerService.java:[23,784] The import org.lwc cannot be resolved
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\service\ModulesCompilerService.java:[31,1096] BundleType cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\service\ModulesCompilerService.java:[32,1212] BundleType cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\service\ModulesCompilerService.java:[33,1366] BundleType cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\service\ModulesCompilerService.java:[33,1432] OutputConfig cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\def\module\ModuleDef.java:[26,1032] The import org.lwc cannot be resolved
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\def\module\ModuleDef.java:[27,1070] The import org.lwc cannot be resolved
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\def\module\ModuleDef.java:[28,1106] The import org.lwc cannot be resolved
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\def\module\ModuleDef.java:[69,2217] Reference cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\def\module\ModuleDef.java:[75,2347] Reference cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\def\module\ModuleDef.java:[119,3645] TemplateModuleDependencies cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\def\module\ModuleDef.java:[153,4879] ModuleExport cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[19,711] The import org.lwc cannot be resolved
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[20,742] The import org.lwc cannot be resolved
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[21,782] The import org.lwc cannot be resolved
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[35,1158] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[36,1210] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[37,1259] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[39,1356] CompilerReport cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[45,1553] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[46,1600] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[47,1644] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[56,2011] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[57,2058] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[58,2102] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[60,2189] CompilerReport cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[64,2334] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[65,2384] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[66,2428] ClassMember cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[68,2516] CompilerReport cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[77,2891] DecoratorParameterValue cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[84,3129] DecoratorParameterValue cannot be resolved to a type
[ERROR] C:\Users\piotr_justyna\Documents\aura\aura\src\main\java\org\auraframework\modules\ModulesCompilerData.java:[89,3312] DecoratorParameterValue cannot be resolved to a type
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project aura: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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.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.compiler.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1215)
at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:188)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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.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]
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :aura
PiotrJustyna commented
This probably has something to do with my OS (windows) as the code works with docker, linux containers (albeit with no tests, see #177). My docker setup:
dockerfile:
FROM maven:3.6.0-jdk-10-slim
RUN mkdir --parents /usr/src/app
ADD aura /usr/src/app
WORKDIR /usr/src/app
RUN mvn -DskipUnitTests clean install
image command:
docker build -t my-aura:0.1 .