Hi Adrian, the reason svn update solved problem before was because Gregory fixed the dependencies in pom.xml which were not correct. This is not so in this case. pom.xml for shell module is perfectly valid. If you look at http://documentation.magnolia.info/modules.html you will find out that shell module depends on Magnolia 3.6+ and its pom.xml points to Magnolia 3.6-SNAPSHOT as its parent, while you are trying to compile it with having Magnolia 3.5.8 as a parent. Thus the compilation failure. To build the module, you need to build current trunk of Magnolia since version 3.6 was not released yet.
And it tells you exactly what is wrong if you read the error properly: > :magnolia-project' not found in repository: Unable to download the > artifact from > any repository > > info.magnolia:magnolia-project:pom:3.6-SNAPSHOT > Regards, Jan On Wed, 2008-07-16 at 19:44 +0200, Adrian Butnaru wrote: > Thnaks Gregory, > Worked! > But now I have the same problem with magnolia-module-shell. I tried the > same solution but it failed. > I paste here the result. > > D:\magnolia-3.5.8\magnolia-module-shell>mvn -e install > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error building POM (may not be this project's POM). > > > Project ID: null:magnolia-module-shell:jar:1.0-SNAPSHOT > > Reason: Cannot find parent: info.magnolia:magnolia-project for project: > null:mag > nolia-module-shell:jar:1.0-SNAPSHOT for project > null:magnolia-module-shell:jar:1 > .0-SNAPSHOT > > > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.reactor.MavenExecutionException: Cannot find parent: > info.magno > lia:magnolia-project for project: > null:magnolia-module-shell:jar:1.0-SNAPSHOT fo > r project null:magnolia-module-shell:jar:1.0-SNAPSHOT > at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:376) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:289) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > 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) > Caused by: org.apache.maven.project.ProjectBuildingException: Cannot > find parent > : info.magnolia:magnolia-project for project: > null:magnolia-module-shell:jar:1.0 > -SNAPSHOT for project null:magnolia-module-shell:jar:1.0-SNAPSHOT > at > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D > efaultMavenProjectBuilder.java:1259) > at > org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def > aultMavenProjectBuilder.java:745) > at > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi > leInternal(DefaultMavenProjectBuilder.java:476) > at > org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave > nProjectBuilder.java:197) > at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:548) > at > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:458) > at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:362) > ... 11 more > Caused by: org.apache.maven.project.ProjectBuildingException: POM > 'info.magnolia > :magnolia-project' not found in repository: Unable to download the > artifact from > any repository > > info.magnolia:magnolia-project:pom:3.6-SNAPSHOT > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > for project info.magnolia:magnolia-project > at > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo > sitory(DefaultMavenProjectBuilder.java:571) > at > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D > efaultMavenProjectBuilder.java:1255) > ... 17 more > Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: > Unable > to download the artifact from any repository > > info.magnolia:magnolia-project:pom:3.6-SNAPSHOT > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De > faultArtifactResolver.java:206) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De > faultArtifactResolver.java:73) > at > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo > sitory(DefaultMavenProjectBuilder.java:524) > ... 18 more > Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable > to downl > oad the artifact from any repository > at > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def > aultWagonManager.java:324) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De > faultArtifactResolver.java:194) > ... 20 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: < 1 second > [INFO] Finished at: Wed Jul 16 19:42:31 CEST 2008 > [INFO] Final Memory: 1M/4M > [INFO] > ------------------------------------------------------------------------ > Grégory Joseph schreef: > > svn update > > > > On Jul 16, 2008, at 7:26 PM, Adrian Butnaru wrote: > > > >> Hi, > >> I checked out the forum module (also poll, pur, wiki module). When I > >> try to build with maven I receive the following result. What am I do > >> wrong? > >> Can anybody help? > >> > >> Thanks, > >> Adrian > >> > >> D:\magnolia-3.5.8\magnolia-module-forum>mvn -e install > >> + Error stacktraces are turned on. > >> [INFO] Scanning for projects... > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Building magnolia-module-forum > >> [INFO] task-segment: [install] > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] [enforcer:enforce {execution: enforce}] > >> [INFO] [setproperty:set-property {execution: currentDate}] > >> [INFO] property magnoliaCurrentDate set to value 16. juli 2008 > >> (scope: project) > >> [INFO] property magnoliaNiceVersion set to value 1.0 (Snapshot: > >> 16.07.2008 19:23 > >> :14) (scope: project) > >> [INFO] property magnoliaReleaseDate set to value 16. juli 2008 > >> (scope: project) > >> [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] [remote-resources:process {execution: default}] > >> [INFO] [resources:resources] > >> [INFO] Using encoding: 'UTF-8' to copy filtered resources. > >> [INFO] [compiler:compile] > >> [INFO] Nothing to compile - all classes are up to date > >> [INFO] [compiler:testCompile {execution: compile-tests}] > >> [INFO] Compiling 4 source files to > >> D:\magnolia-3.5.8\magnolia-module-forum\targe > >> t\test-classes > >> [INFO] > >> ------------------------------------------------------------------------ > >> [ERROR] BUILD FAILURE > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Compilation failure > >> > >> D:\magnolia-3.5.8\magnolia-module-forum\src\test\java\info\magnolia\module\forum > >> > >> > >> \DefaultForumManagerTest.java:[52,28] cannot find symbol > >> symbol : class SingleJCRSessionSystemContext > >> location: package info.magnolia.context > >> > >> D:\magnolia-3.5.8\magnolia-module-forum\src\test\java\info\magnolia\module\forum > >> > >> > >> \DefaultForumManagerTest.java:[130,66] cannot find symbol > >> symbol : class SingleJCRSessionSystemContext > >> location: class info.magnolia.module.forum.DefaultForumManagerTest > >> > >> > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Trace > >> org.apache.maven.BuildFailureException: Compilation failure > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > >> ultLifecycleExecutor.java:560) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi > >> fecycle(DefaultLifecycleExecutor.java:480) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau > >> ltLifecycleExecutor.java:459) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > >> dleFailures(DefaultLifecycleExecutor.java:311) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > >> ts(DefaultLifecycleExecutor.java:278) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > >> fecycleExecutor.java:143) > >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > >> java:39) > >> at > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > >> sorImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:597) > >> 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) > >> Caused by: org.apache.maven.plugin.CompilationFailureException: > >> Compilation fail > >> ure > >> at > >> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler > >> Mojo.java:516) > >> at > >> org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.jav > >> a:102) > >> at > >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > >> nManager.java:447) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > >> ultLifecycleExecutor.java:539) > >> ... 16 more > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Total time: 5 seconds > >> [INFO] Finished at: Wed Jul 16 19:23:17 CEST 2008 > >> [INFO] Final Memory: 18M/32M > >> [INFO] > >> ------------------------------------------------------------------------ > >> > >> ---------------------------------------------------------------- > >> for list details see > >> http://documentation.magnolia.info/ > >> ---------------------------------------------------------------- > > > > > > ---------------------------------------------------------------- > > for list details see > > http://documentation.magnolia.info/ > > ---------------------------------------------------------------- > > > > > > > ---------------------------------------------------------------- > for list details see > http://documentation.magnolia.info/ > ---------------------------------------------------------------- ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/ ----------------------------------------------------------------
