good20087758521 / apjp

Automatically exported from code.google.com/p/apjp
0 stars 0 forks source link

git commit -m "init"始终错误 #166

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
环境是win7,heroku空间,toolkit装了,git也装了。
在gethub下载了最新的apjp后,编辑了APJP_REMOTE_JAVA\src\main\webapp\W
EB-INF下的APJP_REMOTE.properties,填入了Key保存。解压进入APJP_REMOT
E_JAVA目录,然后按照教程运行到
git commit -m "init"的时候老是提示

Please tell me who you are. 

Run 
git config --global user.email "you@example.com" git config --global user.name 
"Your Name" 

to set your account's default identity. Omit --global to set the identity only 
in this repository. 

fatal: unable to auto-detect email address (got 'Administrator@nick.(none)') 

请教一下,如何解决呢?
官方wiki看起来很老了,没有同步更新真是让人摸不着头脑啊�
��

Original issue reported on code.google.com by solalam...@gmail.com on 18 Mar 2013 at 8:56

GoogleCodeExporter commented 9 years ago
建议你进修一下英文
or there's a great website tool name Google Translate.
the output tells you everything.
to fix it, first run this two command:
git config --global user.email 
"your.email.better.match.your.heroku.account@gmailforexample.com"
git config --global user.name "your.name"

Original comment by westmin...@gmail.com on 18 Mar 2013 at 10:35

GoogleCodeExporter commented 9 years ago
Issue 167 has been merged into this issue.

Original comment by goknmuse on 18 Mar 2013 at 12:42

GoogleCodeExporter commented 9 years ago
感谢,查了一下,原来还要事先用git设置一下,经过设置已��
�成功上传了。但又出现了新问题,在执行APJP_LOCAL.bat时返回:

D:\apjp-master\APJP_LOCAL_JAVA\src\main\assembly\APJP_LOCAL_JAVA>java -classpath
 ${APJP_LOCAL_JAVA_NAME}-${APJP_LOCAL_JAVA_VERSION}.jar APJP.Main
错误: 找不到或无法加载主类 APJP.Main

D:\apjp-master\APJP_LOCAL_JAVA\src\main\assembly\APJP_LOCAL_JAVA>pause
请按任意键继续. . .

继续求助。谢谢

Original comment by solalam...@gmail.com on 21 Mar 2013 at 5:56

GoogleCodeExporter commented 9 years ago
看来我还是没成功,我删除了app重新上传,这次又发现push的�
��候出现新错误:

git push heroku master
Counting objects: 45, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (34/34), done.
Writing objects: 100% (45/45), 11.30 KiB, done.
Total 45 (delta 15), reused 0 (delta 0)

-----> Java app detected
-----> Installing OpenJDK 1.6...done
-----> Installing Maven 3.0.3... done
-----> Installing settings.xml... done
-----> executing /app/tmp/repo.git/.cache/.maven/bin/mvn -B -Duser.home=/tmp/bui
ld_lbhr6tm2vv5 -Dmaven.repo.local=/app/tmp/repo.git/.cache/.m2/repository -s /ap
p/tmp/repo.git/.cache/.m2/settings.xml -DskipTests=true clean install
       [INFO] Scanning for projects...
       Downloading: http://s3pository.heroku.com/jvm/APJP/APJP/1.0.0/APJP-1.0.0.
pom
       [ERROR] The build could not read 1 project -> [Help 1]
       [ERROR]
       [ERROR]   The project APJP:APJP_REMOTE_JAVA:1.0.0 (/tmp/build_lbhr6tm2vv5
/pom.xml) has 1 error
       [ERROR]     Non-resolvable parent POM: Could not find artifact APJP:APJP:
pom:1.0.0 in centralMirror (http://s3pository.heroku.com/jvm/) and 'parent.relat
ivePath' points at wrong local POM @ line 4, column 10 -> [Help 2]
       [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, ple
ase read the following articles:
       [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/Project
BuildingException
       [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/Unresol
vableModelException
 !     Failed to build app with Maven
 !     Heroku push rejected, failed to compile Java app

To git@heroku.com:sheltered-depths-7***.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:sheltered-depths-7***.git'

Original comment by solalam...@gmail.com on 21 Mar 2013 at 7:30