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/cr
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-beta
-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-beta
-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:13
8)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle
(DefaultLifecycleExecutor.java:896)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Defaul
tLifecycleExecutor.java:739)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:510)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:224)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
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.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
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]
------------------------------------------------------------------------
--
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
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------