Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Intellij中创建Vaadin Maven项目时出现MojoFailureException_Maven_Windows 8.1_Vaadin_Java 8_Intellij 13 - Fatal编程技术网

在Intellij中创建Vaadin Maven项目时出现MojoFailureException

在Intellij中创建Vaadin Maven项目时出现MojoFailureException,maven,windows-8.1,vaadin,java-8,intellij-13,Maven,Windows 8.1,Vaadin,Java 8,Intellij 13,更新: 当我从x86程序文件中卸载IntelliJ并将其安装到程序文件中时,问题就消失了 我试图开始使用maven/intellij来开发我的vaadin应用程序,但是当我添加原型并单击Finish时,它在控制台中抛出以下错误 "C:\Program Files\Java\jdk1.8.0_25\bin\java" -Dmaven.home=C:\dev\apache-maven-3.2.3 -Dclassworlds.conf=C:\dev\apache-maven-3.2.3\bin\m2.

更新: 当我从x86程序文件中卸载IntelliJ并将其安装到程序文件中时,问题就消失了

我试图开始使用maven/intellij来开发我的vaadin应用程序,但是当我添加原型并单击Finish时,它在控制台中抛出以下错误

"C:\Program Files\Java\jdk1.8.0_25\bin\java" -Dmaven.home=C:\dev\apache-maven-3.2.3 -Dclassworlds.conf=C:\dev\apache-maven-3.2.3\bin\m2.conf -Dfile.encoding=UTF-8 -classpath C:\dev\apache-maven-3.2.3\boot\plexus-classworlds-2.5.1.jar org.codehaus.classworlds.Launcher -Didea.version=13.1.5 -DinteractiveMode=false -DgroupId=com.example -DartifactId=Demooo -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application "-DarchetypeVersion=LATEST " org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) > generate-sources @ standalone-pom     >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO] 
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[INFO] Archetype repository missing. Using the one from [com.vaadin:vaadin-archetype-application:7.3.3] found in catalog remote
Downloading: https://repo.maven.apache.org/maven2/com/vaadin/vaadin-archetype-application/LATEST /vaadin-archetype-application-LATEST .jar
[WARNING] Failed to write tracking file C:\Users\Reda\.m2\repository\com\vaadin\vaadin-archetype-application\LATEST \vaadin-archetype-application-LATEST .jar.lastUpdated
java.io.FileNotFoundException: C:\Users\Reda\.m2\repository\com\vaadin\vaadin-archetype-application\LATEST \vaadin-archetype-application-LATEST .jar.lastUpdated (The system cannot find the path specified)
at java.io.RandomAccessFile.open(Native Method)
...
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.264 s
[INFO] Finished at: 2014-10-26T11:11:21-07:00
[INFO] Final Memory: 13M/162M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.vaadin:vaadin-archetype-application:LATEST ) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] Maven execution terminated abnormally (exit code 1)
我正在Windows 8.1计算机上运行


我是否缺少任何东西或需要在Intellij中进行配置?有关于如何解决此问题的建议吗?

您正在定义以下命令行参数:-DarchetypeVersion=LATEST。为什么在它的末尾添加了一个空格?如果你移除空间会发生什么?i、 e.-DarchetypeVersion=LATESTI我还没有手动定义它。我选择了vaadin原型应用程序,它定义了一切
JAVA_HOME: C:\Program Files\Java\jdk1.8.0_25
M2_HOME: C:\dev\apache-maven-3.2.3
Path: ​%JAVA_HOME%\bin; %M2_HOME%\bin