It's seemed to be the java version, but it isn't. I can only say this, my error only shows up if I check yout the Magnolia source code from [1], navigate to this folder and execute the "old" maven command [2]. I've seen that the Wiki page regarding the "Module Quickstart" has changed and with the new commands everything works fine regardless of java version or folder that I'm currently in.
By the way Maven requires a JDK 1.4 or above according to [3]. Thanks anyway Regards Arun [1]http://svn.magnolia.info/svn/magnolia/trunk [2]mvn archetype:create -DarchetypeGroupId=info.magnolia \ -DarchetypeArtifactId=maven-archetype-magnolia-module \ -DarchetypeVersion=1.0 \ -DremoteRepositories=http://maven.magnolia.info/m2 \ -DgroupId=com.foo.bar \ -DartifactId=my-module [3]http://maven.apache.org/download.html#Requirements -- Weekends don't count unless you spend them doing something completely pointless. Life's disappointments are harder to take Calvin & Hobbes when you don't know any swear words. Arun Ramkissoon [EMAIL PROTECTED] -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 1:56 PM To: [email protected] Subject: Re: [magnolia-user] Problem creating new Magnolia module Looks like maven wants a higher version java. Specifically it's trying to use Class.getSimpleName() which aparently isn't available in your java version. I can't find a definitive resource on the minimum version java for maven, but try it with 1.5 or better. --David Ramkissoon, Arun Philipp wrote: >I'm having problems to create a new module using the >maven-archetype-magnolia-module. I'm trying to follow the instruction >from [1] and [2], but I don't get anywhere. >I think I don't really understand the following instruction from [1]: >----------------------------------------------------------------------- - >After checking out the Magnolia source code go to the new folder and run >the Maven command: > >mvn archetype:create -DarchetypeGroupId=info.magnolia \ > -DarchetypeArtifactId=maven-archetype-magnolia-module \ > -DarchetypeVersion=1.0.0-SNAPSHOT \ > -DgroupId=com.foo.bar \ > -DartifactId=my-module \ > -DremoteRepositories=http://svn.magnolia.info/maven/snapshots >----------------------------------------------------------------------- - >I assumed "Magnolia source code" refers to the contents of [3], which I >then checked out. Then I opened a console, navigated to that folder and >ran the command shown above. Doing that I only get a >java.lang.NoSuchMethod error from Maven. >What am I doing wrong? >The full Maven output is this [4]. I included the whole output in the >email as well, just in case. > >Specs: > Maven version: 2.0.8 > Java version: 1.4.2_04 > OS name: "windows xp" > version: "5.1" > arch: "x86" > Family: "windows" > >Thx for reading >Regards Arun > >[1]http://documentation.magnolia.info/docs/en/developer/custommodules/c r >eatemodule.html >[2]http://wiki.magnolia.info/display/WIKI/Module+QuickStart >[3]http://svn.magnolia.info/svn/magnolia/trunk >[4]http://pastebin.com/m55d2aa10 > > >D:\prompt>mvn archetype:create -DarchetypeGroupId=info.magnolia >-DarchetypeArtifactId=maven-archetype-magnolia-module >-DarchetypeVersion=1.0.0-SNAPSHOT -DgroupId=de.my.start >-DartifactId=startingmodule >-DremoteRepositories=http://svn.magnolia.info/maven/snapshots >[INFO] Scanning for projects... >[INFO] Reactor build order: >[INFO] magnolia-project >[INFO] magnolia-core >[INFO] magnolia-jaas >[INFO] magnolia-module-exchange-simple >[INFO] magnolia-gui >[INFO] magnolia-module-admininterface >[INFO] magnolia-module-mail >[INFO] magnolia-module-templating >[INFO] magnolia-module-workflow >[INFO] magnolia-module-cache >[INFO] magnolia-taglib-cms >[INFO] magnolia-taglib-utility >[INFO] magnolia-editor-fckeditor >[INFO] magnolia-module-samples >[INFO] magnolia-empty-webapp >[INFO] Searching repository for plugin with prefix: 'archetype'. >[INFO] >----------------------------------------------------------------------- - >[INFO] Building magnolia-project >[INFO] task-segment: [archetype:create] (aggregator-style) >[INFO] >----------------------------------------------------------------------- - >[INFO] Preparing archetype:create >Downloading: >http://svn.magnolia.info/maven/m2/de/my/start/wagon-http-shared/1.0-bet a >-2/wagon-http-shared-1.0-beta-2.pom >Downloading: >http://repo1.maven.org/maven2/de/my/start/wagon-http-shared/1.0-beta-2/ w >agon-http-shared-1.0-beta-2.pom >Downloading: >http://svn.magnolia.info/maven/m2/de/my/start/wagon-http-shared/1.0-bet a >-2/wagon-http-shared-1.0-beta-2.pom >Downloading: >http://maven.openwfe.org/prereleases/de/my/start/wagon-http-shared/1.0- b >eta-2/wagon-http-shared-1.0-beta-2.pom >Downloading: >http://repo1.maven.org/maven2/de/my/start/wagon-http-shared/1.0-beta-2/ w >agon-http-shared-1.0-beta-2.pom >[INFO] [enforcer:enforce {execution: enforce}] >[INFO] >----------------------------------------------------------------------- - >[ERROR] FATAL ERROR >[INFO] >----------------------------------------------------------------------- - >[INFO] java.lang.Class.getSimpleName()Ljava/lang/String; >[INFO] >----------------------------------------------------------------------- - >[INFO] Trace >java.lang.NoSuchMethodError: >java.lang.Class.getSimpleName()Ljava/lang/String; > at >org.apache.maven.plugin.enforcer.EnforceMojo.execute(EnforceMojo.java:1 3 >8) > at >org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginM a >nager.java:447) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul t >LifecycleExecutor.java:539) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLife c >ycle(DefaultLifecycleExecutor.java:480) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycl e >(DefaultLifecycleExecutor.java:896) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Defau l >tLifecycleExecutor.java:739) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul t >LifecycleExecutor.java:510) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGo a >l(DefaultLifecycleExecutor.java:493) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Default L >ifecycleExecutor.java:463) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl e >Failures(DefaultLifecycleExecutor.java:311) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments ( >DefaultLifecycleExecutor.java:224) > at >org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife c >ycleExecutor.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.ja v >a:39) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso r >Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > 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: 5 seconds >[INFO] Finished at: Wed Feb 13 09:54:07 CET 2008 >[INFO] Final Memory: 7M/13M >[INFO] >----------------------------------------------------------------------- - > > ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ---------------------------------------------------------------- ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
