Fehler beim erstellen des JVM mit maven

Bekomme ich eine Fehlermeldung Could not create the Java virtual machine wenn ich mvn clean install. Was soll ich jetzt tun? Sollte ich noch was ändern in pom.xml? Meine java-version 1.6 und maven-version 3.0.2, die sich alle in pom.xml

Fehler::

[ERROR] Failure executing javac,  but could not parse the error:
[ERROR] Could not create the Java virtual machine.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on
 project accelerator-common: Compilation failure
Failure executing javac,  but could not parse the error:
Could not create the Java virtual machine.


        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation fail
ure
Failure executing javac,  but could not parse the error:
Could not create the Java virtual machine.


        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:656)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 19 more
  • Sie haben die JAVA_HOME Umgebungsvariable definiert? Was ist die Ausgabe von mvn --version ?
  • Können Sie nach dem entsprechenden pom-snippet Bezug auf maven compiler plugin - sofern es vorhanden ist? Wenn nicht, sagen Sie uns, wenn Sie eine JAVA_OPTS oder MAVEN_OPTS.
  • <build> <pluginManagement> <plugins> <plugin - > <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0.4</version> <configuration> <Quelle>1.6</source> <target>1.6</target> </Konfiguration> </plugin - > </plugins> </pluginManagement> </bauen>
  • Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530) Maven home: D:\Deep\apache-maven-3.0.4 Java version: 1.6.0, vendor: Sun Microsystems Inc. Java-home: C:\Program Dateien\Java\jdk1.6.0\jre Default locale: en_US, platform encoding: Cp1252-OS name: "windows xp" version: "5.1" arch: "x86", family: "windows"
InformationsquelleAutor Deep_89 | 2012-05-30
Schreibe einen Kommentar