I'm using heroku, play framework (v 2.2.1)
and IntelliJ IDEA as IDE.
Everything has already worked but when I added maven as framework support in IntelliJ, when I pushed again, my application wasn't recognized as a play app.
Here is my log when I push:
-----> Java app detected
-----> Installing OpenJDK 1.7... done
-----> Installing settings.xml... done
-----> executing /app/tmp/cache/.maven/bin/mvn -B -Duser.home=/tmp/build_78991f
d-32f6-43df-856c-f9059e8fa59d -Dmaven.repo.local=/app/tmp/cache/.m2/repository
s /app/tmp/cache/.m2/settings.xml -DskipTests=true clean install
[....]
[INFO] ------------------------------------------------------------------
------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------
------
[INFO] Total time: 2.387s
[INFO] Finished at: Tue Jan 07 14:57:19 UTC 2014
[INFO] Final Memory: 8M/514M
[INFO] ------------------------------------------------------------------
------
-----> Discovering process types
Procfile declares types -> web
-----> Compressing... done, 74.7MB
-----> Launching... done, v8
http://javaepidroid.herokuapp.com deployed to Heroku
To git#heroku.com:javaepidroid.git
f809301..b319499 master -> master
My app directory is in the root directory's repository.
Had anyone already has this kind of issue with heroku ?
As describe in this buildpack from github/heroku (for play2 apps) :
You need that your application is :
a sbt application, ie, one file matching one of these pathes :
root-app/*.sbt
root-app/project/*.scala
root-app/.sbt/*.scala
root-app/project/build.properties
a play application, ie. has this file : root-app/conf/application.conf
But you may also specify the buildpack of your heroku app :
$ heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-scala.git
As said in heroku documentation
Related
-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/java.tgz
Could not find a pom.xml file! Please check that it exists and is committed to Git.
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
This is seen in Heroku's web app
This is my repo: https://github.com/ericntd/spring-boot-heroku-demo
I already have "image": "heroku/gradle" in app.json
The buildpack information can be found under Settings tab, the Framework section. (should be heroku/gradle).
Besure to remove heroku/java build pack if it's there (auto-detected and added by Heroku)
Alternative is to use the Heroku CLI and set the build pack desired (gradle)
I have a simple app made in Spring Boot, Kotlin, Gradle. I followed the official tutorial and tried to follow all the possible defaults.
$ git push heroku master
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 231 bytes | 231.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> JVM Common app detected
remote: -----> Installing JDK 1.8... done
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote:
remote: -----> Compressing...
remote: Done: 50.7M
remote: -----> Launching...
remote: Released v50
remote: https://---.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
It's weird that I get "JVM Common app detected" instead of "Gradle app detected".
I can't deploy the app. When I do heroku logs --tail, I get:
2018-04-02T23:02:39.257887+00:00 heroku[web.1]: Starting process with command `java $JAVA_OPTS -Dserver.port=50478 -jar build/libs/scraper-0.0.1-SNAPSHOT.jar`
2018-04-02T23:02:41.645544+00:00 heroku[web.1]: Process exited with status 1
2018-04-02T23:02:41.664910+00:00 heroku[web.1]: State changed from starting to crashed
2018-04-02T23:02:41.577966+00:00 app[web.1]: Error: Unable to access jarfile build/libs/scraper-0.0.1-SNAPSHOT.jar
2018-04-02T23:02:41.572483+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2018-04-02T23:05:10.000000+00:00 app[api]: Build started by user ---
2018-04-02T23:05:21.108667+00:00 app[api]: Release v50 created by user ---
2018-04-02T23:05:10.000000+00:00 app[api]: Build succeeded
2018-04-02T23:05:21.635834+00:00 heroku[web.1]: State changed from crashed to down
Using Spring Boot 2.0.0.RELEASE
Using Kotlin 1.2.31
no special tasks in build.gradle
no Procfile
Is there any way to fix this using the defaults (i.e.. no Procfile, no special Gradle tasks)? If not possible using defaults, what can I do? Thanks
You should indeed be getting (at least) the following:
remote: -----> Gradle app detected
remote: -----> Spring Boot detected
Is this the first push you did? Did you set a buildpack manually? Perhaps try clearing the buildpacks (heroku buildpacks:clear). If you can publish your app somewhere, it might help to check what the issue could be.
As the title says, After I have updated my OS to El Capitan all my apps on Appcelerator Studio does not build successfully anymore. Even newly created sample apps does not build. I only get a very generic error message from the console.
My app is targeted for iOS and Android and it does not work for both. I get the same error message as below.
[INFO] : ----- OPTIMIZING -----
[INFO] : - android/alloy.js
[INFO] : - android/alloy/sync/localStorage.js
[INFO] : - android/alloy/sync/properties.js
[INFO] : - android/alloy/sync/sql.js
[INFO] :
[INFO] : Alloy compiled in 1.48612s
[INFO] : Alloy compiler completed successfully
[ERROR] : invalid request
How to resolve this? I already tried to project clean multiple times.
That has nothing to deal with the operating system.
Solution;
Open terminal
appc logout
appc login
Ta dah! - solved :-)
Following Jenkins documentation jenkins docs
I can use the POM_VERSION environment variable to take the current version from the pom file.
But for some reason the POM_VERSION environment variable is not being refreshed from build to build. for example:
I changed the version number manually but the build number that exported was the last from the previous build.
From my python script:
print 'Current version is ' + os.environ['POM_VERSION']
which gives the following log Current version is 0.1.5 which is clearly wrong because i changed it. you can further see it in my maven versions goal output:
[INFO]
[INFO] --- versions-maven-plugin:2.1:set (default-cli) # ep-reporter ---
[INFO] Searching for local aggregator root...
[INFO] Local aggregation root: /var/lib/jenkins/jobs/exchange-planner- reporter/workspace
[INFO] Processing com.exelate:ep-reporter
[INFO] Updating project com.company:ep-reporter
[INFO] from version 0.1.8 to 0.1.6
Props: {project.version=0.1.6, project.artifactId=ep-reporter, project.groupId=com.company}
note that it went from 0.1.5 because i have a script that advances it. but maven clearly states that its changing it from 0.1.8 to 0.1.6 which is not what POM_VERSION says
Thanks.
That environment variable is set at the time Jenkins first reads your POM file. You are clearly changing it during the build.
If you are changing it during the build, you know what you are changing to, and you should use the same mechanism to display it later.
I had the same problem and I resolved it by setting "Check-out Strategy" option to "Always checkout a fresh copy" in Source Code Management section.
I followed instructions from the phonegap platform guides to create a hello world app and deploy to BB10. Had no problems with Android or iOS, but when I try to run the app on a BB10 I get this output:
$ platforms/blackberry10/cordova/run --device --keystorepass passhere --devicepass devicepasshere
[INFO] Target Z30-2ba65880 selected
[INFO] The existing debug token is valid
[INFO] Deploying debug token to target "Z30-2ba65880"
[INFO] Sending request: INSTALL_DEBUG_TOKEN
[INFO] Action: Install Debug Token
[INFO] File size: 2645
[INFO] result::success
[INFO] Populating application source
[INFO] Parsing config.xml
[INFO] Generating output files
[INFO] Package created: /Users/adriaan/Documents/phonegap/hello/platforms/blackberry10/build/simulator/bb10app.bar
[INFO] Package created: /Users/adriaan/Documents/phonegap/hello/platforms/blackberry10/build/device/bb10app.bar
[INFO] BAR packaging complete
[INFO] Sending request: INSTALL_AND_LAUNCH
[INFO] Action: Install and Launch
[INFO] File size: 78983
[INFO] Installing com.example.hello.testDev_ample_hellodf4765a1...
[INFO] Processing 78983 bytes
[INFO] actual_dname::actual_id::
[INFO] actual_version::result::failure 500 'ascii' codec can't decode byte 0xe2 in position 120: ordinal not in range(128)
I've tried this on Mountain Lion and Mavericks. On Mountain Lion I had the native and webworks sdks installed, on Mavericks only the Web Works.
Somewhere in your project some data is not correctly encoded as UTF-8. Check your filenames and file content for non UTF-8 characters and make sure you escape or replace them.
I face same issue please follow below step i resolve this issue by change the author name from bar-descriptor.xml
solution 1)
changed the author simply to "Julian Buss", recreated the debug token, cleaned the project and then I could run it on the device. Problem solved. click here
solution 2)
Remove debug token from your device or simulator please follow below step
1) goto Setting->Security and Privacy->Development Mode-> click on remove debug token button(This button is display if and only if you have install any debug token )
2) if you have not install debug token then regenerate debug token and install it.
I hope this will work This solution is work for me.