cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 王 <chenzi...@163.com>
Subject mvn -P deps 执行报错,请教怎么处理
Date Sat, 29 Mar 2014 02:51:42 GMT
 根据网址的步骤进行编译,结果报错
http://cloudstack.group.iteye.com/group/wiki/3416
错误信息如下。jdk版本为1.6.0_45
网上查了一下说是jdk版本的问题?应该用哪个版本呢?
------
org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException;
nested exception is java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: java.lang.UnsupportedClassVersionError: org/apache/cloudstack/managed/context/impl/DefaultManagedContextTest
: Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at org.apache.maven.surefire.util.DefaultDirectoryScanner.loadClass(DefaultDirectoryScanner.java:102)
    at org.apache.maven.surefire.util.DefaultDirectoryScanner.locateTestClasses(DefaultDirectoryScanner.java:76)
    at org.apache.maven.surefire.junit4.JUnit4Provider.scanClassPath(JUnit4Provider.java:186)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:93)
    ... 9 more

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache CloudStack Developer Tools - Checkstyle Configuration  SUCCESS [  2.707 s]
[INFO] Apache CloudStack ................................. SUCCESS [  3.685 s]
[INFO] Apache CloudStack Maven Conventions Parent ........ SUCCESS [  1.981 s]
[INFO] Apache CloudStack Framework - Managed Context ..... FAILURE [  1.130 s]
[INFO] Apache CloudStack Utils ........................... SKIPPED
[INFO] Apache CloudStack Framework ....................... SKIPPED
[INFO] Apache CloudStack Framework - Event Notification .. SKIPPED
[INFO] Apache CloudStack Framework - Configuration ....... SKIPPED
[INFO] Apache CloudStack API ............................. SKIPPED
[INFO] Apache CloudStack Framework - REST ................ SKIPPED
[INFO] Apache CloudStack Framework - IPC ................. SKIPPED
[INFO] Apache CloudStack Cloud Engine .................... SKIPPED
[INFO] Apache CloudStack Cloud Engine API ................ SKIPPED
[INFO] Apache CloudStack Framework - Security ............ SKIPPED
[INFO] Apache CloudStack Core ............................ SKIPPED
[INFO] Apache CloudStack Agents .......................... SKIPPED
[INFO] Apache CloudStack Framework - Clustering .......... SKIPPED
[INFO] Apache CloudStack Framework - Jobs ................ SKIPPED
[INFO] Apache CloudStack Cloud Engine Schema Component ... SKIPPED
[INFO] Apache CloudStack Framework - Event Notification .. SKIPPED
[INFO] Apache CloudStack Cloud Engine Internal Components API  SKIPPED
[INFO] Apache CloudStack Server .......................... SKIPPED
[INFO] Apache CloudStack Usage Server .................... SKIPPED
[INFO] Apache XenSource XAPI ............................. SKIPPED
[INFO] Apache CloudStack Cloud Engine Orchestration Component  SKIPPED
[INFO] Apache CloudStack Cloud Services .................. SKIPPED
[INFO] Apache CloudStack Secondary Storage ............... SKIPPED
[INFO] Apache CloudStack Secondary Storage Service ....... SKIPPED
[INFO] Apache CloudStack Engine Storage Component ........ SKIPPED
[INFO] Apache CloudStack Engine Storage Volume Component . SKIPPED
[INFO] Apache CloudStack Engine Storage Image Component .. SKIPPED
[INFO] Apache CloudStack Engine Storage Data Motion Component  SKIPPED
[INFO] Apache CloudStack Engine Storage Cache Component .. SKIPPED
[INFO] Apache CloudStack Engine Storage Snapshot Component  SKIPPED
[INFO] Apache CloudStack Cloud Engine API ................ SKIPPED
[INFO] Apache CloudStack Cloud Engine Service ............ SKIPPED
[INFO] Apache CloudStack Plugin POM ...................... SKIPPED
[INFO] Apache CloudStack Plugin - API Rate Limit ......... SKIPPED
[INFO] Apache CloudStack Plugin - API Discovery .......... SKIPPED
[INFO] Apache CloudStack Plugin - ACL Static Role Based .. SKIPPED
[INFO] Apache CloudStack Plugin - Host Anti-Affinity Processor  SKIPPED
[INFO] Apache CloudStack Plugin - Explicit Dedication Processor  SKIPPED
[INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner  SKIPPED
[INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner  SKIPPED
[INFO] Apache CloudStack Plugin - Implicit Dedication Planner  SKIPPED
[INFO] Apache CloudStack Plugin - Skip Heurestics Planner  SKIPPED
[INFO] Apache CloudStack Plugin - Host Allocator Random .. SKIPPED
[INFO] Apache CloudStack Plugin - Dedicated Resources .... SKIPPED
[INFO] Apache CloudStack Plugin - Hypervisor OracleVM .... SKIPPED
[INFO] Apache CloudStack Plugin - Open vSwitch ........... SKIPPED
[INFO] Apache CloudStack Plugin - Hypervisor Xen ......... SKIPPED
[INFO] Apache CloudStack Plugin - Hypervisor KVM ......... SKIPPED
[INFO] Apache CloudStack Plugin - RabbitMQ Event Bus ..... SKIPPED
[INFO] Apache CloudStack Plugin - In Memory Event Bus .... SKIPPED
[INFO] Apache CloudStack Plugin - Hypervisor Baremetal ... SKIPPED
[INFO] Apache CloudStack Plugin - Hypervisor UCS ......... SKIPPED
[INFO] Apache CloudStack Plugin - Hypervisor Hyper-V ..... SKIPPED
[INFO] Apache CloudStack Plugin - Network Elastic Load Balancer  SKIPPED
[INFO] Apache CloudStack Plugin - Network Internal Load Balancer  SKIPPED
[INFO] Apache CloudStack Framework - Spring Life Cycle ... SKIPPED
[INFO] Apache CloudStack Plugin - Network Juniper Contrail  SKIPPED
[INFO] Apache CloudStack Plugin - Palo Alto .............. SKIPPED
[INFO] Apache CloudStack Plugin - Network Netscaler ...... SKIPPED
[INFO] Apache CloudStack Plugin - Network Nicira NVP ..... SKIPPED
[INFO] Apache CloudStack Plugin - BigSwitch Virtual Network Segment  SKIPPED
[INFO] Apache CloudStack Plugin - Midokura Midonet ....... SKIPPED
[INFO] Apache CloudStack Plugin - Stratosphere SSP ....... SKIPPED
[INFO] Apache CloudStack Plugin - Network Opendaylight ... SKIPPED
[INFO] Apache CloudStack Plugin - Storage Allocator Random  SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator LDAP  SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator MD5 . SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator Plain Text  SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted  SKIPPED
[INFO] Apache CloudStack Plugin - Dns Notifier Example ... SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image S3 ....... SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image Swift provider  SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image default provider  SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image sample provider  SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume Nexenta Provider  SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume SolidFire Provider  SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume default provider  SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume CloudByte Provider  SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume sample provider  SKIPPED
[INFO] Apache CloudStack Plugin - SNMP Alerts ............ SKIPPED
[INFO] Apache CloudStack Plugin - Syslog Alerts .......... SKIPPED
[INFO] Apache CloudStack Plugin - Network VXLAN .......... SKIPPED
[INFO] Apache CloudStack Framework - Spring Module ....... SKIPPED
[INFO] Apache CloudStack IAM Service ..................... SKIPPED
[INFO] Apache CloudStack IAM - Server .................... SKIPPED
[INFO] Apache CloudStack IAM - Plugin .................... SKIPPED
[INFO] Apache CloudStack Secondary Storage Controller .... SKIPPED
[INFO] Apache CloudStack Client UI ....................... SKIPPED
[INFO] Apache CloudStack Console Proxy - RDP Client ...... SKIPPED
[INFO] Apache CloudStack Console Proxy ................... SKIPPED
[INFO] Apache CloudStack Console Proxy - Server .......... SKIPPED
[INFO] Apache CloudStack Framework - QuickCloud .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.726 s
[INFO] Finished at: 2014-03-28T19:39:28-08:00
[INFO] Final Memory: 46M/187M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "deps" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test)
on project cloud-framework-managed-context: Error occurred in starting fork, check output
in log -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :cloud-framework-managed-context
[root@localhost cloudstack]# java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)





--
_______________________________________________________

王明昌
chenzi259@163.com
武汉技术部 - 软件工程师

电话:027-51854676
地址:武汉市洪山区街道口 珞瑜路20号阜华大厦A座1201室
_______________________________________________________

北京鑫海睿杰科技有限公司
http://www.bjxhrj.com
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message