I got success message in heroku console but my program is not running
Github code : https://github.com/boxercool/demo
[INFO] Total time: 9.780 s
[INFO] Finished at: 2020-12-09T05:54:33Z
[INFO] ------------------------------------------------------------------------
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 63.5M
-----> Launching...
Released v5
https://poorvikademo.herokuapp.com/ deployed to Heroku
Related
All.
I am testing whether it would be useful to develop a web application in Heroku. So, I'm trying to follow the guide that is "Deploying Spring Boot Applications to Heroku".(link: https://devcenter.heroku.com/articles/deploying-spring-boot-apps-to-heroku)
I can follow the guide to check the page returning hello world, but I'm having a problem connecting postgresql. When I try to deploy DatabaseConfig.java file to git, it fails with the following log in vscode. How can I solve it?
$ git push heroku master
Enumerating objects: 24, done.
Counting objects: 100% (24/24), done.
Delta compression using up to 12 threads
Compressing objects: 100% (12/12), done.
Writing objects: 100% (15/15), 1.36 KiB | 463.00 KiB/s, done.
Total 15 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Java app detected
remote: -----> Installing JDK 1.8... done
remote: -----> Executing Maven
remote: $ ./mvnw -DskipTests clean dependency:list install
remote: [INFO] Scanning for projects...
remote: [INFO]
remote: [INFO] -------------------------< com.daview:daview >--------------------------
remote: [INFO] Building demo 0.0.1-SNAPSHOT
remote: [INFO] --------------------------------[ jar ]---------------------------------
remote: [INFO]
remote: [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # daview ---
remote: [INFO]
remote: [INFO] --- maven-dependency-plugin:3.1.2:list (default-cli) # daview ---
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # daview ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] Copying 1 resource
remote: [INFO] Copying 0 resource
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # daview ---
remote: [INFO] Changes detected - recompiling the module!
remote: [INFO] Compiling 2 source files to /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/target/classes
remote: [INFO] -------------------------------------------------------------
remote: [ERROR] COMPILATION ERROR :
remote: [INFO] -------------------------------------------------------------
remote: [ERROR] /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/src/main/java/com/daview/daview/DatabaseConfig.java:[1,1] illegal character: '\ufeff'
remote: [ERROR] /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/src/main/java/com/daview/daview/DatabaseConfig.java:[1,10] class, interface, or enum expected
remote: [INFO] 2 errors
remote: [INFO] -------------------------------------------------------------
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] BUILD FAILURE
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Total time: 4.196 s
remote: [INFO] Finished at: 2020-05-05T17:33:46Z
remote: [INFO] ------------------------------------------------------------------------
remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project daview: Compilation failure: Compilation failure:
remote: [ERROR] /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/src/main/java/com/daview/daview/DatabaseConfig.java:[1,1] illegal character: '\ufeff'
remote: [ERROR] /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/src/main/java/com/daview/daview/DatabaseConfig.java:[1,10] class, interface, or enum expected
remote: [ERROR] -> [Help 1]
remote: [ERROR]
remote: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
remote: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
remote: [ERROR]
remote: [ERROR] For more information about the errors and possible solutions, please read the following articles:
remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
remote:
remote: ! ERROR: Failed to build app with Maven
remote: We're sorry this build is failing! If you can't find the issue in application code,
remote: please submit a ticket so we can help: https://help.heroku.com/
remote:
remote: ! Push rejected, failed to compile Java app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to daview.
remote:
To https://git.heroku.com/daview.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/daview.git'
I found the solution!
It is the problem with encoding!
I can find the character which is '\ufeff' by changing the encoding type like EUC-KR not UTF. So I fixed the code correctly and saved back to utf-8.
I have a Spring Boot application with a Vue.js frontend integration. I am trying to deploy this to Heroku.
The application builds successfully on Heroku, but I see no indication that Heroku even tries to start up the application.
Below are the logs for when I deploy using git push <my-heroku-branch>.
➜ MobstersREST git:(master) ✗ git push heroku-staging
Counting objects: 17, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (17/17), 1.45 KiB | 1.45 MiB/s, done.
Total 17 (delta 6), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Java app detected
remote: -----> Installing JDK 1.8... done
remote: -----> Installing Maven 3.3.9... done
remote: -----> Executing: mvn -DskipTests clean dependency:list install
remote: [INFO] Scanning for projects...
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Reactor Build Order:
remote: [INFO]
remote: [INFO] mobsters-bot
remote: [INFO] frontend
remote: [INFO] backend
remote: [INFO]
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Building mobsters-bot 0.0.1-SNAPSHOT
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO]
remote: [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # mobsters-bot ---
remote: [INFO]
remote: [INFO] --- maven-dependency-plugin:3.0.2:list (default-cli) # mobsters-bot ---
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) # mobsters-bot ---
remote: [INFO] argLine set to -javaagent:/app/tmp/cache/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/target/jacoco.exec
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:report (post-unit-test) # mobsters-bot ---
remote: [INFO] Skipping JaCoCo execution due to missing execution data file.
remote: [INFO]
remote: [INFO] --- maven-install-plugin:2.5.2:install (default-install) # mobsters-bot ---
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/pom.xml to /app/tmp/cache/.m2/repository/com/adrian/mobsters-bot/0.0.1-SNAPSHOT/mobsters-bot-0.0.1-SNAPSHOT.pom
remote: [INFO]
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Building frontend 0.0.1-SNAPSHOT
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO]
remote: [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # frontend ---
remote: [INFO] Deleting /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/target
remote: [INFO]
remote: [INFO] --- maven-dependency-plugin:3.0.2:list (default-cli) # frontend ---
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) # frontend ---
remote: [INFO] argLine set to -javaagent:/app/tmp/cache/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/target/jacoco.exec
remote: [INFO]
remote: [INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) # frontend ---
remote: [INFO] Installing node version v9.11.1
remote: [INFO] Unpacking /app/tmp/cache/.m2/repository/com/github/eirslett/node/9.11.1/node-9.11.1-linux-x64.tar.gz into /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node/tmp
remote: [INFO] Copying node binary from /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node/tmp/node-v9.11.1-linux-x64/bin/node to /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node/node
remote: [INFO] Extracting NPM
remote: [INFO] Installed node locally.
remote: [INFO]
remote: [INFO] --- frontend-maven-plugin:1.6:npm (npm install) # frontend ---
remote: [INFO] Running 'npm install' in /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend
remote: [WARNING] npm WARN notice [SECURITY] ws has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=ws&version=1.1.2 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] mime has 1 moderate vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=mime&version=1.3.6 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.3.3 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.2.0 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.3.3 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.3.3 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] parsejson has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=parsejson&version=0.0.3 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.6.8 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] https-proxy-agent has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=https-proxy-agent&version=1.0.0 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] http-proxy-agent has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=http-proxy-agent&version=1.0.0 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] macaddress has 1 critical vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=macaddress&version=0.2.8 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] lodash has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=lodash&version=3.10.1 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] growl has 1 critical vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=growl&version=1.9.2 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [INFO]
remote: [INFO] > phantomjs-prebuilt#2.1.16 install /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/phantomjs-prebuilt
remote: [INFO] > node install.js
remote: [INFO]
remote: [INFO] PhantomJS not found on PATH
remote: [INFO] Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
remote: [INFO] Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
remote: [INFO] Receiving...
remote: [INFO]
remote: [INFO] Received 22866K total.
remote: [INFO] Extracting tar contents (via spawned process)
remote: [INFO] Removing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/phantomjs-prebuilt/lib/phantom
remote: [INFO] Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1526755629983/phantomjs-2.1.1-linux-x86_64 -> /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/phantomjs-prebuilt/lib/phantom
remote: [INFO] Writing location.js file
remote: [INFO] Done. Phantomjs binary available at /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
remote: [INFO]
remote: [INFO] > chromedriver#2.38.3 install /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/chromedriver
remote: [INFO] > node install.js
remote: [INFO]
remote: [INFO] Downloading https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip
remote: [INFO] Saving to /tmp/chromedriver/chromedriver_linux64.zip
remote: [INFO] Received 781K...
remote: [INFO] Received 1568K...
remote: [INFO] Received 2352K...
remote: [INFO] Received 3136K...
remote: [INFO] Received 3684K total.
remote: [INFO] Extracting zip contents
remote: [INFO] Copying to target path /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/chromedriver/lib/chromedriver
remote: [INFO] Fixing file permissions
remote: [INFO] Done. ChromeDriver binary available at /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/chromedriver/lib/chromedriver/chromedriver
remote: [INFO]
remote: [INFO] > uglifyjs-webpack-plugin#0.4.6 postinstall /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
remote: [INFO] > node lib/post_install.js
remote: [INFO]
remote: [INFO]
remote: [INFO] > sinon#4.5.0 postinstall /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/sinon
remote: [INFO] > node scripts/support-sinon.js
remote: [INFO]
remote: [INFO] Have some ❤️ for Sinon? You can support the project via Open Collective:
remote: [INFO] > https://opencollective.com/sinon/donate
remote: [INFO]
remote: [WARNING] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
remote: [WARNING] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
remote: [ERROR]
remote: [INFO] added 1515 packages in 32.916s
remote: [INFO]
remote: [INFO] --- frontend-maven-plugin:1.6:npm (npm run build) # frontend ---
remote: [INFO] Running 'npm run build' in /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend
remote: [INFO]
remote: [INFO] > frontend#1.0.0 build /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend
remote: [INFO] > node build/build.js
remote: [INFO]
remote: [INFO] Hash: 5a4a6c797424a405ae0d
remote: [INFO] Version: webpack 3.12.0
remote: [INFO] Time: 9170ms
remote: [INFO] Asset Size Chunks Chunk Names
remote: [INFO] static/js/vendor.c397231b51d1afea579a.js 126 kB 0 [emitted] vendor
remote: [INFO] static/js/app.ada8a6a8238113fabbbb.js 10.5 kB 1 [emitted] app
remote: [INFO] static/js/manifest.2ae2e69a05c33dfc65f8.js 857 bytes 2 [emitted] manifest
remote: [INFO] static/css/app.509616311f4aa1438479df89f0d28911.css 432 bytes 1 [emitted] app
remote: [INFO] static/css/app.509616311f4aa1438479df89f0d28911.css.map 828 bytes [emitted]
remote: [INFO] static/js/vendor.c397231b51d1afea579a.js.map 620 kB 0 [emitted] vendor
remote: [INFO] static/js/app.ada8a6a8238113fabbbb.js.map 19.1 kB 1 [emitted] app
remote: [INFO] static/js/manifest.2ae2e69a05c33dfc65f8.js.map 4.97 kB 2 [emitted] manifest
remote: [INFO] index.html 510 bytes [emitted]
remote: [INFO]
remote: [INFO] WARNING in ./src/components/HelloWorld.vue
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
remote: [INFO] src/components/HelloWorld.vue:9:1
remote: [INFO] import {AXIOS} from './http-common'
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
remote: [INFO] src/components/HelloWorld.vue:11:1
remote: [INFO] export default {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:12:1
remote: [INFO] name: 'HelloWorld',
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:13:1
remote: [INFO] data() {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/space-before-function-paren Missing space before function parentheses
remote: [INFO] src/components/HelloWorld.vue:13:9
remote: [INFO] data() {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 4 spaces but found 6
remote: [INFO] src/components/HelloWorld.vue:14:1
remote: [INFO] return {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 6 spaces but found 8
remote: [INFO] src/components/HelloWorld.vue:15:1
remote: [INFO] response: [],
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 6 spaces but found 8
remote: [INFO] src/components/HelloWorld.vue:16:1
remote: [INFO] errors: []
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 4 spaces but found 6
remote: [INFO] src/components/HelloWorld.vue:17:1
remote: [INFO] }
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:18:1
remote: [INFO] },
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:20:1
remote: [INFO] methods: {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 4 spaces but found 6
remote: [INFO] src/components/HelloWorld.vue:21:1
remote: [INFO] callRestService() {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/space-before-function-paren Missing space before function parentheses
remote: [INFO] src/components/HelloWorld.vue:21:22
remote: [INFO] callRestService() {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 6 spaces but found 8
remote: [INFO] src/components/HelloWorld.vue:22:1
remote: [INFO] AXIOS.get(`mobsters`)
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 4 spaces but found 6
remote: [INFO] src/components/HelloWorld.vue:30:1
remote: [INFO] }
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:31:1
remote: [INFO] }
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
remote: [INFO] src/components/HelloWorld.vue:32:1
remote: [INFO] }
remote: [INFO] ^
remote: [INFO]
remote: [INFO]
remote: [INFO] ✘ 17 problems (17 errors, 0 warnings)
remote: [INFO]
remote: [INFO]
remote: [INFO] Errors:
remote: [INFO] 15 http://eslint.org/docs/rules/indent
remote: [INFO] 2 http://eslint.org/docs/rules/space-before-function-paren
remote: [INFO] # ./src/router/index.js 3:0-49
remote: [INFO] # ./src/main.js
remote: [INFO]
remote: [INFO] Build complete.
remote: [INFO]
remote: [INFO] Tip: built files are meant to be served over an HTTP server.
remote: [INFO] Opening index.html over file:// won't work.
remote: [INFO]
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) # frontend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] skip non existing resourceDirectory /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/src/main/resources
remote: [INFO] skip non existing resourceDirectory /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/src/main/resources
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # frontend ---
remote: [INFO] No sources to compile
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) # frontend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] skip non existing resourceDirectory /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/src/test/resources
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # frontend ---
remote: [INFO] No sources to compile
remote: [INFO]
remote: [INFO] --- maven-surefire-plugin:2.21.0:test (default-test) # frontend ---
remote: [INFO] Tests are skipped.
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:report (post-unit-test) # frontend ---
remote: [INFO] Skipping JaCoCo execution due to missing execution data file.
remote: [INFO]
remote: [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) # frontend ---
remote: [WARNING] JAR will be empty - no content was marked for inclusion!
remote: [INFO] Building jar: /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/target/frontend-0.0.1-SNAPSHOT.jar
remote: [INFO]
remote: [INFO] --- maven-install-plugin:2.5.2:install (default-install) # frontend ---
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/target/frontend-0.0.1-SNAPSHOT.jar to /app/tmp/cache/.m2/repository/com/adrian/frontend/0.0.1-SNAPSHOT/frontend-0.0.1-SNAPSHOT.jar
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/pom.xml to /app/tmp/cache/.m2/repository/com/adrian/frontend/0.0.1-SNAPSHOT/frontend-0.0.1-SNAPSHOT.pom
remote: [INFO]
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Building backend 0.0.1-SNAPSHOT
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO]
remote: [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # backend ---
remote: [INFO]
remote: [INFO] --- maven-dependency-plugin:3.0.2:list (default-cli) # backend ---
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) # backend ---
remote: [INFO] argLine set to -javaagent:/app/tmp/cache/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/jacoco.exec
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy Vue.js frontend content) # backend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] Copying 9 resources
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) # backend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] Copying 0 resource
remote: [INFO] Copying 12 resources
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # backend ---
remote: [INFO] Changes detected - recompiling the module!
remote: [INFO] Compiling 59 source files to /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/classes
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) # backend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] skip non existing resourceDirectory /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/src/test/resources
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # backend ---
remote: [INFO] Changes detected - recompiling the module!
remote: [INFO] Compiling 6 source files to /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/test-classes
remote: [INFO] /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/src/test/java/com/adrian/mobstersrest/mobsters/services/MobsterServiceImplTest.java: Some input files use unchecked or unsafe operations.
remote: [INFO] /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/src/test/java/com/adrian/mobstersrest/mobsters/services/MobsterServiceImplTest.java: Recompile with -Xlint:unchecked for details.
remote: [INFO]
remote: [INFO] --- maven-surefire-plugin:2.21.0:test (default-test) # backend ---
remote: [INFO] Tests are skipped.
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:report (post-unit-test) # backend ---
remote: [INFO] Skipping JaCoCo execution due to missing execution data file.
remote: [INFO]
remote: [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) # backend ---
remote: [INFO] Building jar: /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/backend-0.0.1-SNAPSHOT.jar
remote: [INFO]
remote: [INFO] --- spring-boot-maven-plugin:2.0.1.RELEASE:repackage (default) # backend ---
remote: [INFO]
remote: [INFO] --- maven-install-plugin:2.5.2:install (default-install) # backend ---
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/backend-0.0.1-SNAPSHOT.jar to /app/tmp/cache/.m2/repository/com/adrian/backend/0.0.1-SNAPSHOT/backend-0.0.1-SNAPSHOT.jar
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/pom.xml to /app/tmp/cache/.m2/repository/com/adrian/backend/0.0.1-SNAPSHOT/backend-0.0.1-SNAPSHOT.pom
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Reactor Summary:
remote: [INFO]
remote: [INFO] mobsters-bot ....................................... SUCCESS [ 1.771 s]
remote: [INFO] frontend ........................................... SUCCESS [ 50.362 s]
remote: [INFO] backend ............................................ SUCCESS [ 7.348 s]
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] BUILD SUCCESS
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Total time: 01:00 min
remote: [INFO] Finished at: 2018-05-19T18:47:38+00:00
remote: [INFO] Final Memory: 56M/418M
remote: [INFO] ------------------------------------------------------------------------
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote:
remote: -----> Compressing...
remote: Done: 197.5M
remote: -----> Launching...
remote: Released v5
remote: https://shrouded-mountain-23800.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/shrouded-mountain-23800.git
795913a..a8e3547 master -> master
I then run heroku logs --tail:
➜ MobstersREST git:(master) ✗ heroku logs --tail
(node:12986) [MODULE_NOT_FOUND] Error Plugin: #heroku-cli/plugin-build: Cannot find module 'globby'
module: #oclif/config#1.6.18
task: not loading commands, globby not found
plugin: #heroku-cli/plugin-build
root: /usr/local/Cellar/heroku/7.0.40/libexec/lib/node_modules/heroku/node_modules/#heroku-cli/plugin-build
› Warning: heroku update available from 7.0.40 to 7.0.47
My full project setup can be found here.
I am following the tutorial located here. The Heroku section is a bit vague.
The issue was that my project structure was not supported by the default Procfile configuration that was looking in target/my-jar-file.jar, and needed to be changed for my unusual project structure: backend/target/my-jar-file.jar.
web: java -jar backend/target/my-jar-file.jar in a Procfile at the root of my application.
I'm using wso2 emm 2.2.0 Beta, Please refer the below error console. when I run the maven install I got maven assembly plugin issue.
So please let me know why it occurs? and give some suggestion to fix this problem.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WSO2 Mobile Device Manager (MDM) - Distribution 2.2.0-BETA2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- incremental-build-plugin:1.3:incremental-build (default) # wso2emm ---
[INFO] Verifying module descriptor ...
[INFO] Verifying parent modules...
[INFO] Verifying resources...
[INFO] Resources directory does not exist : /home/next/Praveen/Project/secureON/Project/Project_Setup/product-emm-2.2.0-BETA2/modules/distribution/src/main/resources
[INFO] Verifying sources...
[INFO] No sources to check ...
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) # wso2emm ---
[INFO] Storing buildNumber: 27 Oct 2016 at timestamp: 1477554746130
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: fatal: Not a git repository (or any of the parent directories): .git
[INFO] Executing: /bin/sh -c cd /home/next/Praveen/Project/secureON/Project/Project_Setup/product-emm-2.2.0-BETA2/modules/distribution && git rev-parse --verify HEAD
[INFO] Working directory: /home/next/Praveen/Project/secureON/Project/Project_Setup/product-emm-2.2.0-BETA2/modules/distribution
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) # wso2emm ---
[INFO]
[INFO] --- maven-assembly-plugin:2.4:single (1-pre-dist) # wso2emm ---
[INFO] Reading assembly descriptor: /home/next/Praveen/Project/secureON/Project/Project_Setup/product-emm-2.2.0-BETA2/modules/distribution/src/assembly/dist.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.203s
[INFO] Finished at: Thu Oct 27 13:22:26 IST 2016
[INFO] Final Memory: 13M/188M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (1-pre-dist) on project wso2emm: Failed to create assembly: Error creating assembly archive dist: You must set at least one file.
If you want to build WSO2 EMM 2.2.0 Beta follows the below steps.
Clone the product-emm repo
git clone https://github.com/wso2/product-emm.git
Checkout the v2.2.0-BETA tag.
git checkout v2.2.0-BETA
Build from root pom. Go to project root folder and issue
mvn clean install
If you want just product zip you can build the distribution module for that go to project root -> modules ->distribution folder and issue mvn clean install from there. you can find the build zip file in distribution/target folder.
It seems like you are in master branch. The failing maven goal for you added after the emm beta tag creation. The reason for failing is, in build time it tries to connect to some resources in internet and your computer failed to connect to that resources on internet. If you really want to build the master branch (2.2.0-SNAPSHOT), just check your internet connection or firewall blockings.
Server log while deploying code
remote: [INFO] -----------------------------------------------------------
remote: [INFO] BUILD SUCCESS
remote: [INFO] -----------------------------------------------------------
remote: [INFO] Total time: 6.068 s
remote: [INFO] Finished at: 2016-10-04T18:35:42+00:00
remote: [INFO] Final Memory: 21M/164M
remote: [INFO] -----------------------------------------------------------
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote:
remote: -----> Compressing...
remote: Done: 60.5M
remote: -----> Launching...
remote: Released v4
remote: https://sometext.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/sometext.git
7839c97..2b14519 master -> master
Result of page request after hitting the url in the browser.
I am trying to build a robotium apk file that can execute test cases automatically from jenkins and receive the following error:
[INFO] Run started: se.stuff.android.app.test, 7 tests:
[INFO] Start: se.stuff.android.test.app.APP_Test#test_A_check_app
[INFO] End: se.stuff.android.test.app.APP_Test#test_A_check_app
[INFO] Start: se.stuff.android.test.app.APP_Test#test_B_bad_credentials
[INFO] End: se.stuff.android.test.app.APP_Test#test_B_bad_credentials
[INFO] Start: se.stuff.android.test.app.APP_Test#test_C_Log_in
[INFO] ERROR:se.stuff.android.test.app.APP_Test#test_C_Log_in
[INFO] Test failed to run to completion. Reason: 'Instrumentation run failed due to 'java.lang.ClassNotFoundException''. Check device logcat for details
[INFO] End: se.stuff.android.test.app.APP_Test#test_C_Log_in
[INFO] Run failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException'
[INFO] Run ended: 0 ms
[ERROR] FAILURES!!!
[INFO] Tests run: 3 (of 7), Failures: 0, Errors: 1
[INFO] Report file written to /var/lib/hudson/jobs/App_Android_Test/workspace/APP_Test/target/surefire-reports/TEST-localhost_49851_unknown_sdk.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
I checked the emulator and seem to be missing the InstrumentationTesRunner. What I have heard is that instrumentation classes are excluded when an application is built for release. My question is therefore, how do I create a debuggable build in jenkins using a pom.xml file and building with maven?
The two first test cases can actually pass with nothing happening since it's supposed to check that everything is ok before start. If it doesn't find potential issues will the test execution just continue.