Announcement Announcement Module
Collapse
No announcement yet.
How to build Spring Security Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to build Spring Security

    Hello everyone,
    I learned Spring Securiy following the tutorail http://static.springsource.org/sprin...ite/build.html.
    I download Spring Security Source using msysgit and running command "git clone git://github.com/SpringSource/spring-security.git" successfully‚But when i build Spring Security through command 'gradlew build', some errors occured as following:
    00:18:14.953 [ERROR] [org.gradle.BuildExceptionReporter]
    00:18:14.953 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
    00:18:14.968 [ERROR] [org.gradle.BuildExceptionReporter]
    00:18:14.968 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
    00:18:14.968 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':spring-security-core:test'.
    00:18:14.984 [ERROR] [org.gradle.BuildExceptionReporter] Cause: There were failing tests. See the report at C:\Documents
    and Settings\Administrator\spring-security\core\build\reports\tests.
    00:18:14.984 [ERROR] [org.gradle.BuildExceptionReporter]
    00:18:14.984 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
    00:18:14.984 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed f
    or task ':spring-security-core:test'.
    00:18:15.000 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAct ion
    sTaskExecuter.executeActions(ExecuteActionsTaskExe cuter.java:71)
    00:18:15.000 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAct ion
    sTaskExecuter.execute(ExecuteActionsTaskExecuter.j ava:48)
    00:18:15.000 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecut ion
    AnalysisTaskExecuter.execute(PostExecutionAnalysis TaskExecuter.java:34)
    00:18:15.015 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDa teT
    askExecuter.execute(SkipUpToDateTaskExecuter.java: 55)
    00:18:15.015 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.Validating Tas
    kExecuter.execute(ValidatingTaskExecuter.java:57)
    00:18:15.015 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptyS our
    ceFilesTaskExecuter.execute(SkipEmptySourceFilesTa skExecuter.java:41)
    00:18:15.031 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWi thN
    oActionsExecuter.execute(SkipTaskWithNoActionsExec uter.java:51)
    00:18:15.031 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIf Tas
    kExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
    00:18:15.031 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtM ost
    OnceTaskExecuter.execute(ExecuteAtMostOnceTaskExec uter.java:42)
    00:18:15.031 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.execute(Abstr act
    Task.java:237)
    00:18:15.046 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.exec ute
    Task(DefaultTaskGraphExecuter.java:167)
    00:18:15.046 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.doEx ecu
    te(DefaultTaskGraphExecuter.java:160)
    00:18:15.046 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.exec ute
    (DefaultTaskGraphExecuter.java:78)
    00:18:15.062 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.TaskNameResolvingBuildExecute r.e
    xecute(TaskNameResolvingBuildExecuter.java:113)
    00:18:15.062 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DelegatingBuildExecuter.execu te(
    DelegatingBuildExecuter.java:54)
    00:18:15.062 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.do Bui
    ldStages(DefaultGradleLauncher.java:158)
    00:18:15.078 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.do Bui
    ld(DefaultGradleLauncher.java:112)
    00:18:15.078 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.ru n(D
    efaultGradleLauncher.java:80)
    00:18:15.078 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.RunBuildAction.execute(RunBuil dAc
    tion.java:41)
    00:18:15.078 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.RunBuildAction.execute(RunBuil dAc
    tion.java:27)
    00:18:15.093 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ExceptionReportingAction.execu te(
    ExceptionReportingAction.java:32)
    00:18:15.093 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ExceptionReportingAction.execu te(
    ExceptionReportingAction.java:21)
    00:18:15.093 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$WithL ogg
    ingAction.execute(CommandLineActionFactory.java:21 9)
    00:18:15.109 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.CommandLineActionFactory$WithL ogg
    ingAction.execute(CommandLineActionFactory.java:20 3)
    00:18:15.109 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.execute(Main.java:55)
    00:18:15.109 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:40)
    00:18:15.125 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.runNoExit(Pro ces
    sBootstrap.java:46)
    00:18:15.125 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.run(ProcessBo ots
    trap.java:28)
    00:18:15.125 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.jav a:2
    4)
    00:18:15.125 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.BootstrapMainStarter.start(Boot str
    apMainStarter.java:33)
    00:18:15.140 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.Wrapper.execute(Wrapper.java:51 )
    00:18:15.140 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.GradleWrapperMain.main(GradleWr app
    erMain.java:37)
    00:18:15.140 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.api.GradleException: There were failing t
    ests. See the report at C:\Documents and Settings\Administrator\spring-security\core\build\reports\tests.
    00:18:15.156 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.tasks.testing.Test.executeTests(Tes t.j
    ava:337)
    00:18:15.156 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.BeanDynamicObject.invokeMe tho
    d(BeanDynamicObject.java:158)
    00:18:15.156 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CompositeDynamicObject.inv oke
    Method(CompositeDynamicObject.java:93)
    00:18:15.171 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.tasks.testing.Test_Decorated.invoke Met
    hod(Unknown Source)
    00:18:15.171 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.util.ReflectionUtil.invoke(ReflectionUt il.
    groovy:23)
    00:18:15.171 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.Annota tio
    nProcessingTaskFactory$2.execute(AnnotationProcess ingTaskFactory.java:129)
    00:18:15.171 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.Annota tio
    nProcessingTaskFactory$2.execute(AnnotationProcess ingTaskFactory.java:127)
    00:18:15.187 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAct ion
    sTaskExecuter.executeActions(ExecuteActionsTaskExe cuter.java:63)
    00:18:15.187 [ERROR] [org.gradle.BuildExceptionReporter] ... 31 more
    00:18:15.187 [ERROR] [org.gradle.BuildExceptionReporter]
    00:18:15.203 [LIFECYCLE] [org.gradle.BuildResultLogger]
    00:18:15.203 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
    00:18:15.203 [LIFECYCLE] [org.gradle.BuildResultLogger]
    I also had to check report in "C:\Documents and Settings\Administrator\spring-security\core\build\reports\tests" out, but nothing found.
    This is my fist topics in English, please forgive any errors.
    Anybody please tell me the answer,thank you very much.
    Last edited by Dreamsfly; Jul 2nd, 2012, 12:06 PM.

  • #2
    Hi,

    I encountered a similar error when building the master. It might be due to your language platform : see https://jira.springsource.org/browse/SEC-1981.
    Best regards,
    Jérôme

    Comment


    • #3
      To follow up on the error reports not showing up for you....Gradle states to look at the html reports by default. We currently disable the html reports as this speeds up the build fairly significantly. You can either enable the reports in javaprojects.gradle by setting testReport = true or you can view the XML reports at <project>/build/test-results. I tend to open the XML files in Eclipse which will display the file in the JUnit view.

      Comment

      Working...
      X