I tried to deploy spring-boot web-application and vue-cli as frontend.
Spring hasn't problems.
There is problem with node build/build.js.
link on github - https://github.com/stepan09/courseworkSV
There is my build log.
[INFO] Running 'npm install' in /tmp/build_31b7d0935e35bcd3ec6a6bff51ee1bad/sport-app
[WARNING] npm WARN bootstrap#4.1.1 requires a peer of jquery#1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
[ERROR]
[INFO] up to date in 2.729s
[INFO]
[INFO] --- frontend-maven-plugin:1.6:npm (npm run build) # sport-app ---
[INFO] Running 'npm run build' in /tmp/build_31b7d0935e35bcd3ec6a6bff51ee1bad/sport-app
[INFO]
[INFO] > sport-app#1.0.0 build /tmp/build_31b7d0935e35bcd3ec6a6bff51ee1bad/sport-app
[INFO] > node build/build.js
[INFO]
[ERROR] internal/modules/cjs/loader.js:550
[ERROR] throw err;
[ERROR] ^
[ERROR]
[ERROR] Error: Cannot find module 'chalk'
[ERROR] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
[ERROR] at Function.Module._load (internal/modules/cjs/loader.js:475:25)
[ERROR] at Module.require (internal/modules/cjs/loader.js:598:17)
[ERROR] at require (internal/modules/cjs/helpers.js:11:18)
[ERROR] at Object.<anonymous> (/tmp/build_31b7d0935e35bcd3ec6a6bff51ee1bad/sport-app/build/check-versions.js:2:15)
[ERROR] at Module._compile (internal/modules/cjs/loader.js:654:30)
[ERROR] at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
[ERROR] at Module.load (internal/modules/cjs/loader.js:566:32)
[ERROR] at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
[ERROR] at Function.Module._load (internal/modules/cjs/loader.js:498:3)
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! sport-app#1.0.0 build: `node build/build.js`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the sport-app#1.0.0 build script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR! /app/.npm/_logs/2018-05-30T18_07_35_898Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] coursework ......................................... SUCCESS [ 2.843 s]
[INFO] sport-app .......................................... FAILURE [ 15.478 s]
[INFO] sport .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.496 s
[INFO] Finished at: 2018-05-30T18:07:35+00:00
[INFO] Final Memory: 34M/269M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm run build) on project sport-app: Failed to run task: 'npm run build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :sport-app
! ERROR: Failed to build app with Maven
We're sorry this build is failing! If you can't find the issue in application code,
please submit a ticket so we can help: https://help.heroku.com/
! Push rejected, failed to compile Java app.
! Push failed
Deleting 'yarn.lock' worked for me
Related
Building docker image using spring-boot-maven-plugin failing.
[INFO] Retrying request to {}->docker://localhost:2376
[INFO] I/O exception (java.io.IOException) caught when processing request to {}->docker://localhost:2376: com.sun.jna.LastErrorException: [2] No such file or directory
[INFO] Retrying request to {}->docker://localhost:2376
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 100%
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.805 s
[INFO] Finished at: 2022-11-19T00:13:53+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.7.5:build-image (default-cli) on project demodocker: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.7.5:build-image failed: Connection to the Docker daemon at 'localhost' failed with error "[2] No such file or directory"; ensure the Docker daemon is running and accessible: com.sun.jna.LastErrorException: [2] No such file or directory -> [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/PluginExecutionException
build a docker image with spring-boot-maven-plugin not working.
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR! C:\Users\kchheda\AppData\Roaming\npm-cache\_logs\2022-05-17T07_17_33_367Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.847 s
[INFO] Finished at: 2022-05-17T12:47:36+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.1:npm (npm install) on project
supplierportal: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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.
There is the problem in npm or plugin, but I am not able to figure it out.
I'm trying to build the Java runtime library for Protocol Buffers on Windows. I have downloaded and installed the binary distribution of protoc: protoc-3.3.0-win32 . I have downloaded the protobuf-master from https://github.com/google/protobuf. and tried to build Java runtime library using Maven. I ran mvn test from D:\protobuf-master\java
These errors occured when I ran mvn test.
`[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] MapTest.testPut:1248 ╗ IllegalArgument
[ERROR] MapTest.testPutForUnknownEnumValues:494 ╗ IllegalArgument
[INFO]
[ERROR] Tests run: 908, Failures: 0, Errors: 2, Skipped: 0
[INFO]
[INFO] --------------------------------------------------------------------
----
[INFO] Reactor Summary:
[INFO]
[INFO] Protocol Buffers [Parent] .......................... SUCCESS [
0.000 s]
[INFO] Protocol Buffers [Core] ............................ FAILURE [01:23
min]
[INFO] Protocol Buffers [Util] ............................ SKIPPED
[INFO] --------------------------------------------------------------------
----
[INFO] BUILD FAILURE
[INFO] --------------------------------------------------------------------
----
[INFO] Total time: 01:24 min
[INFO] Finished at: 2017-06-27T20:40:21+02:00
[INFO] Final Memory: 32M/720M
[INFO] --------------------------------------------------------------------
----
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-
plugin:2.20:test (default-test) on project protobuf-java: There are test
failures.
[ERROR]
[ERROR] Please refer to D:\protobuf-master\java\core\target\surefire-
reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump,
[date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :protobuf-java`
The behavior was changed after 3.3.0 so either checkout v3.3.0 or compile newer version of protoc.
Commit
I am new to Maven and learning it by myself with the help of online tutorials.
I have been getting error while executing archetype:generate command in cmd.
Here is the error I am getting :\
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.884 s
[INFO] Finished at: 2017-05-07T23:00:07+05:30
[INFO] Final Memory: 8M/65M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate failed: Unable to load the mojo 'generate' (or one of its required components) from the plugin 'org.apache.maven.plugins:maven-archetype-plugin:3.0.1': com.google.inject.ProvisionException: Unable to provision, see the following errors:
[ERROR]
[ERROR] 1) No implementation for org.apache.maven.archetype.ArchetypeManager was bound.
[ERROR] while locating org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo
[ERROR] at ClassRealm[plugin>org.apache.maven.plugins:maven-archetype-plugin:3.0.1, parent: sun.misc.Launcher$AppClassLoader#70dea4e] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
[ERROR] while locating org.apache.maven.plugin.Mojo annotated with #com.google.inject.name.Named(value=org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate)
[ERROR]
[ERROR] 1 error
[ERROR] role: org.apache.maven.plugin.Mojo
[ERROR] roleHint: org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate
[ERROR] -> [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/PluginContainerException
I have searched a lot for the solution but nowhere did I find appropriate answer. I have uptil now completed the following steps: 1)Downloaded and extracted "apache-maven-3.5.0". 2)Configured the M2_HOME and PATH variables.
It's the first time I try using mavan and I got the following error when I issued "mvn install" (running on vista):
[ERROR] Failure executing javac, but could not parse the error:
C:\Users\Kaze Kun\.m2\respository\org\jboss\resteasy\resteasy-jaxrs\2.2.1.GA\resteasy-jaxrs-2.2.1.GA.jar. error in opening zip file
I googled and found some threads about needing to set the JAVA_HOME environment variable. However, this seems not the case for me since I've already set my JAVA_HOME variable at C:\Java\jdk1.6.0_24. Just wondering what can be the cause of the problem?
Below is the more detail capture of the error messages from maven:
[WARNING] File encoding has not been set, using platform encoding MS932, i.e. bu
ild is platform dependent!
[INFO] Compiling 3 source files to C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-w
orkbook\ex03_1\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
エラー:C:\Users\Kaze Kun\.m2\repository\org\jboss\resteasy\resteasy-jaxrs\2.2.1.
GA\resteasy-jaxrs-2.2.1.GA.jar の読み込みエラーです。error in opening zip file
エラー 1 個
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:22.828s
[INFO] Finished at: Sat Jul 09 11:11:17 CST 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project workbook-ex03_1: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] エラー:C:\Users\Kaze Kun\.m2\repository\org\jboss\resteasy\resteasy-jaxr
s\2.2.1.GA\resteasy-jaxrs-2.2.1.GA.jar の読み込みエラーです。error in opening zi
p file
[ERROR] エラー 1 個
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1>
The error seems to indicate that the resteasy-jaxrs-2.2.1.GA.jar is corrupt.
You should try deleting this file
C:\Users\Kaze Kun\.m2\repository\org\jboss\resteasy\resteasy-jaxr
s\2.2.1.GA\resteasy-jaxrs-2.2.1.GA.jar
and retrying.