m0_37709455
战猿点
2017-03-14 05:13

idea的maven创建分布式项目问题

  • maven
  • intellij-idea
  • 分布式

图片说明

请问这些都是什么意思呀?不选择的话 能否 创建分布式项目。我要写的是分布式项目。结构如下。
图片说明

刚用idea,有很多不知道的东西,我已经创建2遍工程了,都有问题。
崩溃了,所以来求助一下,希望大神们帮我解答一下。
还是我是利用tomcat插件运行的项目,一直报错:错误如下

图片说明

我已经安装到本地仓库了,就是不行,愁死了。应该是创建项目的时候选错了吧?

 D:\wan\Java\jdk1.8.0_92\bin\java -Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\IdeaProjects\taotao\taotao-manager-web -Dmaven.home=E:\工具\alymaven\apache-maven-3.3.9 -Dclassworlds.conf=E:\工具\alymaven\apache-maven-3.3.9\bin\m2.conf -Didea.launcher.port=7534 "-Didea.launcher.bin.path=D:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.5\bin" -Dfile.encoding=UTF-8 -classpath "E:\工具\alymaven\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;D:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.5\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.3.5 -s E:\工具\alymaven\apache-maven-3.3.9\conf\settings.xml clean tomcat7:run
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Invalid packaging for parent POM com.taotao:taotao-parent:1.0-SNAPSHOT (C:\Users\Administrator\IdeaProjects\taotao\taotao-parent\pom.xml), must be "pom" but is "jar" @ com.taotao:taotao-parent:1.0-SNAPSHOT, C:\Users\Administrator\IdeaProjects\taotao\taotao-parent\pom.xml
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.taotao:taotao-manager-web:1.0-SNAPSHOT (C:\Users\Administrator\IdeaProjects\taotao\taotao-manager-web\pom.xml) has 1 error
[ERROR]     Invalid packaging for parent POM com.taotao:taotao-parent:1.0-SNAPSHOT (C:\Users\Administrator\IdeaProjects\taotao\taotao-parent\pom.xml), must be "pom" but is "jar" @ com.taotao:taotao-parent:1.0-SNAPSHOT, C:\Users\Administrator\IdeaProjects\taotao\taotao-parent\pom.xml
[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/ProjectBuildingException

Process finished with exit code 1

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答

为你推荐