Hi Mavenists,
  I'm a newbie to maven. I have done with installation of maven and
env-variable settings.
And also have starting mu local maven repository.

I tired creating a project with the help of the following command

cmd prompt> mvn archetype:create
-DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.learning.app
-DartifactId=PortletSpringApp -Dpackaging=war

This command failed to create a project due to the following error:
The stack trace of the error is following my java version and maven specs.

STACK TRACE:


C:\Arvind\Eclipse_ws>javac -versioon
javac: invalid flag: -versioon
Usage: javac <options> <source files>
use -help for a list of possible options

C:\Arvind\Eclipse_ws>javac -version
javac 1.6.0_06

C:\Arvind\Eclipse_ws>java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

C:\Arvind\Eclipse_ws>mvn --version
Maven version: 2.0.9
Java version: 1.6.0_06
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

C:\Arvind\Eclipse_ws>mvn archetype:create
-DarchetypeGroupId=org.apache.maven.ar
chetypes -DgroupId=com.learning.app -DartifactId=PortletSpringApp
-Dpackaging=wa
r
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Java heap space
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Arrays.java:3209)
        at java.lang.String.<init>(String.java:216)
        at
org.codehaus.plexus.util.xml.pull.MXParser.getText(MXParser.java:746)

        at
hidden.org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuild
er.java:151)
        at
hidden.org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuild
er.java:83)
        at
hidden.org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuild
er.java:48)
        at
org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.buildConfi
guration(PluginDescriptorBuilder.java:330)
        at
org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.build(Plug
inDescriptorBuilder.java:50)
        at
org.apache.maven.plugin.MavenPluginDiscoverer.createComponentDescript
ors(MavenPluginDiscoverer.java:52)
        at
org.codehaus.plexus.component.discovery.AbstractComponentDiscoverer.f
indComponents(AbstractComponentDiscoverer.java:78)
        at
org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(Default
PlexusContainer.java:717)
        at
org.codehaus.plexus.DefaultPlexusContainer.addJarResource(DefaultPlex
usContainer.java:1396)
        at
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsC
omplete(DefaultPluginManager.java:788)
        at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:604)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:429)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:512)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:482)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:227)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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(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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Sep 18 22:18:39 IST 2008
[INFO] Final Memory: 5M/5M
[INFO]
------------------------------------------------------------------------

 
If any you folks have faced this kind of error please share how you 
resolved the same.

Thanks in advance,
Arvind
-- 
View this message in context: 
http://www.nabble.com/Error-when-creating-a-new-project-using-Maven-tp19557505p19557505.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to