@f.shantanu, @eric. - the issue mentioned above is now resolved. Please update your sources and build again. If anything goes wrong, reopen the bug.
@f.shantanu, @eric. - the issue mentioned above is now resolved. Please update your sources and build again. If anything goes wrong, reopen the bug.
@Chris,
Thank you for your work. But there is another test failed:
It looks like the the default content type for jpeg file was not set correctly, but I failed to figure out it. How can I do about this?Code:[junit] Testsuite: org.springframework.http.converter.FormHttpMessageConverterTests [junit] Tests run: 5, Failures: 0, Errors: 1, Time elapsed: 0.4 sec [junit] [junit] Testcase: writeMultipart(org.springframework.http.converter.FormHttpMessageConverterTests): Caused an ERROR [junit] expected:<[image/jpeg]> but was:<[application/octet-stream]> [junit] at org.springframework.http.converter.FormHttpMessageConverterTests.writeMultipart(FormHttpMessageConverterTests.java:152)
BTW, I deem you're using maven to do the test, but I got something like the following when I perform the mvn test:
Would you like to give some advices on that? Thanks in advance.Code:[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.springframework:spring-aop:jar:3.1.0.BUILD-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-aop -Dversion=3.1.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.springframework -DartifactId=spring-aop -Dversion=3.1.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.springframework:spring-web:jar:3.1.0.BUILD-SNAPSHOT 2) org.springframework:spring-aop:jar:3.1.0.BUILD-SNAPSHOT
Sorry for bothering since I'm not familiar with neither Maven nor Spring.![]()
@Chris,
Now I know the Maven error is a package dependency error after reading the Maven document, so I tried to build them in order: org.springframework.asm, org.springframework.core, org.springframework.beans.
The script is as follows:
Here is the error message while building beans:Code:#!/bin/sh SPRING_FRAMEWORK_DIR=`pwd` IVY_CACHE_REPO=$SPRING_FRAMEWORK_DIR/ivy-cache/repository MAVEN_INSTALL="mvn install:install-file " MAVEN_TEST="mvn test" ##asm cd $SPRING_FRAMEWORK_DIR/org.springframework.asm $MAVEN_INSTALL -DgroupId=com.google.code -DartifactId=jarjar -Dversion=1.0 -Dpackaging=jar -Dfile=$IVY_CACHE_REPO/com.google.jarjar/com.springsource.com.tonicsystems.jarjar/1.0.0/com.springsource.com.tonicsystems.jarjar-1.0.0.jar $MAVEN_TEST ##core cd $SPRING_FRAMEWORK_DIR/org.springframework.core $MAVEN_INSTALL -DgroupId=org.springframework -DartifactId=spring-asm -Dversion=3.1.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=$SPRING_FRAMEWORK_DIR/org.springframework.asm/target/spring-asm-3.1.0.BUILD-SNAPSHOT-jarjar.jar $MAVEN_TEST ##beans cd $SPRING_FRAMEWORK_DIR/org.springframework.beans $MAVEN_INSTALL -DgroupId=org.springframework -DartifactId=spring-core -Dversion=3.1.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=../org.springframework.core/target/artifacts/org.springframework.core.jar $MAVEN_TEST
The purpose I'm using Maven is to do the individual Junit test to debug the framework which got error mentioned previously. Is there anything wrong with my operations or my build environment?Code:$ mvn test [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - org.springframework:spring-beans:jar:3.1.0.BUILD-SNAPSHOT [INFO] task-segment: [test] [INFO] ------------------------------------------------------------------------ [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 21 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources {execution: default-testResources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 50 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: /home/sunny/workshop/codes_in_git/spring-framework/org.springframework.beans/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.springframework.beans.factory.xml.BeanNameGenerationTests Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE! Running org.springframework.beans.factory.access.SingletonBeanFactoryLocatorTests Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE! ...... Tests run: 831, Failures: 5, Errors: 649, Skipped: 5 [INFO] ------------------------------------------------------------------------
Meanwhile, my way on checking the dependencies is inefficient, would you mind to tell something about the daily-build? or any document related in the web? TIA.
Any other suggestions will also be appreciated. Thanks.
Hi ksalic,
I just tested this and the download files that are at the community download center worked just fine for me. Specifically I was able to download Spring 3.0.5 which is the latest GA release.
If you continue to have problems, please post your OS and browser version details here so that we can see if there is a problem with your environment.
Regards
Adam
Adam FitzGerald
SpringSource
@eric. - the Maven POMs you see in the source tree exist primarily as dependency descriptors only. We publish these poms when uploading Spring Jars to our internal Maven repositories and to Maven Central, but we do not use them to build. For that, we use ant (which I thought you were doing too).
Simply run the following from the root of the source tree. It should work.
This will build all the jarsCode:>$ ant -f build-spring-framework/build.xml jar
To install those jars in your local Maven ~/.m2/repository cache:
To run all tests:Code:>$ ant -f build-spring-framework/build.xml install-maven
The point is, that if you're having trouble with the tests, you don't necessarily have to run them just to build spring locally.Code:>$ ant -f build-spring-framework/build.xml test
Hi ksalic,, Thankyou for your response. I am saying that unlike spring2.5.6 direct jar, spring 3.0.5 jar is not available.we have to build it from release.Can we have a direct jar instead of entire release to build like for spring 2.5.6
I'm not quite sure that I understand your request. What do you mean by "direct jar"? You do not have to build Spring from source for any released version. The complete compiled jar file is available from the community download center, specifically the Spring 3.0.5 release is there.
If you are referring to the old Spring-with-dependencies versions that we previously made available then that is a different matter. We have stopped releasing those because of the prevalence of common build systems like Maven that help you add only the libraries you need to your project. If you are not familiar with Maven then I recommend reading the Green Beans post: Getting Started with Maven and Spring.
If you continue to have problems or are not able to see the files I have identified in the links above, please post your OS and browser version details here so that we can see if there is a problem with your environment.
Regards
Adam
Adam FitzGerald
SpringSource
@Chris Beams,
Thank you for your reply.
These commands do work. But I still have questions might be bothering ( sorry for that ): How can I trust them if their tests fail? How can I develop over them if I can't make the tests run?
Anyway, would you mind to give a trustful version which all tests run successfully (older version is ok) ? Thanks in advance.
Regards,
Eric
Sure. Just check out the 3.0.5.RELEASE tag and build from there.
https://src.springframework.org/svn/...3.0.5.RELEASE/
- C