Hi
Does anyone know of a way to increase the amount of memory that's available
to the antrun plugin?
My situation is as follows:
Coming from a legacy application, we have the need to run Cactus Tests.
I have written my own plugin using the maven-antrun-plugin that will cactify
the war we have.
The problem I'm getting is that I'm getting an OutOfMemoryError as follows:
cactify-war:
[echo] Cactify WAR
[echo] Trying to copy cactusIndex.jsp to
target/centaur-presentation-site-02.02.00.001-SNAPSHOT/
[copy] Copying 1 file to
C:\Conduct\L\centaur-presentation-site\target\centaur-presentation-site-02.02.00.001-SNAPSHOT
[jar] Building jar:
C:\Conduct\L\centaur-presentation-site\target\centaur-presentation-site-02.02.00.001-SNAPSHOT.war
[cactifywar] Analyzing war:
C:\Conduct\L\centaur-presentation-site\target\centaur-presentation-site-02.02.00.001-SNAPSHOT.war
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to execute: Executing Ant script: /cactus.build.xml
[cactify-war]: Failed to execute.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute:
Executing Ant script: /cactus.build.xml [cactify-war]: Failed to execute.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
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: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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
execute: Executing Ant script: /cactus.build.xml [cactify-war]: Failed to
execute.
at
org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.java:37)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
Caused by:
org.codehaus.plexus.component.factory.ant.AntComponentExecutionException:
Executing Ant script: /cactus.build.xml [cactify-war]: Failed to execute.
at
org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(AntScriptInvoker.java:227)
at
org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.java:33)
... 18 more
Caused by: java.lang.OutOfMemoryError
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(AntScriptInvoker.java:222)
... 19 more
Caused by: java.lang.OutOfMemoryError
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 28 seconds
[INFO] Finished at: Tue Jan 16 09:26:14 GMT 2007
[INFO] Final Memory: 11M/63M
[INFO]
------------------------------------------------------------------------
Any ideas?
Cheers
--
View this message in context:
http://www.nabble.com/maven-antrun-plugin-Out-Of-Memory-Error-tf3019798s177.html#a8386776
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]