springside / springside4

A Spring Framework based, pragmatic style JavaEE application reference architecture.
http://www.springside.io
Apache License 2.0
5.72k stars 2.91k forks source link

无法安装,警告之后报错。macos系统 #186

Closed Ar1thmetic closed 11 years ago

Ar1thmetic commented 11 years ago

➜ modules mvn install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Springside :: Module :: Parent [INFO] Springside :: Module :: Test [INFO] Springside :: Module :: Core [INFO] Springside :: Module :: Extension [INFO] Springside :: Module [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Springside :: Module :: Parent 4.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ springside-parent --- [INFO] Installing /Users/zky/springside4-master/modules/parent/pom.xml to /Users/zky/.m2/repository/org/springside/springside-parent/4.1.0-SNAPSHOT/springside-parent-4.1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Springside :: Module :: Test 4.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-banned-dependencies) @ springside-test --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ springside-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ springside-test --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ springside-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ springside-test --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 5 source files to /Users/zky/springside4-master/modules/test/target/test-classes [WARNING] 未与 -source 1.6 一起设置引导类路径 [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ springside-test --- [INFO] Surefire report directory: /Users/zky/springside4-master/modules/test/target/surefire-reports [INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider


T E S T S

Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false Running org.springside.modules.test.functional.JettyFactoryTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec Running org.springside.modules.test.functional.WebDriverFactoryTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.682 sec Running org.springside.modules.test.log.LogbackMockAppenderTest 09:57:18.812 [main] WARN o.s.m.t.log.LogbackMockAppenderTest - Hello 09:57:18.816 [main] WARN o.s.m.t.log.LogbackMockAppenderTest - World 09:57:18.818 [main] WARN o.s.m.t.log.LogbackMockAppenderTest - Hello 09:57:18.818 [main] WARN o.s.m.t.log.LogbackMockAppenderTest - Hello 09:57:18.818 [main] WARN o.s.m.t.log.LogbackMockAppenderTest - Hello 09:57:18.818 [main] WARN o.s.m.t.log.LogbackMockAppenderTest - Hello Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec Running org.springside.modules.test.mail.MailServerSimulatorTest 09:57:19.510 [main] INFO o.s.m.t.c.m.MemcachedSimulator - Initializing JMemcached Server 09:57:19.609 [main] INFO o.s.m.t.c.m.MemcachedSimulator - Initialized JMemcached Server Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.835 sec Running org.springside.modules.test.shiro.ShiroTestUtilsTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec

Results :

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

[INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ springside-test --- [INFO] [INFO] >>> maven-source-plugin:2.2:jar (attach-sources) @ springside-test >>> [INFO] [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-banned-dependencies) @ springside-test --- [INFO] [INFO] <<< maven-source-plugin:2.2:jar (attach-sources) @ springside-test <<< [INFO] [INFO] --- maven-source-plugin:2.2:jar (attach-sources) @ springside-test --- [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ springside-test --- [INFO] Installing /Users/zky/springside4-master/modules/test/target/springside-test-4.1.0-SNAPSHOT.jar to /Users/zky/.m2/repository/org/springside/springside-test/4.1.0-SNAPSHOT/springside-test-4.1.0-SNAPSHOT.jar [INFO] Installing /Users/zky/springside4-master/modules/test/pom.xml to /Users/zky/.m2/repository/org/springside/springside-test/4.1.0-SNAPSHOT/springside-test-4.1.0-SNAPSHOT.pom [INFO] Installing /Users/zky/springside4-master/modules/test/target/springside-test-4.1.0-SNAPSHOT-sources.jar to /Users/zky/.m2/repository/org/springside/springside-test/4.1.0-SNAPSHOT/springside-test-4.1.0-SNAPSHOT-sources.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Springside :: Module :: Core 4.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-banned-dependencies) @ springside-core --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ springside-core --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ springside-core --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ springside-core --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ springside-core --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 15 source files to /Users/zky/springside4-master/modules/core/target/test-classes [WARNING] 未与 -source 1.6 一起设置引导类路径 [WARNING] /Users/zky/springside4-master/modules/core/src/test/java/org/springside/modules/utils/Collecitons3Test.java: 某些输入文件使用了未经检查或不安全的操作。 [WARNING] /Users/zky/springside4-master/modules/core/src/test/java/org/springside/modules/utils/Collecitons3Test.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ springside-core --- [INFO] Surefire report directory: /Users/zky/springside4-master/modules/core/target/surefire-reports [INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider


T E S T S

Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false Running org.springside.modules.beanvalidator.BeanValidatorsTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.62 sec Running org.springside.modules.mapper.JaxbMapperTest Jaxb Object to Xml result: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

calvin movie sports

Jaxb Xml to Object result: org.springside.modules.mapper.JaxbMapperTest$User@72b46689[id=1,name=calvin,password=,interests=[movie, sports]] Jaxb Object List to Xml result: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

calvin kate

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.25 sec Running org.springside.modules.mapper.JsonMapperTest Bean:TestBean [defaultValue=hello, name=A, nullValue=null] Map: age 2 name A String List: A B C Bean List: TestBean [defaultValue=hello, name=A, nullValue=null]TestBean [defaultValue=hello, name=B, nullValue=null]Bean:{"name":"A"} Map:{"name":"A","age":2} String List:["A","B","C"] Bean List:[{"name":"A"},{"name":"B"}] Array List:[{"name":"A"},{"name":"B"}] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.134 sec Running org.springside.modules.persistence.HibernatesTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.267 sec Running org.springside.modules.persistence.SearchFilterTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running org.springside.modules.security.utils.CryptosTest aes key in hex :33a5decfe280caccb0eda7039ad83e3d iv in hex :0cbf3fc45b46071b315295504c4d5f67 aes encrypt in hex result :faccfbf02304a6bd547329d3ee1c0e33 aes key in hex :41fc9b7d0d75ede4ed7877dd8cc225b6 aes encrypt in hex result :f679bdde5ad753fc6cc7d80ed54f1650 hmac-sha1 key in hex :13e06508c725fa1159f9b553d504b2deb7487500 hmac-sha1 in hex result :d1c9e923c8d7c4d1d05fc2da2f066c689b54f0b1 Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.192 sec Running org.springside.modules.utils.Collecitons3Test Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.066 sec Running org.springside.modules.utils.EncodesTest http%3A%2F%2Flocahost%2F%3Fq%3D%E4%B8%AD%E6%96%87%26t%3D1 Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Running org.springside.modules.utils.ExceptionsTest java.lang.RuntimeException: java.lang.Exception: my exception at org.springside.modules.utils.ExceptionsTest.getStackTraceAsString(ExceptionsTest.java:24) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runners.Suite.runChild(Suite.java:127) at org.junit.runners.Suite.runChild(Suite.java:26) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at org.junit.runner.JUnitCore.run(JUnitCore.java:138) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) 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:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.lang.Exception: my exception at org.springside.modules.utils.ExceptionsTest.getStackTraceAsString(ExceptionsTest.java:23) ... 38 more

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.springside.modules.utils.IdentitiesTest uuid: c33cb299-f98b-43ba-8651-9e790f2615bd uuid2:6c8ae96ea13a41b59acb2fa68d872ade randomLong: 1009996386359640931 randomBase62:1Helqq1 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.springside.modules.utils.PropertiesLoaderTest 09:57:24.498 [main] INFO o.s.modules.utils.PropertiesLoader - Could not load properties from path:classpath:/notexist.properties, class path resource [notexist.properties] cannot be opened because it does not exist Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec Running org.springside.modules.utils.ReflectionsTest 09:57:24.508 [main] WARN o.s.modules.utils.Reflections - TestBean2's superclass not ParameterizedType 09:57:24.508 [main] WARN o.s.modules.utils.Reflections - TestBean3's superclass not ParameterizedType Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.springside.modules.utils.ThreadsTest start task start task 09:57:25.522 [pool-3-thread-1] WARN test - InterruptedException start task 09:57:25.524 [pool-4-thread-1] WARN test - InterruptedException start task 09:57:26.026 [pool-5-thread-1] WARN test - InterruptedException Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.514 sec Running org.springside.modules.security.utils.DigestsTest sha1 in hex result :12dea96fec20593566ab75692c9949596833adc9 salt in hex :8d4d60db02b73173 sha1 in hex result with salt :a9270458068c0804bbd9e4157e52dd2ced5ac521 sha1 in hex result with salt and 1024 interations:06aad6ac92eb56113b6839e9c5cfea84c7a4fcab Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE! digestFile(org.springside.modules.security.utils.DigestsTest) Time elapsed: 0.002 sec <<< ERROR! java.io.FileNotFoundException: class path resource [log4j.properties] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157) at org.springside.modules.security.utils.DigestsTest.digestFile(DigestsTest.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runners.Suite.runChild(Suite.java:127) at org.junit.runners.Suite.runChild(Suite.java:26) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at org.junit.runner.JUnitCore.run(JUnitCore.java:138) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) 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:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Running org.springside.modules.web.ServletsTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec

Results :

Tests in error: digestFile(org.springside.modules.security.utils.DigestsTest): class path resource [log4j.properties] cannot be opened because it does not exist

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

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Springside :: Module :: Parent .................... SUCCESS [0.373s] [INFO] Springside :: Module :: Test ...................... SUCCESS [8.353s] [INFO] Springside :: Module :: Core ...................... FAILURE [5.431s] [INFO] Springside :: Module :: Extension ................. SKIPPED [INFO] Springside :: Module .............................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.585s [INFO] Finished at: Tue Feb 19 09:57:26 CST 2013 [INFO] Final Memory: 29M/220M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project springside-core: There are test failures. [ERROR] [ERROR] Please refer to /Users/zky/springside4-master/modules/core/target/surefire-reports for the individual test results. [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 -rf :springside-core

springside commented 11 years ago

fixed,与macos无关。

liangmiaoling commented 10 years ago

我遇到一下问题 (springside4.1.0.GA版): maven 编译时报: Running org.springside.modules.utils.ExceptionsTest java.lang.RuntimeException: java.lang.Exception: my exception at org.springside.modules.utils.ExceptionsTest.getStackTraceAsString(ExceptionsTest.java:24) 如何解决?

liangmiaoling commented 10 years ago

同时遇到: JsonMapper.java:141: 无法确定 T 的类型参数 ;对于上限为 T,java.lang.Object 的类型变量 T,不存在唯一最大实例

我最后已经解决了,修改其返回值,return (T)......

springside commented 10 years ago

可以升级到最新版,已经改了,避免泛型用太狠了,有些JDK编译不过

在 2014年2月26日 下午5:30,Jolie Luang notifications@github.com写道:

同时遇到: JsonMapper.java:141: 无法确定 T 的类型参数 ;对于上限为 T,java.lang.Object 的类型变量 T,不存在唯一最大实例

我最后已经解决了,修改其返回值,return (T)......

— Reply to this email directly or view it on GitHubhttps://github.com/springside/springside4/issues/186#issuecomment-36106513 .

肖桦/江南白衣/Calvin http://www.springside.org.cn