incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benner <gothi...@gmx.de>
Subject Re: Compiling S4 piper
Date Mon, 23 Jul 2012 15:15:44 GMT


Hi Daniel,

it worked perfectly for me, thanks a lot. Does anyone have an
explanation for this?

Regards,
Benjamin Süß

On 07/23/2012 03:57 PM, Daniel Gómez Ferro wrote:
> Hi Benjamin,
>
> Sometimes I had a similar problem, I resolved it cleaning my maven
> cached repository.
>
> Try removing your log4j entry, something like the following (your
> repository location might be different):
>
> rm -r ~/.m2/repository/log4j/log4j/1.2.15/
>
> On Mon Jul 23 13:42:08 2012, benner wrote:
>> The extra information provided by --stacktrace is:
>>
>> install@install-VirtualBox:~/src/incubator-s4$ ./gradlew install
>> --stacktrace
>>
>> FAILURE: Build failed with an exception.
>>
>> * Where:
>> Build file '/home/install/src/incubator-s4/build.gradle' line: 152
>>
>> * What went wrong:
>> A problem occurred evaluating root project 's4'.
>>   > Could not resolve all dependencies for configuration
>> ':s4-base:runtime'.
>>      > Artifact 'log4j:log4j:1.2.15@jar' not found.
>>
>> * Try:
>> Run with --info or --debug option to get more log output.
>>
>> * Exception is:
>> org.gradle.api.GradleScriptException: A problem occurred evaluating root
>> project 's4'.
>>       at
>> org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
>>
>>       at
>> org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:127)
>>
>>       at
>> org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:38)
>>
>>       at
>> org.gradle.configuration.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:43)
>>
>>       at
>> org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:462)
>>
>>       at
>> org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:74)
>>
>>       at
>> org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:23)
>>
>>       at
>> org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:21)
>>
>>       at
>> org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:38)
>>
>>       at
>> org.gradle.configuration.DefaultBuildConfigurer$1.execute(DefaultBuildConfigurer.java:35)
>>
>>       at
>> org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:438)
>>
>>       at
>> org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:433)
>>
>>       at
>> org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
>>
>>       at
>> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:139)
>>
>>       at
>> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:110)
>>
>>       at
>> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:78)
>>
>>       at
>> org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42)
>>       at
>> org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28)
>>       at
>> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
>>
>>       at
>> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
>>
>>       at
>> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
>>
>>       at
>> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
>>
>>       at
>> org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReportingAction.java:31)
>>
>>       at
>> org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReportingAction.java:20)
>>
>>       at org.gradle.launcher.Main.doAction(Main.java:48)
>>       at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:45)
>>       at org.gradle.launcher.Main.main(Main.java:39)
>>       at
>> org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
>>       at
>> org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:32)
>>       at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
>>       at
>> org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
>>
>>       at
>> org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
>>       at
>> org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:47)
>> Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve
>> all dependencies for configuration ':s4-base:runtime'.
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver.wrapException(ErrorHandlingArtifactDependencyResolver.java:47)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver.access$000(ErrorHandlingArtifactDependencyResolver.java:26)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingArtifactDependencyResolver.java:80)
>>
>>       at
>> org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:460)
>>
>>       at
>> org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:203)
>>
>>       at
>> org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown
>>
>> Source)
>>       at
>> org.gradle.api.internal.file.collections.MinimalFileSet$getFiles.call(Unknown
>>
>> Source)
>>       at
>> build_34ckt0i3cpc3m05drk94gdoi6b$_run_closure6_closure14_closure15.doCall(/home/install/src/incubator-s4/build.gradle:152)
>>
>>       at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:141)
>>       at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:90)
>>       at
>> org.gradle.api.internal.file.copy.CopySpecImpl.into(CopySpecImpl.java:141)
>>
>>       at
>> org.gradle.api.internal.file.copy.CopySpecImpl.into(CopySpecImpl.java:36)
>>
>>       at
>> build_34ckt0i3cpc3m05drk94gdoi6b$_run_closure6_closure14.doCall(/home/install/src/incubator-s4/build.gradle:150)
>>
>>       at
>> build_34ckt0i3cpc3m05drk94gdoi6b$_run_closure6.doCall(/home/install/src/incubator-s4/build.gradle:149)
>>
>>       at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:141)
>>       at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:90)
>>       at
>> org.gradle.api.internal.file.DefaultFileOperations.copySpec(DefaultFileOperations.java:138)
>>
>>       at
>> org.gradle.api.internal.project.AbstractProject.copySpec(AbstractProject.java:810)
>>
>>       at org.gradle.api.Project$copySpec.call(Unknown Source)
>>       at
>> org.gradle.groovy.scripts.DefaultScript.copySpec(DefaultScript.groovy:145)
>>
>>       at org.gradle.api.Script$copySpec.callCurrent(Unknown Source)
>>       at
>> build_34ckt0i3cpc3m05drk94gdoi6b.run(/home/install/src/incubator-s4/build.gradle:148)
>>
>>       at
>> org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
>>
>>       ... 32 more
>> Caused by:
>> org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ArtifactNotFoundException:
>>
>> Artifact 'log4j:log4j:1.2.15@jar' not found.
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain$ModuleVersionRepositoryBackedArtifactResolver.resolve(UserResolverChain.java:168)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LazyDependencyToModuleResolver$ErrorHandlingArtifactResolver.resolve(LazyDependencyToModuleResolver.java:59)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.ResolvedArtifactFactory$1$1.create(ResolvedArtifactFactory.java:39)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.ResolvedArtifactFactory$1$1.create(ResolvedArtifactFactory.java:37)
>>
>>       at
>> org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:126)
>>
>>       at
>> org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:99)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.useCache(DefaultCacheLockingManager.java:49)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.ResolvedArtifactFactory$1.get(ResolvedArtifactFactory.java:37)
>>
>>       at
>> org.gradle.api.internal.artifacts.DefaultResolvedArtifact.getFile(DefaultResolvedArtifact.java:107)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactFileResolver.getFile(DefaultLenientConfiguration.java:137)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.getFiles(DefaultLenientConfiguration.java:115)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.getFilesStrict(DefaultLenientConfiguration.java:98)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfiguration.getFiles(DefaultResolvedConfiguration.java:45)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.getFiles(SelfResolvingDependencyResolver.java:56)
>>
>>       at
>> org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingArtifactDependencyResolver.java:78)
>>
>>       ... 52 more
>>
>>
>> BUILD FAILED
>>
>> Total time: 10.158 secs
>>
>> So is this kind of a bug or can I fix it on my own?
>>
>> Regards,
>> Benjamin Süß
>>
>> On 07/23/2012 01:30 PM, Matthieu Morel wrote:
>>> Thanks for reporting that. Probably related to the resolution of
>>> transitive dependencies.
>>>
>>> What extra information do you get with the --stacktrace option?
>>>
>>> Thanks,
>>>
>>> Matthieu
>>>
>>> On 7/23/12 1:24 PM, benner wrote:
>>>> I've been following the S4 piper walkthrough at
>>>> https://cwiki.apache.org/confluence/display/S4/S4+piper+walkthrough.
>>>>
>>>> This is what happens when running "./gradlew install -DskipTests":
>>>>
>>>> ...................................................................................................................
>>>>
>>>>
>>>>
>>>> install@install-VirtualBox:~/src/incubator-s4$ ./gradlew install
>>>> -DskipTests
>>>>
>>>> FAILURE: Build failed with an exception.
>>>>
>>>> * Where:
>>>> Build file '/home/install/src/incubator-s4/build.gradle' line: 152
>>>>
>>>> * What went wrong:
>>>> A problem occurred evaluating root project 's4'.
>>>>   > Could not resolve all dependencies for configuration
>>>> ':s4-base:runtime'.
>>>>      > Artifact 'log4j:log4j:1.2.15@jar' not found.
>>>>
>>>> * Try:
>>>> Run with --stacktrace option to get the stack trace. Run with
>>>> --info or
>>>> --debug option to get more log output.
>>>>
>>>> BUILD FAILED
>>>>
>>>> Total time: 12.336 secs
>>>> ...................................................................................................................
>>>>
>>>>
>>>>
>>>>
>>>> I am totally new to S4. I have been trying to fix this myself, but so
>>>> far I haven't found any solution.
>>>> I am running Ubuntu 11.04 as a VirtualBox guest using Java 1.6.
>>>>
>>>> Any help will be appreciated.
>>>>
>>>> Regards,
>>>> Benjamin Süß
>>>>
>>>>
>>>>
>>>
>>
>>






Mime
View raw message