Andorid Push Notification source code deployment notes

Source: Internet
Author: User

 

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project server: cocould not resolve dependencies for project org. androidpn: server: jar: 0.5.0: cocould not find artifact ehcache: jar: 1.6.1 in central (http://repo1.maven.org/maven2)-> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals>-rf: server
Maven compilation error. The dependent ehcache: jar: 1.6.1 cannot be found.
-------------------------------------------------------------------------

Edit the pox. xml file to replace the source of this part.
<Dependency>
<GroupId> net. sf. ehcache </groupId>
<ArtifactId> ehcache </artifactId>
<Version> 1.6.1 </version>
</Dependency>

The downloaded cache directory is here
C: \ Users \ Administrator \. m2 \ repository
C: \ Users \ Administrator \. m2 \ repository \ ehcache \ 1.6.1

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org. apache. maven. plugins: maven-compiler-plugin: 2.0.2: compile (default-compile) on project server: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] D: \ Program Files \ Java \ jre6 \ .. \ lib \ tools. jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com. sun. tools. javac. Main class is required ).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[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: server

MAVEN requires TOOLS. jat jdt. JAR and so on. If IDE or PATH such as ECLIPSE points to JRE, these jars are missing, the above errors will occur.
Bytes ------------------------------------------------------------------------------------------
Point to your jdk d: \ Program Files \ Java \ jdk1.6.0 _ 33

[INFO] Reactor Summary:
[INFO]
[INFO] Andorid Push Notification ...... SUCCESS [0.561 s]
[INFO] server .................................... ........ SUCCESS [:19. 788 s]
[INFO] starter .................................... ....... SUCCESS [1.407 s]
[INFO] console .................................... ....... SUCCESS [21.836 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:. 943 s
[INFO] Finished at: Mon Nov 19 10:38:21 CST 2012
[INFO] Final Memory: 38 MB/139 MB
[INFO] ------------------------------------------------------------------------
 

If the modified source does not exist, you can download this JAR file and register it to The. M2 location. ehcache: jar: 1.6.1. The JAR package is included in the attachment.

This article is from the "Mobile Communications" blog, please be sure to keep this source http://minghuang.blog.51cto.com/641280/1063633

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.