Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Friday, May 23, 2014

fixing "no such app as" error in heroku deployment after application rename

I did few changes in my toy project and pushed it to heroku with

git push heroku master
but got this error:
!  No such app as myOldApplicationName.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
I googled a bit to see that this is due to my application rename in heroku website. The previous name was "myOldApplicationName". Then I searched my .git directory to see if there are references to the old application name. I found it under "config".
[remote "heroku"]
 url = git@heroku.myOldApplicationName.git
Edit it with your new application to fix the issue.
[remote "heroku"]
 url = git@heroku.com:myNewApplicationName.git

Sunday, July 14, 2013

non-parseable settings in maven

I saw a very odd error while building our project with maven.

 
[ERROR] Error executing Maven.
[ERROR] 1 problem was encountered while building the effective settings
[FATAL] Non-parseable settings C:\Program Files
(x86)\Apache\apache-maven-3.0.5\conf\settings.xml: entity reference
names can not start with character '<' (position: START_TAG seen
...myPassword<... @12:33)  @ C:\Program Files
(x86)\Apache\apache-maven-3.0.5\conf\settings.xml, line 12, column 33
Nothing in the project changed so it shouldn't spit me an error. Then I saw the error line and remembered that I changed my corporate password and put it in the settings.xml because our corporate proxy need it for working. So if you see a similar error, keep in mind that this is because and invalid character in the xml file. My password contained an ampersand and thus I had this issue.

Thursday, May 3, 2012

packaging with value jar is invalid ?


While trying to build my new project using maven, I got "packaging' with value 'jar' is invalid" error.
I have a parent pom and a separate pom in each modules' folder; but in none of my pom files, I set packaging as "jar".

After googling a little, I saw that the default packaging is "jar" and in the parent pom I didn't specify any packaging type.
So it uses "jar" as packaging type of the parent which is wrong.
After adding "<packaging> pom <packaging>" to my parent pom's attributes, the maven error is gone.

Wednesday, September 1, 2010

Could not calculate build plan: Missing: maven-resources-plugin:maven-plugin:2.4.1

While I was trying to take Quartz using Maven I got "Could not calculate build plan: Missing: maven-resources-plugin:maven-plugin:2.4.1" error. What now? Everything was working just fine!
To fix this, find where your local repo is, then go to "/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/", remove "2.4.1" directory and do "update dependencies" from Maven.