[Hippo-cms7-user BETA] problem building with maven

Bart van der Schans schans at onehippo.com
Mon Jul 21 16:27:20 CEST 2008


Jettro Coenradie wrote:
> cleaning the repo did at least part of the trick. Had problems with unit
> test when doing mvn package, but they seem to be resolved after a maven
> install. Not sure if that was the problem though.
Could be. You have to run a mvn install before you can run mvn package.

>
> At the moment I am running on the latest and greatest source using jetty.
Great!

>
> thanks for the help
You're welcome ;)

Regards,
Bart


>
> On Jul 21, 2008, at 2:27 PM, Wander Grevink wrote:
>
>> Are you on maven >= 2.0.9?
>>
>> If you are on windows, did you move your maven repository to a
>> directory with no spaces?
>> (See http://docs.onehippo.org/hippo-ecm/building/maven.html)
>>
>> Otherwise cleaning (deleting) your local maven repository might help.
>>
>> Wander
>>
>>
>> Jettro Coenradie wrote:
>>> Hi,
>>> to see if I can use the latest and greatest, I am trying to build
>>> with maven. I get the following exception. Does someone know how to
>>> resolve this? I am also having some problems with unit tests, but I
>>> switched them of for now. For completeness I'll add them to the
>>> bottom of the mail as well.
>>> Downloading:
>>> http://www.jpox.org/downloads/maven2//velocity/velocity/1.5/velocity-1.5.pom
>>> Downloading:
>>> http://library:8080/artifactory/repo/velocity/velocity/1.5/velocity-1.5.pom
>>> Downloading:
>>> http://repository.hippocms.org/maven2//velocity/velocity/1.5/velocity-1.5.pom
>>> Downloading:
>>> http://repository.hippocms.org/maven//velocity/poms/velocity-1.5.pom
>>> Downloading:
>>> http://repository.codehaus.org/org/codehaus/mojo//velocity/velocity/1.5/velocity-1.5.pom
>>> Downloading:
>>> http://www.jpox.org/downloads/maven//velocity/poms/velocity-1.5.pom
>>> Downloading:
>>> http://download.java.net/maven/glassfish/velocity/velocity/1.5/velocity-1.5.pom
>>> Downloading:
>>> http://maven.openqa.org/velocity/velocity/1.5/velocity-1.5.pom
>>> Downloading:
>>> http://library:8080/artifactory/repo/velocity/velocity/1.5/velocity-1.5.pom
>>> [INFO] Setting property: classpath.resource.loader.class =>
>>> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>>> [INFO] Setting property: velocimacro.messages.on => 'false'.
>>> [INFO] Setting property: resource.loader => 'classpath'.
>>> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] FATAL ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] org/apache/commons/lang/StringUtils
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Trace
>>> java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
>>> at
>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:165)
>>> at
>>> org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:594)
>>> at
>>> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:241)
>>> at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116)
>>> at
>>> org.codehaus.plexus.velocity.DefaultVelocityComponent.initialize(DefaultVelocityComponent.java:79)
>>> at
>>> org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)
>>> at
>>> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>>> at
>>> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>> at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
>>> at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
>>> at
>>> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
>>> at
>>> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
>>> at
>>> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>>> at
>>> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>> at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
>>> at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
>>> at
>>> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
>>> at
>>> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
>>> at
>>> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>>> at
>>> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>> at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
>>> at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
>>> at
>>> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
>>> at
>>> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
>>> at
>>> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>>> at
>>> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>> at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
>>> at
>>> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
>>> at
>>> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
>>> at
>>> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
>>> at
>>> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
>>> at
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>>> at
>>> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
>>> at
>>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:609)
>>> at
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:429)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>>> 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:585)
>>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 2 minutes 15 seconds
>>> [INFO] Finished at: Mon Jul 21 13:07:35 CEST 2008
>>> [INFO] Final Memory: 38M/63M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running org.hippoecm.repository.RedefineNodetypeTest
>>> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 4.421
>>> sec <<< FAILURE!
>>> Running org.hippoecm.repository.VersioningWorkflowTest
>>> Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 4.704
>>> sec <<< FAILURE!
>>> Running org.hippoecm.repository.FolderWorkflowTest
>>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 4.697
>>> sec <<< FAILURE!
>>> Results :
>>> Tests in error:
>>> testTemplateFolder(org.hippoecm.repository.FolderWorkflowTest)
>>> testTemplateFolder(org.hippoecm.repository.FolderWorkflowTest)
>>> Tests run: 12, Failures: 0, Errors: 12, Skipped: 0
>>> groeten Jettro
>>> *
>>> *
>>> Jettro Coenradie* - jettro at jteam.nl <mailto:jettro at jteam.nl> -
>>> http://www.jteam.nl - linkedin <http://www.linkedin.com/in/jettro>
>>> *Phone*: +31(0)20 486 20 36 *Fax*: +31(0)20 475 08 28 *Mobile*:
>>> +31(0)6 3473 9912 Frederiksplein 1 - 1017 XK - Amsterdam - The
>>> Netherlands
>>> *
>>> ------------------------------------------------------------------------
>>> _______________________________________________
>>> Hippo-cms7-user mailing list
>>> Hippo-cms7-user at lists.hippo.nl <mailto:Hippo-cms7-user at lists.hippo.nl>
>>> http://lists.hippo.nl/mailman/listinfo/hippo-cms7-user
>> _______________________________________________
>> Hippo-cms7-user mailing list
>> Hippo-cms7-user at lists.hippo.nl <mailto:Hippo-cms7-user at lists.hippo.nl>
>> http://lists.hippo.nl/mailman/listinfo/hippo-cms7-user
>
>
> groeten Jettro
> *
> *
> Jettro Coenradie* - jettro at jteam.nl <mailto:jettro at jteam.nl> -
> http://www.jteam.nl - linkedin <http://www.linkedin.com/in/jettro>
> *Phone*: +31(0)20 486 20 36 *Fax*: +31(0)20 475 08 28 *Mobile*: +31(0)6
> 3473 9912
> Frederiksplein 1 - 1017 XK - Amsterdam - The Netherlands
> *
>


-- 
Hippo B.V.  -  Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466

Hippo USA Inc.  -  San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
-----------------------------------------------------------------
http://www.onehippo.com   -  info at onehippo.com
-----------------------------------------------------------------



More information about the Hippo-cms7-user mailing list