surefire maven memory problems
Problem:
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\...\target\surefire-reports
Error occurred during initialization of VM
Could not create the Java virtual machine.
Could not reserve enough space for object heap
Solution:
Edit your pom.xml and add configuration option for surefire forkMode none:
<build>
<plugins>
(...)
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>none</forkMode>
</configuration>
</plugin>
(...)
maven antrun problem
Problem:
Using Maven 2.0.10 I got:
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run': Unable to find the mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run' in the plugin 'org.apache.maven.plugins:maven-antrun-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plugin:1.0:run.
Solution:
Using Maven 2.2.1 helped (this bug is fixed in 2.1.0+).
tomcat in eclipse staring problem
Problem:
java.lang.NoSuchMethodError: org.eclipse.wst.common.componentcore.internal.resources.VirtualComponent.clearCache()V
Solution: run the eclipse updates - get the latest version and everything should work fine.